how to take user input after command and save it as a variable discordpy?

You cannot mix client with bot. Use one or the other (bot is typically used). Then change your code to fit one of these. For example, if you pick bot, rename @client.event to bot.event and change client.run to bot.run.

You are also needlessly importing the Bot class again when you have already imported it from discord.ext.commands. I’m also not sure what discord.Game is at the end of your imports.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top