ClientCompoundStickerEndpoints

Methods

__new__()

Compound components do not support instancing.

Sub-typing is supported, but the attributes are only proxied. Sub-types have no meaning by themselves.

Raises

RuntimeError

sticker_create(guild, name, tags, image, ...)

Creates a sticker in the guild.

This method is a coroutine.

ParameterTypeOptionalKeyword onlyDefaultDescription
guild

Guild, int

The guild to create the sticker in.

name

str

The sticker's name.

tags

None, str, iterable of str

The tags of the sticker.

image

bytes-like

The sticker's image in bytes.

description

None, str

None

The sticker's representation.

reason

None, str

None

Will show up at the respective guild's audit logs.

Returns

sticker : Sticker

The created sticker.

Raises

TypeError

  • If a parameter's type is incorrect.

ValueError

  • If a parameter's value is incorrect.

ValueError

If image s media type is neither image/png nor application/json.

ConnectionError

No internet connection.

DiscordException

If any exception was received from the Discord API.

sticker_delete(sticker, ...)

Deletes the sticker.

This method is a coroutine.

ParameterTypeOptionalKeyword onlyDefaultDescription
sticker

Sticker, int

The sticker to delete.

reason

None, str

None

Will show up at the respective guild's audit logs.

Raises

TypeError

If sticker is neither Sticker, nor int.

ValueError

  • Standard stickers cannot be deleted.

ConnectionError

No internet connection.

DiscordException

If any exception was received from the Discord API.

sticker_edit(sticker, ...)

Edits the given guild bound sticker,

This method is a coroutine.

ParameterTypeOptionalKeyword onlyDefaultDescription
sticker

Sticker, int

The respective sticker.

name

str

New name of the sticker. It's length can be in range [2:32].

tags

str, Emoji, iterable of str

The new emoji representation of the sticker. Used as a tag for the sticker.

description

None, str

New description for the sticker. It's length can be in range [0:100].

reason

None, str

None

Will show up at the respective guild's audit logs.

Raises

TypeError

  • If a parameter's type is incorrect.

ValueError

  • If a parameter's value is incorrect.
  • Standard stickers cannot be edited.

ConnectionError

No internet connection.

DiscordException

If any exception was received from the Discord API.

sticker_get(sticker, ...)

Gets an sticker by it's id. If the sticker is already loaded updates it.

This method is a coroutine.

ParameterTypeOptionalKeyword onlyDefaultDescription
sticker

Sticker, int

The sticker, who will be requested.

force_update

bool

False

Whether the sticker should be requested even if it supposed to be up to date.

Returns

sticker : Sticker

Raises

TypeError

If sticker was not given neither as Sticker, neither as int.

ConnectionError

No internet connection.

DiscordException

If any exception was received from the Discord API.

TypeError

If sticker was not given as Sticker, nor as int.

sticker_get_all_guild(guild)

Syncs the given guild's stickers with the wrapper.

This method is a coroutine.

ParameterTypeDescription
guild

Guild, int

The guild, what's stickers will be synced.

Returns

stickers : list of Sticker

The guild's stickers.

Raises

TypeError

If guild was not given neither as Guild nor as int.

ConnectionError

No internet connection.

DiscordException

If any exception was received from the Discord API.

sticker_get_guild(sticker, ...)

Gets the specified sticker from the respective guild.

This method is a coroutine.

ParameterTypeOptionalKeyword onlyDefaultDescription
sticker

Sticker, tuple, (int, int)

The sticker to get.

force_update

bool

False

Whether the sticker should be requested even if it supposed to be up to date.

Raises

TypeError

If sticker is not Sticker, tuple(int, int).

ConnectionError

No internet connection.

DiscordException

If any exception was received from the Discord API.

sticker_guild_create()

Deprecated and will be removed in 2023 December. Please use .sticker_create instead.

sticker_guild_delete()

Deprecated and will be removed in 2023 December. Please use .sticker_delete instead.

sticker_guild_edit()

Deprecated and will be removed in 2023 December. Please use .sticker_edit instead.

sticker_guild_get()

Deprecated and will be removed in 2023 December. Please use .sticker_get_guild instead.

sticker_guild_get_all()

Deprecated and will be removed in 2023 December. Please use .sticker_get_all_guild instead.

sticker_pack_get(sticker_pack, ...)

Gets the sticker packs. If the sticker-packs are already loaded, updates them.

This method is a coroutine.

ParameterTypeOptionalKeyword onlyDefaultDescription
sticker_pack

StickerPack, int

The sticker pack' identifier.

force_update

bool

False

Whether the sticker-pack should be requested even if it supposed to be up to date.

Returns

sticker_packs : list of StickerPack

Raises

TypeError ConnectionError

No internet connection.

DiscordException

If any exception was received from the Discord API.

sticker_pack_get_all(...)

Gets the sticker packs. If the sticker-packs are already loaded, updates them.

This method is a coroutine.

ParameterTypeOptionalKeyword onlyDefaultDescription
force_update

bool

False

Whether the sticker-packs should be requested even if it supposed to be up to date.

Returns

sticker_packs : list of StickerPack

Raises

ConnectionError

No internet connection.

DiscordException

If any exception was received from the Discord API.