discord.js icon indicating copy to clipboard operation
discord.js copied to clipboard

Possible type issue with getMentionable

Open KhafraDev opened this issue 3 years ago • 0 comments

Which package is this bug report for?

discord.js

Issue description

When using getMentionable, one of the return types is APIInteractionDataResolvedGuildMember. This type doesn't include a guild member id or a user object so it's completely useless by itself.

This is a djs issue according to https://discord.com/channels/222078108977594368/1015016919125987378/1016006901969993728

Code sample

interaction.options.getMentionable('name')

Package version

14.3.0

Node.js version

18

Operating system

The Antikythera Mechanism

Priority this issue should have

High (immediate attention needed)

Which partials do you have configured?

User, Channel, GuildMember, Message, Reaction

Which gateway intents are you subscribing to?

Guilds, GuildMembers, GuildBans, GuildMessages, GuildMessageReactions, DirectMessages, MessageContent

I have tested this issue on a development release

No I havent

KhafraDev avatar Sep 04 '22 16:09 KhafraDev