Skip to content
Advertisement

Nextcord Slash Commands

I’ve heard that nextcord has now slash commands! That’s great, and this is why I want to add them in my bot. I’ve already watched YouTube tutorials, but, for some reason, it doesn’t work. This is my main.py file

JavaScript

EDIT: Idk if it changes something but I use repl.it

Advertisement

Answer

I tried your code and it works for me. Maybe this will fix it

  1. if you are using the event “on_interaction

    JavaScript
  2. reinvite the bot with the following permission

    applications.commands

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement