Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Update from upstream repo Rapptz/discord.py@rewrite #39

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions discord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,8 @@ async def create_custom_emoji(self, *, name, image, roles=None, reason=None):

Creates a custom :class:`Emoji` for the guild.

There is currently a limit of 50 local emotes per guild.
There is currently a limit of 50 static and animated emojis respectively per guild,
unless the guild has the ``MORE_EMOJI``feature which extends the limit.

You must have the :attr:`~Permissions.manage_emojis` permission to
do this.
Expand All @@ -1011,7 +1012,7 @@ async def create_custom_emoji(self, *, name, image, roles=None, reason=None):
The emoji name. Must be at least 2 characters.
image: bytes
The :term:`py:bytes-like object` representing the image data to use.
Only JPG and PNG images are supported.
Only JPG, PNG and GIF images are supported.
roles: Optional[list[:class:`Role`]]
A :class:`list` of :class:`Role`\s that can use this emoji. Leave empty to make it available to everyone.
reason: Optional[str]
Expand Down