mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 13:56:43 +02:00
Fix for Mod Commands?
This commit is contained in:
@@ -12,6 +12,7 @@ module.exports = class WarnCommand extends commando.Command {
|
||||
});
|
||||
}
|
||||
hasPermission(msg) {
|
||||
if (msg.channel.type === 'dm') return;
|
||||
return msg.member.hasPermission('MANAGE_MESSAGES');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user