Per the official docs, flags can be set to 64 to mark the message as ephemeral, except when it is the first follow-up message to a deferred Interactions Response. In that case, the flags field will be ignored, and the ephemerality of the message will be determined by the flags value in your original ACK.
Per our in-line docs, ephemeral will be ignored if the respond is previously ephemeral.
Our docs are incorrect and should be adjusted to reflect the true nature of the request:
The first follow-up message will never be ephemeral.
All follow-up messages after the first will be ephemeral if the first follow-up message passed $ephemeral = true.
All follow-up messages after the first will respect their ephemeral flags only if the first follow-up message did not declare $ephemeral = true.
https://github.com/discord-php/DiscordPHP/blob/4cab26d433ec16fa77373a82d1f8536250f762cd/src/Discord/Parts/Interactions/Interaction.php#L387
Per the official docs, flags can be set to 64 to mark the message as ephemeral, except when it is the first follow-up message to a deferred Interactions Response. In that case, the flags field will be ignored, and the ephemerality of the message will be determined by the flags value in your original ACK.
Per our in-line docs, ephemeral will be ignored if the respond is previously ephemeral.
Our docs are incorrect and should be adjusted to reflect the true nature of the request: