APIInteractionDataResolvedGuildMember does not have id
While fetching for member using
interaction.options.getMember('member')
it gives two types - GuildMember|APIInteractionDataResolvedGuildMember
out of which the second one literally doesn't have member's snowflake ID
I saw this https://discord-api-types.dev/api/discord-api-types-v10/interface/APIInteractionDataResolvedGuildMember and confirmed that it really doesn't have id
field
How am I supposed to fetch such a member (basically type guard the member)?
My package.json
2 Replies