Closed Drakonix000 closed 6 years ago
Change your token
First off, you're going to want to regenerate your token now.
async def kick(context): kick(context.message.mentions[0].id)
In this kick command, you're trying to recursively call the kick command. That's why it's raising an error telling you that Command objects aren't callable. What you're probably looking for is https://discordpy.readthedocs.io/en/latest/api.html#discord.Client.kick. However, note that Client.kick accepts a Member object as a parameter rather than an ID.
This isn't an issue with discord.py, and for future questions like this, you should join either the official discord.py server or the Discord API server for help, as the README recommends.
Multiple things wrong with your code too :
I'm making a bot using discord.py for kicking players.
But when someone uses the kick command it doesn't work and gets this error.