mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
Improve permission utils, make them bigint-aware
This commit is contained in:
parent
a404c7a97f
commit
8af64a6944
11 changed files with 97 additions and 34 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue