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 "/home/kacper/.local/share/virtualenvs/arwatbot-68U9yBdw/lib/python3.8/site-packages/discord/client.py", line 312, in _run_event
await coro(*args, **kwargs)
File "/home/kacper/PycharmProjects/arwatbot/maker.py", line 73, in on_message
await msg.guild.edit(default_notifications=NotificationLevel.only_mentions)
File "/home/kacper/.local/share/virtualenvs/arwatbot-68U9yBdw/lib/python3.8/site-packages/discord/guild.py", line 1053, in edit
default_message_notifications = int(fields.pop('default_notifications'))
TypeError: int() argument must be a string, a bytes-like object or a number, not '_EnumValue_NotificationLevel'
Summary
You cannot change default notifications setting.
Reproduction Steps
await guild.edit(default_notifications=NotificationLevel.only_mentions)
No error is shown but the debugger detects:
Expected Results
Notification level should change
Actual Results
Nothing happens
Checklist
System Information
The text was updated successfully, but these errors were encountered: