Skip to content

Commit

Permalink
fix: team member check
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalk0 committed Mar 13, 2024
1 parent bded668 commit 6b278f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def on_message(self, message: discord.Message):

async def is_team_member_or_owner(self, author: discord.User) -> bool:
if self.application.team:
return author.id in self.application.team.members
return author.id in [member.id for member in self.application.team.members]
else:
return author.id == self.application.owner.id

Expand Down

0 comments on commit 6b278f4

Please sign in to comment.