Merge branch 'aurora-pydantic' of https://www.coastalcommits.com/Seaswimmer/SeaCogs into aurora-pydantic
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 30s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 49s

This commit is contained in:
Seaswimmer 2024-06-04 12:23:13 -04:00
commit 19e50c25e3
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F
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,