diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-16 14:32:18 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-16 14:32:18 -0400 |
commit | 0e87bbd3940d89defcb04926587b35c8f4d1947f (patch) | |
tree | e50860d4dc25a11d4c3977b583284c4bcad1b077 /src/arguments/messageLink.ts | |
parent | 661e4c9935aeb8760dafc7ced4bbec6cc356a033 (diff) | |
download | tanzanite-0e87bbd3940d89defcb04926587b35c8f4d1947f.tar.gz tanzanite-0e87bbd3940d89defcb04926587b35c8f4d1947f.tar.bz2 tanzanite-0e87bbd3940d89defcb04926587b35c8f4d1947f.zip |
remove util classes, move config out of src
Diffstat (limited to 'src/arguments/messageLink.ts')
-rw-r--r-- | src/arguments/messageLink.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arguments/messageLink.ts b/src/arguments/messageLink.ts index 457410e..a473485 100644 --- a/src/arguments/messageLink.ts +++ b/src/arguments/messageLink.ts @@ -1,8 +1,8 @@ -import type { BushArgumentTypeCaster } from '#lib'; +import { BushArgumentTypeCaster, regex } from '#lib'; import type { Message } from 'discord.js'; export const messageLink: BushArgumentTypeCaster<Promise<Message | null>> = async (_, phrase) => { - const match = new RegExp(client.consts.regex.messageLink).exec(phrase); + const match = new RegExp(regex.messageLink).exec(phrase); if (!match || !match.groups) return null; const { guild_id, channel_id, message_id } = match.groups; |