Lingo.Api.Sticker (Lingo v0.4.2)

Copy Markdown View Source

Stickers and sticker packs.

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

Fetches a sticker.

Fetches a guild sticker.

Fetches a sticker pack.

Lists a guild's stickers.

Lists Discord's sticker packs.

Functions

create_guild(guild_id, params, opts \\ [])

Creates a guild sticker.

delete_guild(guild_id, sticker_id, opts \\ [])

@spec delete_guild(Lingo.Api.id(), Lingo.Api.id(), keyword()) :: Lingo.Api.result()

Deletes a guild sticker.

get(sticker_id)

Fetches a sticker.

get_guild(guild_id, sticker_id)

Fetches a guild sticker.

get_pack(pack_id)

Fetches a sticker pack.

list_guild(guild_id)

@spec list_guild(Lingo.Api.id()) :: Lingo.Api.result([Lingo.Type.Sticker.t()])

Lists a guild's stickers.

list_packs()

@spec list_packs() :: Lingo.Api.result([Lingo.Type.StickerPack.t()])

Lists Discord's sticker packs.

update_guild(guild_id, sticker_id, params, opts \\ [])

Edits a guild sticker.