Skip to content

Commit

Permalink
Same fix for roles
Browse files Browse the repository at this point in the history
  • Loading branch information
MattBSG committed Jun 25, 2024
1 parent 01110d5 commit 3e9511d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ async def _info(self, interaction: discord.Interaction, user: discord.User):
embed.add_field(name='Left server', value=f'<t:{int(max(dbUser['leaves']))}:f>', inline=True)

roleList = []
if inServer:
if inServer and isinstance(user, discord.Member):
for role in reversed(user.roles):
if role.id == user.guild.id:
continue
Expand Down

0 comments on commit 3e9511d

Please sign in to comment.