Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/294.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Discord py-覆盖不影响频道的权限_Python_Discord.py - Fatal编程技术网

Python Discord py-覆盖不影响频道的权限

Python Discord py-覆盖不影响频道的权限,python,discord.py,Python,Discord.py,我一直在尝试创建具有特定权限的频道。 一切似乎都很好,但当我转到新创建的频道的设置时,它似乎没有任何效果。权限同步和覆盖都不会影响频道。为什么呢? 我的代码: 附言: 我想将权限同步设置为False,我只在创建频道后找到了一种方法。 创建时是否有方法执行此操作?此错误是由中的关键字错误引起的 channel = await category.create_voice_channel(arg.title(), overwrite=overwrites) overwrite不是类别的关键字参数。请

我一直在尝试创建具有特定权限的频道。 一切似乎都很好,但当我转到新创建的频道的设置时,它似乎没有任何效果。权限同步和覆盖都不会影响频道。为什么呢? 我的代码:

附言: 我想将权限同步设置为False,我只在创建频道后找到了一种方法。
创建时是否有方法执行此操作?

此错误是由中的关键字错误引起的

channel = await category.create_voice_channel(arg.title(), overwrite=overwrites)
overwrite
不是
类别的关键字参数。请创建语音频道

正确的用法是:

channel=wait category.create_voice_channel(arg.title(),overwrites=overwrites)
参考资料:-


如果您已经覆盖权限,
权限\u synced
将已经为false,您不需要再次编辑它。我不知道,谢谢!你还知道为什么我的机器人没有用正确的权限创建通道吗?好的,我想库会警告我使用一个不存在的命名参数。非常感谢。
channel = await category.create_voice_channel(arg.title(), overwrite=overwrites)