mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-14 21:31:50 +00:00
Fix !nickname permission check
This commit is contained in:
parent
f397c1b7c0
commit
95a03a0110
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ export const NicknameCmd = utilityCmd({
|
|||
},
|
||||
|
||||
async run({ message: msg, args, pluginData }) {
|
||||
if (msg.member.id !== args.member.id && canActOn(pluginData, msg.member, args.member)) {
|
||||
if (msg.member.id !== args.member.id && !canActOn(pluginData, msg.member, args.member)) {
|
||||
msg.channel.createMessage(errorMessage("Cannot change nickname: insufficient permissions"));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue