discord_gleam/http/interactions
Values
pub fn delete_followup(
interaction: interaction_create.InteractionCreatePacketData,
message_id: snowflake.Snowflake(snowflake.Message),
) -> Result(Nil, @internal DiscordError)
Delete a followup to an interaction.
pub fn delete_original(
interaction: interaction_create.InteractionCreatePacketData,
) -> Result(Nil, @internal DiscordError)
Delete the original response to an interaction.
pub fn edit_followup(
interaction: interaction_create.InteractionCreatePacketData,
message_id: snowflake.Snowflake(snowflake.Message),
message: message.Message,
) -> Result(
message_send_response.MessageSendResponse,
@internal DiscordError,
)
Edit a followup to an interaction.
pub fn edit_original(
interaction: interaction_create.InteractionCreatePacketData,
data: String,
) -> Result(Nil, @internal DiscordError)
Edit the initial response to an interaction.
For example used after deffering the response, to then send a reply
pub fn send_followup(
interaction: interaction_create.InteractionCreatePacketData,
message: message.Message,
) -> Result(
message_send_response.MessageSendResponse,
@internal DiscordError,
)
Send a separate followup message to an interaction.
pub fn send_response(
interaction: interaction_create.InteractionCreatePacketData,
data: String,
) -> Result(Nil, @internal DiscordError)
Send a basic text reply to an interaction