implement same logic for skipping further checks

Co-authored-by: bobloy <alboblexloy@gmail.com>
This commit is contained in:
Obi-Wan3 2021-02-18 10:08:24 -08:00 committed by GitHub
parent 7ad6b15641
commit 92957bcb1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ async def check_guild(guild, emoji):
if len(guild.emojis) >= 2 * guild.emoji_limit:
return False
if len(guild.emojis) < 50:
if len(guild.emojis) < guild.emoji_limit:
return True
if emoji.animated: