【发布时间】:2020-11-28 18:10:37
【问题描述】:
import discord
from discord.ext import commands
botToken = "*"
client = commands.Bot(command_prefix = '*')
@client.event
async def on_ready():
print("I'm ready!")
@client.command()
async def start(ctx):
a = await ctx.guild.create_category("TEST", position=0)
a.position = 0
client.run(botToken)
position= int 和 channel.position = int 不起作用..
没有找到与我的问题相关的任何问题,给https://discord.com/developers/applications 的 bot 管理员权限,并获得了让他进入我的服务器的链接,创建了一个允许所有内容的角色并给了他这个角色,没有工作..
create_text_channel 和create_voice_channel 没有任何变化,频道正在设置,就好像我没有为它们分配位置一样。
【问题讨论】:
标签: discord.py