Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG - Anti-spam throws error when spam messages are all in 1 channel #289

Open
Xarlos89 opened this issue Nov 22, 2023 · 0 comments
Open
Labels
BUG Something isn't working EASY Easy issues

Comments

@Xarlos89
Copy link
Collaborator

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/admin_automod_spam_messages.py", line 117, in on_message await self.warn_message.delete() ^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'str' object has no attribute 'delete'

Error happens when anti-spam detects 3 messages in one channel. It attempts to delete the string object "warn_message", instead of a discord message object.

@Xarlos89 Xarlos89 added BUG Something isn't working EASY Easy issues ZORAKATHON labels Nov 22, 2023
@Xarlos89 Xarlos89 moved this to 📋 Backlog in Zorak Bot Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Something isn't working EASY Easy issues
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant