mirror of
https://github.com/uhIgnacio/EmoteManager.git
synced 2024-08-15 02:23:13 +00:00
fix cogs.emote.add_safe_bytes docstring
This commit is contained in:
parent
2475d852a9
commit
7658189744
1 changed files with 1 additions and 2 deletions
|
@ -265,8 +265,7 @@ class Emotes(commands.Cog):
|
||||||
async def add_safe_bytes(self, context, name, author_id, image_data: bytes, *, reason=None):
|
async def add_safe_bytes(self, context, name, author_id, image_data: bytes, *, reason=None):
|
||||||
"""Try to add an emote from bytes. On error, return a string that should be sent to the user.
|
"""Try to add an emote from bytes. On error, return a string that should be sent to the user.
|
||||||
|
|
||||||
If the image is static and there are not enough free static slots, prompt to convert the image to a single-frame
|
If the image is static and there are not enough free static slots, convert the image to a gif instead.
|
||||||
gif instead.
|
|
||||||
"""
|
"""
|
||||||
counts = collections.Counter(map(operator.attrgetter('animated'), context.guild.emojis))
|
counts = collections.Counter(map(operator.attrgetter('animated'), context.guild.emojis))
|
||||||
# >= rather than == because there are sneaky ways to exceed the limit
|
# >= rather than == because there are sneaky ways to exceed the limit
|
||||||
|
|
Loading…
Reference in a new issue