Skip to content

Instantly share code, notes, and snippets.

View AbstractUmbra's full-sized avatar
🍙

Alex Nørgaard AbstractUmbra

🍙
View GitHub Profile
@AbstractUmbra
AbstractUmbra / 01-primer.md
Last active November 28, 2023 19:01
discord.py 2.0+ slash command info and examples
View 01-primer.md

Slash Commands and you

This short example will cover how to make slash commands within an ext.commands.Bot's extension and Cog ecosystem.

This will cover most slash situations within discord.py

I added how this command would be invoked in the doc strings.

This does not account for the fact you still need to sync Bot.tree somewhere, please remember to do this.