forked from cswimr/SeaCogs
fix(emojiinfo): fixed an unboundlocal error
This commit is contained in:
parent
4bf3e85df2
commit
2b5a00f512
1 changed files with 5 additions and 5 deletions
|
@ -82,9 +82,9 @@ class PartialEmoji(discord.PartialEmoji):
|
||||||
emojis: dict = json.load(file)
|
emojis: dict = json.load(file)
|
||||||
emoji_aliases = []
|
emoji_aliases = []
|
||||||
for dict_name, group in emojis.items():
|
for dict_name, group in emojis.items():
|
||||||
for key, value in group.items():
|
for k, v in group.items():
|
||||||
if value == name:
|
if v == value:
|
||||||
emoji_group = dict_name
|
emoji_group = dict_name
|
||||||
if key not in emoji_aliases:
|
if k not in emoji_aliases:
|
||||||
emoji_aliases.append(key)
|
emoji_aliases.append(k)
|
||||||
return cls(name=name, animated=animated, id=emoji_id, group=emoji_group, aliases=emoji_aliases)
|
return cls(name=value, animated=animated, id=emoji_id, group=emoji_group, aliases=emoji_aliases)
|
||||||
|
|
Loading…
Reference in a new issue