REST API endpoints for Discord interaction responses.
All functions return :ok, {:ok, result}, or {:error, reason}.
Summary
Functions
Creates a followup message for an interaction.
Deletes a followup message.
Deletes the original interaction response.
Edits a followup message.
Edits the original interaction response.
Responds to an interaction.
Functions
@spec create_followup(String.t() | integer(), String.t(), map(), [EDA.File.t()]) :: {:ok, map()} | {:error, term()}
Creates a followup message for an interaction.
@spec delete_followup(String.t() | integer(), String.t(), String.t() | integer()) :: :ok | {:error, term()}
Deletes a followup message.
Deletes the original interaction response.
@spec edit_followup( String.t() | integer(), String.t(), String.t() | integer(), map(), [EDA.File.t()] ) :: {:ok, map()} | {:error, term()}
Edits a followup message.
@spec edit_response(String.t() | integer(), String.t(), map(), [EDA.File.t()]) :: {:ok, map()} | {:error, term()}
Edits the original interaction response.
Responds to an interaction.