Add more eslint rules
This commit is contained in:
parent
0109381a4f
commit
dea34503ef
13 changed files with 33 additions and 21 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue