Guild templates.
Every function returns {:ok, result}, :ok when Discord sends no body, or
{:error, %Lingo.Error{}}. Calls go to the current bot (see Lingo.with_bot/2).
Summary
Functions
Creates a template from a guild.
Deletes a guild template, returning it.
Fetches a guild template by code.
Lists a guild's templates.
Updates a template to the guild's current state.
Edits a guild template.
Functions
@spec create(Lingo.Api.id(), Lingo.Api.params()) :: Lingo.Api.result(Lingo.Type.GuildTemplate.t())
Creates a template from a guild.
@spec delete(Lingo.Api.id(), String.t()) :: Lingo.Api.result(Lingo.Type.GuildTemplate.t())
Deletes a guild template, returning it.
@spec get(String.t()) :: Lingo.Api.result(Lingo.Type.GuildTemplate.t())
Fetches a guild template by code.
@spec list(Lingo.Api.id()) :: Lingo.Api.result([Lingo.Type.GuildTemplate.t()])
Lists a guild's templates.
@spec sync(Lingo.Api.id(), String.t()) :: Lingo.Api.result(Lingo.Type.GuildTemplate.t())
Updates a template to the guild's current state.
@spec update(Lingo.Api.id(), String.t(), Lingo.Api.params()) :: Lingo.Api.result(Lingo.Type.GuildTemplate.t())
Edits a guild template.