#Slash commands in cogs?!
1 messages · Page 1 of 1 (latest)
it takes guild_ids=[]
debug_guilds should be in the bot = commands.Bot in your main file i think
(also dont think @discord.slash_command is a thing, in the example its listed as @commands.slash_command (using the import))
Hey, look in the example directory
Pycord, a maintained fork of discord.py, is a python wrapper for the Discord API - pycord/slash_cog.py at master · Pycord-Development/pycord
Here you are
You can check the example
Hope it is helpful
ah ok lemme go thru it
@stark phoenix @lilac turtle
So I actually made a petty mistake. I used client variable above, but in the setup part, I used the bot variable.
But in the end, @discord.slash_command worked? I dont know how
So, have it fixed?
Yes, @stark phoenix thanks so much!