Add EmojiInfo cog #27

Merged
cswimr merged 27 commits from emoji into main 2024-05-08 16:07:30 -04:00
Showing only changes of commit ce595e50da - Show all commits

View file

@ -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: