Skip to content

Commit

Permalink
[AutoReact] fix author being a User object
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Jul 19, 2024
1 parent 2371934 commit b6c469b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoreact/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ class EventMixin(MixinMeta, metaclass=CompositeMetaClass):
async def on_message(self, message: discord.Message) -> None:
if message.guild is None:
return
if not isinstance(message.author, discord.Member):
return
if not message.channel.permissions_for(message.guild.me).add_reactions:
return
if await self.bot.cog_disabled_in_guild(self, message.guild):
Expand Down

0 comments on commit b6c469b

Please sign in to comment.