diff options
Diffstat (limited to 'src/arguments/globalUser.ts')
-rw-r--r-- | src/arguments/globalUser.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arguments/globalUser.ts b/src/arguments/globalUser.ts index 344fe78..081eabf 100644 --- a/src/arguments/globalUser.ts +++ b/src/arguments/globalUser.ts @@ -1,7 +1,7 @@ import { BushUser, type BushArgumentTypeCaster } from '#lib'; // resolve non-cached users -export const globalUserTypeCaster: BushArgumentTypeCaster = async (_, phrase): Promise<BushUser | null> => { +export const globalUser: BushArgumentTypeCaster = async (_, phrase): Promise<BushUser | null> => { return client.users.cache.has(phrase) ? client.users.cache.get(`${phrase}`) ?? null : await client.users.fetch(`${phrase}`).catch(() => null); |