mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 05:54:33 +02:00
hasPermission
This commit is contained in:
@@ -22,7 +22,7 @@ module.exports = class ClearSettingCommand extends Command {
|
||||
}
|
||||
|
||||
hasPermission(msg) {
|
||||
return msg.member.permissions.has('ADMINISTRATOR');
|
||||
return msg.member.hasPermission('ADMINISTRATOR');
|
||||
}
|
||||
|
||||
run(msg, args) {
|
||||
|
||||
Reference in New Issue
Block a user