#Is it possible to send an ephemeral deferred response to a non-ephemeral initial response?

1 messages · Page 1 of 1 (latest)

spiral fiber
#

Assume a scenario when I know/suspect the processing of an interaction is going to take longer than Discord's interaction timeout , therefore I defer the response (via interaction.create_initial_response(hikari.ResponseType.DEFERRED_MESSAGE_CREATE)). I'll want the response to be publicly visible by all members of the given channel where the command was invoked.

Currently, I use interaction.edit_initial_response(...) to send the response after deferring it, but I can see that it doesn't have a flags parameter unlike the other method.

If an error occurs during the processing, is it possible to follow up with an ephemeral message to notify the user or deferred responses can only be the same type as the initial response?

zinc smelt
#

no

#

it can only be the same type as the initial deferred response

analog kelp
#

If you want to later make the message public, I would recommend creating a new message and responding to the ephemeral with an "action was done"

spiral fiber
#

if I do that, however, this small contextual information will be lost, so other people can't see what the invoked command and its arguments were

#

if I understood you correctly

#

that answers my question, though; thanks a lot guys!

analog kelp
#

And then you can chose what way to go

spiral fiber
#

yeah, these two seem to be the only options

#

time to open a feature request for the Discord dev team DogeHaha

analog kelp
#

The reason it's done this way is because depending on which one is used "either ephemeral or normal" it will show a different "loading...." message