DM Button not triggering InteractionCreate

Hello, I'm trying to get a button working in DMs, but it does not seem to be even triggering the InteractionCreate event, resulting in Interaction Failed. I know it doesn't because I logged every time the InteractionCreate event's function was run, and it did not log when the button was pressed.

However, when I made a test command that sends me a very simple button, that button actually triggers the InteractionCreate event, unlike the one I want to work.

I have no idea why it is doing that. Here is the one that isn't working:
const appealButton = new ActionRowBuilder<ButtonBuilder>().addComponents([
  new ButtonBuilder()
    .setCustomId(`${appealButtonId}-${appealId}`)
    .setLabel("Appeal")
    .setStyle(ButtonStyle.Primary)
]);
where the customId is usually something along the lines of banAppealButton-677ce84d-56f3-48b8-9b53-aa51f94003bc. This is less than 100 characters.

This is the test button:
await interaction.user.send({
  components: [
    new ActionRowBuilder<ButtonBuilder>().setComponents(
      new ButtonBuilder()
        .setCustomId(`test`)
        .setLabel("Test")
        .setStyle(ButtonStyle.Primary)
    )
  ]
});
sorry if these are badly formatted. I have no idea why this one works but the other one doesn't.
Screenshot_2024-02-19_at_15.png
image.png
Was this page helpful?