Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Commit

Permalink
[disboardreminder] check message interaction for user when bumping
Browse files Browse the repository at this point in the history
  • Loading branch information
phenom4n4n committed May 14, 2023
1 parent 7d2bd43 commit e8c0f01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions disboardreminder/disboardreminder.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,8 @@ async def respond_to_bump(
member_id = int(match.group(1))
user = await self.bot.get_or_fetch_member(guild, member_id)
member_adapter = tse.MemberAdapter(user)
elif message.interaction:
member_adapter = tse.MemberAdapter(message.interaction.user)
elif my_perms.read_message_history:
async for m in bump_channel.history(before=message, limit=10):
if m.content and BUMP_RE.match(m.content):
Expand Down

0 comments on commit e8c0f01

Please sign in to comment.