【发布时间】:2020-06-03 13:07:24
【问题描述】:
@client.command(pass_context=True)
@commands.has_permissions(administrator=True)
async def new_voice(ctx, name):
await ctx.guild.create_voice_channel(name, *, category)
我还是编程新手,请不要严格判断,请充分解释我的错误是什么,我将不胜感激。
【问题讨论】:
-
你能包含完整的错误吗?此外,您应该尝试
manage_channels=True而不是管理员,因为管理频道也有权创建新频道
标签: python python-3.x discord.py discord.py-rewrite