Merge branch 'main' into aurora-pydantic

This commit is contained in:
Seaswimmer 2024-06-04 16:16:26 +00:00
commit a5b344a323
Signed by: CoastalCommitsManagement
GPG key ID: 7E73189F651A553F
2 changed files with 3 additions and 0 deletions

View file

@ -81,6 +81,7 @@ class PartialEmoji(discord.PartialEmoji):
with open(path, "r", encoding="UTF-8") as file:
emojis: dict = json.load(file)
emoji_aliases = []
emoji_group = None
for dict_name, group in emojis.items():
for k, v in group.items():
if v == value:

View file

@ -80,6 +80,8 @@ class SeaUtils(commands.Cog):
text = self.format_src(type(obj))
elif obj := ctx.bot.get_command(object):
text = self.format_src(obj)
else:
raise AttributeError
temp_content = cf.pagify(
text=cleanup_code(text),
escape_mass_mentions=True,