Console Output Clutter Caused by Reaction Listener
The pin_message method in bot/utility/utility.py causes a bunch of exceptions to be thrown whenever a user in direct messages reacts to a message. The exceptions themselves are ignored by the bot, therefore having no impact on the bot's functionality in any manner.
The reason this happens is because the member attribute of the received payload (discord.RawReactionActionEvent) is of type Optional[discord.Member], not discord.Member.
A simple guard clause for member fixes the clutter. A pull request is on its way.
Console Output Clutter Caused by Reaction Listener
The
pin_message
method inbot/utility/utility.py
causes a bunch of exceptions to be thrown whenever a user in direct messages reacts to a message. The exceptions themselves are ignored by the bot, therefore having no impact on the bot's functionality in any manner.The reason this happens is because the
member
attribute of the receivedpayload
(discord.RawReactionActionEvent
) is of typeOptional[discord.Member]
, notdiscord.Member
.A simple guard clause for
member
fixes the clutter. A pull request is on its way.