harmony
harmony copied to clipboard
[Bug] `ephemeral` property does not apply to responses of type `'DEFERRED_CHANNEL_MESSAGE'`.
What's the bug?
Regardless of the value of the ephemeral
property, a response of type
'DEFERRED_CHANNEL_MESSAGE'
will be shown to everybody.
How do we reproduce it?
- Create a response with
type
'DEFERRED_CHANNEL_MESSAGE'
and the value ofephemeral
being set totrue
.
What should have happened? The response should have been hidden.
What is actually happening? The response is shown.
Do you have anything to tell us more about the bug? This issue is caused by this check failing:
if (isResponseMessage(data) && data.ephemeral === true)
flags |= InteractionResponseFlags.EPHEMERAL