3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-22 17:25:01 +00:00

Improve permission utils, make them bigint-aware

This commit is contained in:
Dragory 2020-08-07 00:39:52 +03:00
parent f9f29f383b
commit 5a3be1ab03
11 changed files with 97 additions and 34 deletions

View file

@ -21,7 +21,7 @@ export const InitReactionRolesCmd = reactionRolesCmd({
},
async run({ message: msg, args, pluginData }) {
if (!canReadChannel(args.message.channel, msg.member.id)) {
if (!canReadChannel(args.message.channel, msg.member)) {
sendErrorMessage(pluginData, msg.channel, "Unknown message");
return;
}