【发布时间】:2022-10-30 22:49:10
【问题描述】:
所以我制作了一个不和谐的自我机器人:
prefix = input("\033[0;96m[~\033[0;96m] \033[0;96mPREFIX - ")
client = commands.Bot(command_prefix=prefix, case_insensitive=True,
self_bot=True)
client.remove_command('help')
header = {"Authorization": f'Bot {token}'}
os.system('cls' if os.name == 'nt' else 'clear')
os.system('cls' if os.name == 'nt' else 'clear')
#yt links doesnt work
intents = discord.Intents.all()
intents.members = True
但随后此错误不断出现
TypeError: BotBase.__init__() missing 1 required keyword-only argument: 'intents'
【问题讨论】:
标签: python discord.py