InteractionResponseFlags
TheInteractionResponseFlags enum represents flags that can be included in an Interaction Response to modify its behavior.
Enum Values
EPHEMERAL
Value:64 (binary: 1 << 6)
Show the message only to the user that performed the interaction. The message does not persist between sessions and is only visible to the invoking user.
IS_COMPONENTS_V2
Value:32768 (binary: 1 << 15)
Allows you to create fully component-driven messages. This enables the use of Components V2 features.
Usage Examples
Sending an Ephemeral Message
Ephemeral messages are only visible to the user who triggered the interaction, making them ideal for error messages, private responses, or commands that don’t need to be seen by everyone.Using Components V2
Combining Multiple Flags
Flags can be combined using the bitwise OR operator (|):