Skip to content

Commit

Permalink
Fix keyerror
Browse files Browse the repository at this point in the history
  • Loading branch information
MattBSG committed Sep 13, 2024
1 parent e7d5ab6 commit 1015629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/social.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ async def _profile_friendcode(self, interaction: discord.Interaction, code: str)
if punsDB.count_documents({'user': u['_id']}):
hasPuns = True

if interaction.user.id != u['id']:
if interaction.user.id != u['_id']:
user = interaction.guild.get_member(u['_id'])
if not user:
user = await self.bot.fetch_user(u['_id'])
Expand Down

0 comments on commit 1015629

Please sign in to comment.