-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
bugThis is a bug with the library.This is a bug with the library.
Milestone
Description
Summary
Discord pushed a new change that changes the overwrites object.
However, after testing a bit, it seems to be completely random when it happens. This seems to no longer hold true.
Reproduction Steps
while True:
await bot.fetch_channel(any_text_channel.id)
The while True
is just to make sure the error appears, as it is random when it appears.
Expected Results
For an error to not occur while I'm executing this function.
Actual Results
Traceback (most recent call last):
File "/home/xua/abyss/venv/lib/python3.7/site-packages/discord/client.py", line 1376, in fetch_channel
channel = factory(guild=guild, state=self._connection, data=data)
File "/home/xua/abyss/venv/lib/python3.7/site-packages/discord/channel.py", line 107, in __init__
self._update(guild, data)
File "/home/xua/abyss/venv/lib/python3.7/site-packages/discord/channel.py", line 131, in _update
self._fill_overwrites(data)
File "/home/xua/abyss/venv/lib/python3.7/site-packages/discord/abc.py", line 304, in _fill_overwrites
self._overwrites.append(_Overwrites(id=overridden_id, **overridden))
TypeError: __new__() got an unexpected keyword argument 'allow_new'
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
System Information
- Python v3.7.8-final
- discord.py v1.4.0-alpha
- discord.py pkg_resources: v1.4.0a2373+gc995a5e
- aiohttp v3.6.2
- system info: Linux 4.19.0-9-amd64 Fix issue with author changing type #1 SMP Debian 4.19.118-2 (2020-04-29)
This has also been reproduced on 1.3.3, and a new payload example can be found:
{
"allow": 0,
"allow_new": "0",
"deny": 3072,
"deny_new": "3072",
"id": "448666839778590730",
"type": "role"
}
Galarzaa90, jamzss, AbstractUmbra, tehstone, DiaryRoom and 14 more
Metadata
Metadata
Assignees
Labels
bugThis is a bug with the library.This is a bug with the library.