From 3c043d83a93333d803f675cfe31feb62fe1999b1 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Fri, 29 Sep 2023 18:14:36 +0200 Subject: [PATCH] types(UserContextMenuCommandInteraction): Nullify `targetMember` (#9844) types(UserContextMenuCommandInteraction): nullify `targetMember` Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- 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 3b72e64dd..08305031c 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'>;