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

Group buttons produce no data in version 14.15.3 #10431

Closed
forgetfulskybro opened this issue Aug 5, 2024 · 2 comments
Closed

Group buttons produce no data in version 14.15.3 #10431

forgetfulskybro opened this issue Aug 5, 2024 · 2 comments

Comments

@forgetfulskybro
Copy link

Which package is this bug report for?

discord.js

Issue description

When updating to version 14.15.3 of Discord.js I've encountered an issue when running button interactions in Group DMs. Buttons return no data to interactionCreate when logging all interactions. Slashcommands work as expected. As soon as I downgraded to version 14.15.2 button interactions worked perfectly.

This can be reproduced by running the latest version of Discord.js and using a button inside of a Group DM.

For possible issues on our part, here's the source code: Would You

Code sample

import { ButtonInteraction, Interaction } from "discord.js";
import buttonInteractionEvent from "../buttons";
import commandInteractionEvent from "../commands";
import { Event } from "../interfaces";
import WouldYou from "../util/wouldYou";

const event: Event = {
  event: "interactionCreate",
  execute: async (
    client: WouldYou,
    interaction: Interaction | ButtonInteraction,
  ) => {
    console.log(interaction) // Button produced no data and nothing was logged
    if (interaction.isCommand()) {
      await commandInteractionEvent.execute(client, interaction);
    } else if (interaction.isButton() || interaction.isAnySelectMenu()) {
      await buttonInteractionEvent.execute(client, interaction);
    }
  },
};

export default event;

Versions

NodeJS version: v22.2.0
discord.js: 14.15.3
@discordjs/rest: 2.3.0
discord-api-types: 0.37.91
Windows version: Windows 11 Home Insider Preview 23H2, Build 26040.1000

Issue priority

Low (slightly annoying)

Which partials do you have configured?

Channel

Which gateway intents are you subscribing to?

Guilds, GuildMembers, GuildMessages

I have tested this issue on a development release

Not tested

@Qjuh
Copy link
Contributor

Qjuh commented Aug 5, 2024

This is a known issue and will be fixed by #10227

@forgetfulskybro
Copy link
Author

This is a known issue and will be fixed by #10227

Alright, thanks for showing me this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants