diff options
Diffstat (limited to 'src/plugins/nitroBypass.ts')
-rw-r--r-- | src/plugins/nitroBypass.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/nitroBypass.ts b/src/plugins/nitroBypass.ts index e3b6747..8920bc6 100644 --- a/src/plugins/nitroBypass.ts +++ b/src/plugins/nitroBypass.ts @@ -55,7 +55,7 @@ export default definePlugin({ } this.preSend = addPreSendListener((_, messageObj) => { - const guildId = this.guildId; + const { guildId } = this; for (const emoji of messageObj.validNonShortcutEmojis) { if (!emoji.require_colons) continue; if (emoji.guildId === guildId && !emoji.animated) continue; @@ -69,7 +69,7 @@ export default definePlugin({ }); this.preEdit = addPreEditListener((_, __, messageObj) => { - const guildId = this.guildId; + const { guildId } = this; for (const [emojiStr, _, emojiId] of messageObj.content.matchAll(/(?<!\\)<a?:(\w+):(\d+)>/ig)) { const emoji = getCustomEmojiById(emojiId); |