aboutsummaryrefslogtreecommitdiff
path: root/src/arguments/discordEmoji.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/arguments/discordEmoji.ts')
-rw-r--r--src/arguments/discordEmoji.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arguments/discordEmoji.ts b/src/arguments/discordEmoji.ts
index 57710e4..92d6502 100644
--- a/src/arguments/discordEmoji.ts
+++ b/src/arguments/discordEmoji.ts
@@ -1,9 +1,9 @@
-import type { BushArgumentTypeCaster } from '#lib';
+import { regex, type BushArgumentTypeCaster } from '#lib';
import type { Snowflake } from 'discord.js';
export const discordEmoji: BushArgumentTypeCaster<DiscordEmojiInfo | null> = (_, phrase) => {
if (!phrase) return null;
- const validEmoji: RegExpExecArray | null = client.consts.regex.discordEmoji.exec(phrase);
+ const validEmoji: RegExpExecArray | null = regex.discordEmoji.exec(phrase);
if (!validEmoji || !validEmoji.groups) return null;
return { name: validEmoji.groups.name, id: validEmoji.groups.id };
};