Skip to content

Commit

Permalink
[Info] add melon specific fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Jul 8, 2024
1 parent 0d6e2be commit a58da0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion info/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ async def _make_embed(self) -> discord.Embed:
}
)
mod: Mod = self.bot.get_cog("Mod") # type: ignore
names, _, nicks = await mod.get_names(user)
try:
names, _, nicks = await mod.get_names(user)
except AttributeError:
names, nicks = await mod.get_names_and_nicks(user) # type: ignore | specially for melon
created_dt: float = (
cast(datetime.datetime, user.created_at)
.replace(tzinfo=datetime.timezone.utc)
Expand Down

0 comments on commit a58da0e

Please sign in to comment.