mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Unknown command in dm
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user