types(UserContextMenuCommandInteraction): Nullify targetMember (#9844)

types(UserContextMenuCommandInteraction): nullify `targetMember`

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Jiralite 2023-09-29 18:14:36 +02:00 committed by GitHub
parent 931c3ed593
commit 3c043d83a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3171,7 +3171,7 @@ export class UserContextMenuCommandInteraction<
> extends ContextMenuCommandInteraction<Cached> {
public commandType: ApplicationCommandType.User;
public get targetUser(): User;
public get targetMember(): CacheTypeReducer<Cached, GuildMember, APIInteractionGuildMember>;
public get targetMember(): CacheTypeReducer<Cached, GuildMember, APIInteractionGuildMember> | null;
public inGuild(): this is UserContextMenuCommandInteraction<'raw' | 'cached'>;
public inCachedGuild(): this is UserContextMenuCommandInteraction<'cached'>;
public inRawGuild(): this is UserContextMenuCommandInteraction<'raw'>;