Emoji
- class discord_limits.paths.EmojiPaths(client)
- Parameters:
client (discord_limits.DiscordClient) – The DiscordClient instance to use.
- async get_guild_emojis(guild_id)
Gets all emojis in a guild.
- Parameters:
guild_id (int) – The ID of the guild to get emojis from.
- Returns:
A list of emoji objects.
- Return type:
ClientResponse
- async get_guild_emoji(guild_id, emoji_id)
Gets an emoji in a guild.
- Parameters:
guild_id (int) – The ID of the guild to get an emoji from.
emoji_id (int) – The ID of the emoji to get.
- Returns:
An emoji object.
- Return type:
ClientResponse
- async edit_custom_emoji(guild_id, emoji_id, name=None, roles=None, reason=None)
Edits a custom emoji.
- Parameters:
guild_id (int) – The ID of the guild to edit an emoji from.
emoji_id (int) – The ID of the emoji to edit.
name (str, optional) – Name of the emoji, by default None
roles (List[int], optional) – A Llst of roles allowed to use this emoji, by default None
reason (str, optional) – A reason for this action that will be displayed in the audit log, by default None
- Returns:
An emoji object.
- Return type:
ClientResponse
- async delete_custom_emoji(guild_id, emoji_id, reason=None)
Deletes a custom emoji.
- Parameters:
guild_id (int) – The ID of the guild to delete an emoji from.
emoji_id (int) – The ID of the emoji to delete.
reason (str, optional) – A reason for this action that will be displayed in the audit log, by default None
- Returns:
The response from Discord.
- Return type:
ClientResponse