REST API endpoints for Discord channels.
All functions return {:ok, result} or {:error, reason}.
Summary
Functions
Creates a channel in a guild.
Deletes a channel.
Deletes channel permission overwrites for a user or role.
Edits channel permission overwrites for a user or role.
Gets a channel by ID.
Modifies a channel.
Modifies guild channel positions.
Sets a voice channel's status (up to 500 characters, or nil to clear it).
Triggers the typing indicator in a channel.
Functions
Creates a channel in a guild.
Deletes a channel.
Deletes channel permission overwrites for a user or role.
@spec edit_permissions(String.t() | integer(), String.t() | integer(), map()) :: :ok | {:error, term()}
Edits channel permission overwrites for a user or role.
Gets a channel by ID.
Modifies a channel.
Modifies guild channel positions.
@spec set_voice_status(String.t() | integer(), String.t() | nil, keyword()) :: :ok | {:error, term()}
Sets a voice channel's status (up to 500 characters, or nil to clear it).
Requires the SET_VOICE_CHANNEL_STATUS permission, plus MANAGE_CHANNELS
if the bot is not connected to the channel.
Options
:reason- Audit log reason
Triggers the typing indicator in a channel.