mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-22 09:15:03 +00:00
Improve permission utils, make them bigint-aware
This commit is contained in:
parent
f9f29f383b
commit
5a3be1ab03
11 changed files with 97 additions and 34 deletions
|
@ -30,7 +30,7 @@ export const ContextCmd = utilityCmd({
|
|||
const channel = args.channel || args.message.channel;
|
||||
const messageId = args.messageId || args.message.messageId;
|
||||
|
||||
if (!canReadChannel(channel, msg.member.id)) {
|
||||
if (!canReadChannel(channel, msg.member)) {
|
||||
sendErrorMessage(pluginData, msg.channel, "Message context not found");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue