not spam console with useless shit

This commit is contained in:
Histmy 2021-09-27 16:21:01 +02:00
parent 58d0473830
commit 802a1bdbb8
3 changed files with 7 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "denim_3001",
"version": "3001.27.0",
"version": "3001.27.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "denim_3001",
"version": "3001.27.0",
"version": "3001.27.1",
"license": "ISC",
"dependencies": {
"@discordjs/opus": "github:discordjs/opus",

View File

@ -1,6 +1,6 @@
{
"name": "denim_3001",
"version": "3001.27.0",
"version": "3001.27.1",
"description": "Toto je velmi kvalitní bot.",
"repository": {
"url": "https://github.com/Histmy/Denim-Bot/"

View File

@ -93,7 +93,10 @@ export const joinVoice = async (channel: VoiceChannel | StageChannel | string, g
if (!prev) {
const player = createAudioPlayer();
pripojeni[guildId] = conn.subscribe(player)!;
conn.on("error", e => console.log("error nekde v conn", e));
conn.on("error", e => {
if (e.message.startsWith("Cannot perform IP discovery")) return;
console.log("error nekde v conn", e);
});
}
return { conn, prev };