#how to use slash commands?

1 messages · Page 1 of 1 (latest)

deft flax
#

how do i use slash commands, because i saw something like this on the pycord docs but it's not showing as a command when i type a "/"

silk vessel
#

Don't add guild_ids to the decorator

#

that's only for debug purposes or to make unqiue slash commands for a few set of guilds

deft flax
#

so i read on the pycord docs that not adding that might make the command take an hour to register, is that still the case

silk vessel
#

You can still add one of your guilds to it to make it register immediately while you're developing. But once you release your bot you need to remove it

deft flax
#

after fixing that, i get another error:

#

the only thing i changed was removing the guild_ids

silk vessel
#

That error doesn't mean anything without seeing any errors in your terminal

deft flax
#

and after adding an error handler, the command doesn't even appear after i type "/"

silk vessel
#

Why did you add an error handler?

deft flax
#

so that i know what error it is

#

well now it's working

#

but sometimes it shows and sometimes it doesn't show

slender kernel
#

And send your updated code

deft flax
slender kernel
#

not an image

#

retract your token

deft flax
deft flax
#

like right now the slash cmd is disappearing after 1 use

acoustic fern
deft flax
#

do slash commands disappear after 1 use if you have another instance running

acoustic fern