We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
discord.js
Message#awaitMessageComponent
Expected behavior: the function returns Promise<MessageComponentInteraction> Actual behavior: the function returns nothing.
Promise<MessageComponentInteraction>
const { ActionRow, ButtonComponent } = require('discord.js'); const actionRow = new ActionRow() .addComponents( new ButtonComponent() .setStyle(2) .setCustomId('TEST') .setLabel('TEST') ); const message = await interaction.editReply({ content: 'hi', components: [actionRow] }); const component = await message.awaitMessageComponent({ filter: (i) => i.user.id === interaction.user.id, time: 30_000, }); console.log(component);
14.0.0-dev (d2d3a80)
17.4.0
No response
Medium (should be fixed soon)
CHANNEL
GUILDS, GUILD_MEMBERS, GUILD_PRESENCES, GUILD_MESSAGES
d2d3a80
The text was updated successfully, but these errors were encountered:
I think I may know what's happening here, I'll try to submit a fix soon.
Sorry, something went wrong.
Sooo.. what's going on? did you find the problem?
@raiden-ei PR to fix is now up #7331
suneettipirneni
Successfully merging a pull request may close this issue.
Which package is this bug report for?
discord.js
Issue description
Message#awaitMessageComponent
functionExpected behavior: the function returns
Promise<MessageComponentInteraction>
Actual behavior: the function returns nothing.
Code sample
Package version
14.0.0-dev (d2d3a80)
Node.js version
17.4.0
Operating system
No response
Priority this issue should have
Medium (should be fixed soon)
Which partials do you have configured?
CHANNEL
Which gateway intents are you subscribing to?
GUILDS, GUILD_MEMBERS, GUILD_PRESENCES, GUILD_MESSAGES
I have tested this issue on a development release
d2d3a80
The text was updated successfully, but these errors were encountered: