harmony icon indicating copy to clipboard operation
harmony copied to clipboard

[Bug] `ephemeral` property does not apply to responses of type `'DEFERRED_CHANNEL_MESSAGE'`.

Open vxern opened this issue 2 years ago • 0 comments

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?

  1. Create a response with type 'DEFERRED_CHANNEL_MESSAGE' and the value of ephemeral being set to true.

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

vxern avatar Jun 09 '22 18:06 vxern