Edit message in thread

I'm trying to edit a message inside a thread, I've channelID(Contains thread), threadID(Contains message) and messageID, I'm not able to figure out how to do so.

I'm trying something like this but no luck

const tmp = await interaction.guild.channels.cache.get(threadId).fetchMessageById(messageId);
Was this page helpful?