You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ignoring exception in on_message
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/discord/client.py", line 378, in _run_event
await coro(*args, **kwargs)
File "/usr/local/lib/python3.11/site-packages/zorak/cogs/admin/moderation_invites.py", line 92, in on_message
await logs_channel.send(embed=log_message(message))
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/zorak/cogs/admin/moderation_invites.py", line 54, in log_message
description=f"Posted by {arg_message.author}\nIn {arg_message.channel.mention}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DMChannel' object has no attribute 'mention'
Error appears to happen when invite spam hits the DM channel of the bot and the user. We should handle this more gracefully
The text was updated successfully, but these errors were encountered:
Error appears to happen when invite spam hits the DM channel of the bot and the user. We should handle this more gracefully
The text was updated successfully, but these errors were encountered: