mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 20:32:50 +02:00
Drop admin permissions correctly
This commit is contained in:
parent
49598c7af7
commit
8c506ed270
2 changed files with 5 additions and 3 deletions
|
@ -103,10 +103,10 @@ function isWebhookMessage(message) {
|
|||
|
||||
/**
|
||||
* Ephemeral messages can be generated if a slash command is attached to the same bot that OOYE is running on
|
||||
* @param {DiscordTypes.APIMessage} message
|
||||
* @param {Pick<DiscordTypes.APIMessage, "flags">} message
|
||||
*/
|
||||
function isEphemeralMessage(message) {
|
||||
return message.flags & (1 << 6);
|
||||
return message.flags && (message.flags & (1 << 6));
|
||||
}
|
||||
|
||||
/** @param {string} snowflake */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue