TypeError: __new__() got an unexpected keyword argument 'allow_new' TextChannel.clone #5126
Closed
3 tasks done
Labels
duplicate
This is a duplicate of another issue or PR.
Summary
TextChannel.nuke stopped working recently, I don't know if it's an Discord API Update.
Reproduction Steps
I did a nuke command, which should work perfectly: "await ctx.channel.clone(reason="Nuke")" (before it was working perfectly) and now there's an error: TypeError: new() got an unexpected keyword argument 'allow_new'
Expected Results
It should clone the channel, same permissions, same name, cooldown, description, category, etc
Actual Results
It doesn't work and raise TypeError: new() got an unexpected keyword argument 'allow_new'
Traceback (most recent call last):
File "", line 6, in nuke
File "/usr/local/lib/python3.6/site-packages/discord/channel.py", line 242, in clone
}, name=name, reason=reason)
File "/usr/local/lib/python3.6/site-packages/discord/abc.py", line 650, in _clone_impl
obj = cls(state=self._state, guild=self.guild, data=data)
File "/usr/local/lib/python3.6/site-packages/discord/channel.py", line 107, in init
self._update(guild, data)
File "/usr/local/lib/python3.6/site-packages/discord/channel.py", line 131, in _update
self._fill_overwrites(data)
File "/usr/local/lib/python3.6/site-packages/discord/abc.py", line 294, in _fill_overwrites
self._overwrites.append(_Overwrites(id=overridden_id, **overridden))
TypeError: new() got an unexpected keyword argument 'allow_new'
Checklist
System Information
The text was updated successfully, but these errors were encountered: