fix(emojiinfo): open the emojis.json file before attempting to read from it
This commit is contained in:
parent
9ed16a44f2
commit
ce595e50da
1 changed files with 3 additions and 1 deletions
|
@ -77,7 +77,9 @@ class PartialEmoji(discord.PartialEmoji):
|
|||
name = groups['name']
|
||||
return cls(name=name, animated=animated, id=emoji_id)
|
||||
|
||||
emojis: dict = json.load(data_manager.bundled_data_path(coginstance) / "emojis.json")
|
||||
path: data_manager.Path = data_manager.bundled_data_path(coginstance) / "emojis.json"
|
||||
with open(path, "r") as file:
|
||||
emojis: dict = json.load(file)
|
||||
emoji_aliases = []
|
||||
for dict_name, group in emojis.items:
|
||||
for key, value in group.items:
|
||||
|
|
Loading…
Reference in a new issue