Unknown command in dm

This commit is contained in:
Dragon Fire
2024-05-15 13:01:31 -04:00
committed by GitHub
parent 3cf0656190
commit 9d00180cb3
-1
View File
@@ -16,7 +16,6 @@ module.exports = class UnknownCommandCommand extends Command {
}
run(msg) {
if (!msg.guild) return null;
const commands = this.makeCommandArray(this.client.isOwner(msg.author), msg.channel.nsfw);
const command = msg.content.match(this.client.dispatcher.commandPattern);
const str = command ? command[2] : msg.content.split(' ')[0];