fixed small bug in is_emoji
This commit is contained in:
parent
d475a6fb6d
commit
34954eb1af
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ async def react_to_msg(ctx, react):
|
|||
def is_emoji(string):
|
||||
if len(string) == 1:
|
||||
# Range of Unicode codepoints for emojis
|
||||
if 0x1F300 <= ord(char) <= 0x1F6FF:
|
||||
if 0x1F300 <= ord(string) <= 0x1F6FF:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue