3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 00:35:02 +00:00

Improve permission utils, make them bigint-aware

This commit is contained in:
Dragory 2020-08-07 00:39:52 +03:00
parent a404c7a97f
commit 8af64a6944
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
11 changed files with 97 additions and 34 deletions

View file

@ -15,7 +15,7 @@ export const MessageInfoCmd = utilityCmd({
},
async run({ message, args, pluginData }) {
if (!canReadChannel(args.message.channel, message.author.id)) {
if (!canReadChannel(args.message.channel, message.member)) {
sendErrorMessage(pluginData, message.channel, "Unknown message");
return;
}