1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-06-04 09:03:50 -04:00

Swap indexOf to includes when indexOf was just being used to check if an item was in an array

This commit is contained in:
Ean Milligan
2025-04-27 04:15:04 -04:00
parent 2e2e08f48a
commit 73e4ca94b7
7 changed files with 14 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ export const emoji = (message: DiscordenoMessage, command: string) => {
config.emojis.some((curEmoji: EmojiConf) => {
log(LT.LOG, `Checking if command was emoji ${JSON.stringify(curEmoji)}`);
// If a match gets found
if (curEmoji.aliases.indexOf(command || '') > -1) {
if (curEmoji.aliases.includes(command || '')) {
// Light telemetry to see how many times a command is being run
dbClient.execute(queries.callIncCnt('emojis')).catch((e) => utils.commonLoggers.dbError('emojis.ts:28', 'call sproc INC_CNT on', e));