mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 16:55: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
|
@ -61,7 +61,7 @@ export const InfoCmd = utilityCmd({
|
|||
// 4. Message
|
||||
const messageTarget = await resolveMessageTarget(pluginData, value);
|
||||
if (messageTarget) {
|
||||
if (canReadChannel(messageTarget.channel, message.author.id)) {
|
||||
if (canReadChannel(messageTarget.channel, message.member)) {
|
||||
const embed = await getMessageInfoEmbed(pluginData, messageTarget.channel.id, messageTarget.messageId);
|
||||
if (embed) {
|
||||
message.channel.createMessage({ embed });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue