aboutsummaryrefslogtreecommitdiff
path: root/src/arguments/globalUser.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/arguments/globalUser.ts')
-rw-r--r--src/arguments/globalUser.ts7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/arguments/globalUser.ts b/src/arguments/globalUser.ts
deleted file mode 100644
index 4324aa9..0000000
--- a/src/arguments/globalUser.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import type { BushArgumentTypeCaster } from '#lib';
-import type { User } from 'discord.js';
-
-// resolve non-cached users
-export const globalUser: BushArgumentTypeCaster<Promise<User | null>> = async (message, phrase) => {
- return message.client.users.resolve(phrase) ?? (await message.client.users.fetch(`${phrase}`).catch(() => null));
-};