From 0e87bbd3940d89defcb04926587b35c8f4d1947f Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 16 Jun 2022 14:32:18 -0400 Subject: remove util classes, move config out of src --- src/arguments/snowflake.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arguments/snowflake.ts') diff --git a/src/arguments/snowflake.ts b/src/arguments/snowflake.ts index dc83909..b98a20f 100644 --- a/src/arguments/snowflake.ts +++ b/src/arguments/snowflake.ts @@ -1,8 +1,8 @@ -import type { BushArgumentTypeCaster } from '#lib'; +import { BushArgumentTypeCaster, regex } from '#lib'; import type { Snowflake } from 'discord.js'; export const snowflake: BushArgumentTypeCaster = (_, phrase) => { if (!phrase) return null; - if (client.consts.regex.snowflake.test(phrase)) return phrase; + if (regex.snowflake.test(phrase)) return phrase; return null; }; -- cgit