discord-php / DiscordPHP

An API to interact with the popular messaging app Discord
MIT License
992 stars 236 forks source link

sendFollowUpMessage has incorrect in-line documentation #1229

Open valzargaming opened 4 months ago

valzargaming commented 4 months ago

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: