From d619bba9f2d628eb762c66c027cb8487d39f2355 Mon Sep 17 00:00:00 2001 From: skye <63156322+sky-3@users.noreply.github.com> Date: Thu, 21 Oct 2021 14:58:02 +0900 Subject: [PATCH] fjdgkhsglfkjgh --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index a4c596e..5d6e12b 100644 --- a/src/index.js +++ b/src/index.js @@ -192,7 +192,7 @@ bot.on('messageCreate', async (msg) => { const params = content.replace(prefix, '').split(' '); const cmd = params[0]; - if (!msg.guild) return; + if (!msg.guild || !content.startsWith(prefix)) return; if ((cmd === 'play' || cmd === 'p') && params[1]) { const connection = await checkVoiceChannel(msg);