[Bug] Ephemeral messages being triggered as normal messages
Problem Description
We are using the current GH build (not the official stable version, also the bug was being triggered there as well).
So basically what keeps happening is that randomly if you use a button that should trigger a ephemeral message being posted in the same channel to the user triggering the button it posts the message as a public one. The weird thing is that this is completely random. I would say that the chance of it being public is 20/80 so it works 80% of the time. IDK if the problem is a clientside or wrong set settings one, but that would not explain why it works sometimes for users and other times not.
I linkes a image of the current command structure. The Idea is that you execute the command once and the bot puts a permanent message into a channel with a button that guides you through a guide where you can apply at the end. Guess you can guess why the messages being ephemeral is kinda important.
Does your app sometimes (or always) display something like "App is thinking ..." before the response appears? And if so, does that correlate with the message not being ephemeral?
I can't really say sadly, due to it being kinda rare. I would say maybe? But in general it directly responds.
That's the only thing I can think of here. When the response to interaction takes longer than 3 seconds, Kite automatically defers the response (which results in the "App is thinking ..." in Discord). At that point it has to already tell Discord if the response will be ephemeral or not. So Kite tries to be smart and figure out if the response will be ephemeral or not. In some cases, e.g. if you have ephemeral and non ephemeral messages that might fail.
So it would be good to know if that behavior is causing this ...
Have a look at your DMs, I send you a clip of it happening.