(Updated!) How to Make Slash Commands in Discord.py

Опубликовано: 28 Март 2026
на канале: Digiwind
52,668
520

In this video, we work on slash command syncing and make a basic slash command with Discord.py, natively. Discord.py 2.0 is now stable (use "pip install discord.py" - requires Python 3.8 or higher) to install it! More info below!

If you found this video helpful, please do consider liking the video, subscribing, and sharing it to someone who might find this video helpful (I know a lot of people say this, but it really does help the channel 🙂). If you have any questions, feel free to comment in the comments section or join our Discord Server (discord.gg/M6eFU3HrUn)!

Make sure you add the applications.commands scope to your bot's invite, when you invite it!

Developer Portal:   / discord  

Discord.py Documentation (Latest): https://discordpy.readthedocs.io/en/l...

Slash Command Documentation: https://discordpy.readthedocs.io/en/l...

App Command Tree: https://discordpy.readthedocs.io/en/l...

Interaction Response (Slash Command Response) Documentation: https://discordpy.readthedocs.io/en/l...

Discord Interaction Documentation: https://discordpy.readthedocs.io/en/l...

Deferring in Slash Commands:    • Deferring in Slash Commands | discord.py  

Code for Deferring:
await interaction.response.defer(ephemeral = True)
await interaction.followup.send("message")

Code Modals in Discord.py:    • Discord MODALS in Discord.py are Here!  

Code Framework: https://github.com/Digiwind/Digiwind-...

Discord Server:   / discord  
Twitter (@Digiwind_YT):   / digiwind_yt  
Reddit (u/digiwind_yt):   / digiwind_yt  
GitHub (Digiwind): https://github.com/Digiwind
Top.gg: https://top.gg/user/512025208542986241
Official Discord.py Server: discord.gg/dpy

#Discordpy #SlashCommands #Digiwind #DiscordpyAppCommands #DiscordpySlashCommands #DiscordSlashCommands #dpy