WIP: Refactor Aurora (3.0.0) #29
2 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,7 @@ class PartialEmoji(discord.PartialEmoji):
|
||||||
with open(path, "r", encoding="UTF-8") as file:
|
with open(path, "r", encoding="UTF-8") as file:
|
||||||
emojis: dict = json.load(file)
|
emojis: dict = json.load(file)
|
||||||
emoji_aliases = []
|
emoji_aliases = []
|
||||||
|
emoji_group = None
|
||||||
for dict_name, group in emojis.items():
|
for dict_name, group in emojis.items():
|
||||||
for k, v in group.items():
|
for k, v in group.items():
|
||||||
if v == value:
|
if v == value:
|
||||||
|
|
|
@ -80,6 +80,8 @@ class SeaUtils(commands.Cog):
|
||||||
text = self.format_src(type(obj))
|
text = self.format_src(type(obj))
|
||||||
elif obj := ctx.bot.get_command(object):
|
elif obj := ctx.bot.get_command(object):
|
||||||
text = self.format_src(obj)
|
text = self.format_src(obj)
|
||||||
|
else:
|
||||||
|
raise AttributeError
|
||||||
temp_content = cf.pagify(
|
temp_content = cf.pagify(
|
||||||
text=cleanup_code(text),
|
text=cleanup_code(text),
|
||||||
escape_mass_mentions=True,
|
escape_mass_mentions=True,
|
||||||
|
|
Loading…
Reference in a new issue