diff options
Diffstat (limited to 'src/arguments/globalUser.ts')
-rw-r--r-- | src/arguments/globalUser.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arguments/globalUser.ts b/src/arguments/globalUser.ts index df4f5d9..4324aa9 100644 --- a/src/arguments/globalUser.ts +++ b/src/arguments/globalUser.ts @@ -2,6 +2,6 @@ import type { BushArgumentTypeCaster } from '#lib'; import type { User } from 'discord.js'; // resolve non-cached users -export const globalUser: BushArgumentTypeCaster<Promise<User | null>> = async (_, phrase) => { - return client.users.resolve(phrase) ?? (await client.users.fetch(`${phrase}`).catch(() => null)); +export const globalUser: BushArgumentTypeCaster<Promise<User | null>> = async (message, phrase) => { + return message.client.users.resolve(phrase) ?? (await message.client.users.fetch(`${phrase}`).catch(() => null)); }; |