Skip to content

Commit 26188f4

Browse files
committed
select the correct club
1 parent 975eada commit 26188f4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/commands/role.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ async def on_raw_reaction_add(self, payload):
2929
channel = self.bot.get_channel(payload.channel_id)
3030
message = await channel.fetch_message(payload.message_id)
3131
emoji = str(payload.emoji)
32-
33-
db_club = Club.get_or_none(Club.message_autorole_id, message.id)
32+
db_club = Club.get(Club.message_autorole_id == message.id)
3433

3534
if not db_club:
3635
return

0 commit comments

Comments
 (0)