Skip to content
New issue

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

Message#awaitMessageComponent is not responding #7336

Closed
MahouSirin opened this issue Jan 25, 2022 · 3 comments · Fixed by #7331
Closed

Message#awaitMessageComponent is not responding #7336

MahouSirin opened this issue Jan 25, 2022 · 3 comments · Fixed by #7331
Assignees

Comments

@MahouSirin
Copy link
Contributor

Which package is this bug report for?

discord.js

Issue description

  1. Install latest dev version of Discord.js
  2. Use Message#awaitMessageComponent function

Expected behavior: the function returns Promise<MessageComponentInteraction>
Actual behavior: the function returns nothing.

Code sample

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);

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

@suneettipirneni
Copy link
Member

I think I may know what's happening here, I'll try to submit a fix soon.

@MahouSirin
Copy link
Contributor Author

I think I may know what's happening here, I'll try to submit a fix soon.

Sooo.. what's going on? did you find the problem?

@suneettipirneni
Copy link
Member

suneettipirneni commented Jan 25, 2022

@raiden-ei PR to fix is now up #7331

@iCrawl iCrawl linked a pull request Jan 25, 2022 that will close this issue
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants