diff options
Diffstat (limited to 'src/arguments')
-rw-r--r-- | src/arguments/messageLink.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arguments/messageLink.ts b/src/arguments/messageLink.ts index 03e550d..5c91a4b 100644 --- a/src/arguments/messageLink.ts +++ b/src/arguments/messageLink.ts @@ -2,7 +2,7 @@ import { type BushArgumentTypeCaster } from '#lib'; import { type Message } from 'discord.js'; export const messageLink: BushArgumentTypeCaster<Promise<Message | null>> = async (_, phrase) => { - const match = client.consts.regex.messageLink.exec(phrase); + const match = new RegExp(client.consts.regex.messageLink).exec(phrase); if (!match || !match.groups) return null; const { guild_id, channel_id, message_id } = match.groups; |