I'm having trouble finding a way to hide the mand message above a bot's "interaction.reply()" message. I just want the message to be public (not ephemeral), without it being a reply to a mand or getting an error message. Thank you in advance.
I'm having trouble finding a way to hide the mand message above a bot's "interaction.reply()" message. I just want the message to be public (not ephemeral), without it being a reply to a mand or getting an error message. Thank you in advance.
Share Improve this question edited Nov 28, 2021 at 6:54 BlockNoir asked Nov 27, 2021 at 0:03 BlockNoirBlockNoir 1111 silver badge6 bronze badges 5- What do you mean by mand message? Can you elaborate? – skara9 Commented Nov 27, 2021 at 0:08
-
Have you tried
interaction.channel.send()
– Elitezen Commented Nov 27, 2021 at 1:09 - @Elitezen Yes that kinda works, but I get an error message saying: "This interaction failed". – BlockNoir Commented Nov 27, 2021 at 8:21
- The interaction must be replied to, else that will happen – Elitezen Commented Nov 27, 2021 at 12:59
- Then is there anyway to hide it? – BlockNoir Commented Nov 27, 2021 at 13:45
2 Answers
Reset to default 5My problem has been resolved with this:
interaction.deferReply();
interaction.deleteReply();
interaction.channel.send("dummy message");
I really don't understand what you meant by that but this might be what you were looking for
You need to reply then delete it
interaction.reply({ content: 'dummy message', fetchReply: true })
.then((message) => message.delete())
.catch(console.error);