AttributeError: 'bot' object has no attribute 'slash_command' How to fix?

Please consider providing your Glitch project’s name in your post. Many problems are very difficult to troubleshoot without being able to see the code involved. Users who haven’t been invited to your project won’t be able to edit your code or see the secrets in your .env file just from your project name.


Alternatively provide some code that gives community members some context around your problem. Use the code formatting tool to make your code easier to read.

Intents = discord.Intents.default()
pingr = commands.Bot(command_prefix=“_”, help_command=None,intents=intents)

I tried to install pycord and but it still gives me the same error. I also tried changing to but it gives me another error.

Anyone have a solution?

what error is it?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.