EDA.API.Invite (EDA v0.3.0)

Copy Markdown View Source

REST API endpoints for Discord invites.

All functions return {:ok, result} or {:error, reason}.

Summary

Functions

Creates an invite for a channel.

Deletes an invite by code.

Gets invites for a channel.

Functions

create(channel_id, opts \\ [])

@spec create(String.t() | integer(), keyword() | map()) ::
  {:ok, map()} | {:error, term()}

Creates an invite for a channel.

delete(invite_code)

@spec delete(String.t()) :: {:ok, map()} | {:error, term()}

Deletes an invite by code.

list_channel(channel_id)

@spec list_channel(String.t() | integer()) :: {:ok, [map()]} | {:error, term()}

Gets invites for a channel.