Interaction Collector Not Firing Collect

I'm trying to implement some buttons on a command interaction, and I have successfully added the buttons, but when creating a message component collector, the 'collect' callback is not being called.

I'm creating it as follows:
await interaction.editReply({
  content: `Post \`${post.postId}\` Edits`,
  embeds: [editEmbed],
  components: [buttonActionRow]
});
 
const collector = interaction.channel?.createMessageComponentCollector({
  filter: (submit) =>
    submit.customId === 'createPost' &&
    submit.user.id === interaction.user.id,
  time: 300_000
});


Am I missing something here?
Was this page helpful?