discord.py前缀回溯

ikfrs5lh  于 2021-09-08  发布在  Java
关注(0)|答案(0)|浏览(226)

嘿,我正试图为discord.py机器人设置前缀,但我遇到了这个问题

Traceback (most recent call last):
  File "C:\Users\myname\Desktop\main.py", line 19, in <module>
    client = commands.Bot(command_prefix="?", case_insensitive=True, help_command=None)
  File "C:\Users\myname\venv\lib\site-packages\discord\ext\commands\bot.py", line 1015, in init
    super().init(command_prefix, help_command, description, options)
TypeError: init() takes from 2 to 4 positional arguments but 5 were given

代码如下:

import asyncio
import discord
import self
import slash as slash
import wn as wn
from confetti import Config
from discord.ext import commands
import random
import json
import os
import asyncio
import os
import hashlib
import requests
import traceback

client = commands.Bot(command_prefix="?", case_insensitive=True, help_command=None)
token = ""

client.run(token)

忽略我需要使用的所有导入

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题