export async function interactionCreate(
client: IGClient,
interaction: BaseInteraction
): Promise<any> {
if (interaction.isButton()) {
if (interaction.customId == 'accept-tos') {
await interaction.message.edit({
embeds: [
CreateEmptyEmbed(EmbedColor.FAILURE, {
title: 'foobar',
description: 'foobar'
})
]
});
}
}
Hey. I'm unsure why, but I'm getting an unknown message error when trying to edit the message which the button is attached to. The message is an ephemeral message which is sent when my user types a / command, and has buttons attached to it, when the button is clicked, I want to edit the message.
When console logging interaction.message the object does exist, so im not sure why it says it is unknown.