From cfd426974df05ff2ac1705a9de3f9c4090b0a40c Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Wed, 20 Sep 2023 22:40:56 +0100 Subject: [PATCH] types(UserContextMenuCommandInteraction): nullify `targetMember` --- packages/discord.js/typings/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 1a80284102b0..38dffd25b1e5 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -3171,7 +3171,7 @@ export class UserContextMenuCommandInteraction< > extends ContextMenuCommandInteraction { public commandType: ApplicationCommandType.User; public get targetUser(): User; - public get targetMember(): CacheTypeReducer; + public get targetMember(): CacheTypeReducer | null; public inGuild(): this is UserContextMenuCommandInteraction<'raw' | 'cached'>; public inCachedGuild(): this is UserContextMenuCommandInteraction<'cached'>; public inRawGuild(): this is UserContextMenuCommandInteraction<'raw'>;