Merge pull request 'prefix thing' (#1) from skye/foggy:prefix into main
Reviewed-on: #1
This commit is contained in:
commit
f76f42244f
|
@ -192,7 +192,7 @@ bot.on('messageCreate', async (msg) => {
|
||||||
const params = content.replace(prefix, '').split(' ');
|
const params = content.replace(prefix, '').split(' ');
|
||||||
const cmd = params[0];
|
const cmd = params[0];
|
||||||
|
|
||||||
if (!msg.guild) return;
|
if (!msg.guild || !content.startsWith(prefix)) return;
|
||||||
|
|
||||||
if ((cmd === 'play' || cmd === 'p') && params[1]) {
|
if ((cmd === 'play' || cmd === 'p') && params[1]) {
|
||||||
const connection = await checkVoiceChannel(msg);
|
const connection = await checkVoiceChannel(msg);
|
||||||
|
|
Reference in New Issue