diff options
Diffstat (limited to 'src/arguments/discordEmoji.ts')
-rw-r--r-- | src/arguments/discordEmoji.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arguments/discordEmoji.ts b/src/arguments/discordEmoji.ts index 6fb971a..8648f7f 100644 --- a/src/arguments/discordEmoji.ts +++ b/src/arguments/discordEmoji.ts @@ -1,7 +1,7 @@ import { type BushArgumentTypeCaster } from '#lib'; import { type Snowflake } from 'discord-api-types'; -export const discordEmojiTypeCaster: BushArgumentTypeCaster = (_, phrase): { name: string; id: Snowflake } | null => { +export const discordEmoji: BushArgumentTypeCaster = (_, phrase): { name: string; id: Snowflake } | null => { if (!phrase) return null; const validEmoji: RegExpExecArray | null = client.consts.regex.discordEmoji.exec(phrase); if (!validEmoji || !validEmoji.groups) return null; |