I'm trying to develop bot with typescript. I've send reply to the command and I get the message id with
(await i.reply({content: 'foo', components: [button]})).id
And I'm trying to receive the interaction with Events.InteractionCreate.
I want to get id of message so I've tried interaction.message.id. But it returns different between first one.
I think first value is right because when I copy the id from discord, it copies first one to my clipboard. So, how to get the base message id from interaction?