mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Fix edge case error in ContextCmd
This commit is contained in:
parent
05a899fff7
commit
2ac6fedfc5
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ export const ContextCmd = utilityCmd({
|
|||
return;
|
||||
}
|
||||
|
||||
const channel = args.channel || args.message.channel;
|
||||
const messageId = args.messageId || args.message.messageId;
|
||||
const channel = args.channel ?? args.message.channel;
|
||||
const messageId = args.messageId ?? args.message.messageId;
|
||||
|
||||
if (!canReadChannel(channel, msg.member)) {
|
||||
sendErrorMessage(pluginData, msg.channel, "Message context not found");
|
||||
|
|
Loading…
Add table
Reference in a new issue