How to Make Slash Commands in Discord.py | How to Sync Commands Discord.py

  Рет қаралды 5,447

AliCodes

AliCodes

6 ай бұрын

I am proud of you.

Пікірлер: 53
@adityaajic
@adityaajic 4 ай бұрын
omg man thank you , finally found a way to do slash commands instead of all those tree stuffs
@KashTheKingYT
@KashTheKingYT 5 ай бұрын
This tutorial was the clearest explanation of slash commands I have ever seen🙏 Also I didn't realize I had to refresh discord I was so confused for a while why they weren't showing up 😂
@Lordecai
@Lordecai 5 ай бұрын
BRO I LOVE YOU SO MUCH FOR SAYING THIS MAN. I’ll be remaking this soon once I become better at Discord.Py. Lmk what concepts you want me to tackle so I can make tutorials on them
@StormcodeInStormworks
@StormcodeInStormworks 3 ай бұрын
oh my god, you are a lifesaver. thank you so much, i have been searching for hours
@Mrcrzytornado1
@Mrcrzytornado1 Ай бұрын
The humor at the end was hilarious, also thank you, this helped me finally be able to start mass producing slash commands :D
@Lordecai
@Lordecai Ай бұрын
Heck yeah thanks man. I’m gonna start getting back into tutorials again. Any suggestions on what I should tackle next? It can be about anything!!
@Mrcrzytornado1
@Mrcrzytornado1 Ай бұрын
@@Lordecai how to restrict slash commands to certain people?
@Lordecai
@Lordecai Ай бұрын
Oh good question. I’ll have time Monday night to make that. Thanks!
@Mrcrzytornado1
@Mrcrzytornado1 Ай бұрын
@@Lordecai sounds good!
@chrisalash
@chrisalash Ай бұрын
You are the goat this is the only tutorial that has worked!
@xlrclash
@xlrclash 7 күн бұрын
you are a saviour bruh ive been tryna work with the tree bs for days
@dsfsdad4727
@dsfsdad4727 Ай бұрын
bro thanks so much like i was stuck on this for a year im not even capping
@user-qh8qt8zv2n
@user-qh8qt8zv2n 5 ай бұрын
after 2 hours finally something that worked W dude
@Lordecai
@Lordecai 5 ай бұрын
Ofc bro. Please lmk if you have any questions. I can help solve all and it helps me become a better programmer
@CCarsz
@CCarsz 12 күн бұрын
I can just hear your excitement because of the research done
@AngadYT_
@AngadYT_ Ай бұрын
BROTHER THANK U MAN U DESERVE A SUB
@15uiGoated
@15uiGoated 2 ай бұрын
you are underrated my guy
@atktbro
@atktbro 2 ай бұрын
Ur funny af! love the tutorial
@agalarteymurov2878
@agalarteymurov2878 4 ай бұрын
men thank you, i almos gave up, your video saved me
@Mrcrzytornado1
@Mrcrzytornado1 Ай бұрын
Same
@Kevin_Crysler
@Kevin_Crysler 5 ай бұрын
after 6 hours find this... DUDE THANK YOU!!!!
@Lordecai
@Lordecai 4 ай бұрын
Heck yeah bro. I appreciate that. Let me know if you want to learn any other concept
@SilverMiraii
@SilverMiraii 2 ай бұрын
Legend
@gerbsot
@gerbsot 2 ай бұрын
Omg tysm ❤❤❤❤❤
@magistr9783
@magistr9783 3 ай бұрын
With Ctrl + R you can restart actual discord app and do it there instead of web version.
@IntoTheVault_
@IntoTheVault_ 20 сағат бұрын
w video man ve ry helpfull
@disasterarea9341
@disasterarea9341 3 ай бұрын
why do you want to sync ? what does it do? what would happen if you didn't do it?
@SwiftDustStorm
@SwiftDustStorm 2 ай бұрын
what if I have a class from discord.Client?
@Ultime_on-top
@Ultime_on-top 4 ай бұрын
possible to make an unsync command?
@Ryan-yh3wn
@Ryan-yh3wn 3 ай бұрын
Thank you very much for the video! I was wondering how you got your auto-complete like that on VScode? I tried to google (admittedly not very hard) and couldn't seem to dig anything up. Is it an extension of some sort?
@Lordecai
@Lordecai 3 ай бұрын
I use copilot
@MOPTAM
@MOPTAM 2 ай бұрын
bro you saved my life from some tree shits
@SpunkyOfficial
@SpunkyOfficial 5 ай бұрын
Lovely tutorial, could just give me a code block on cog implementation with a class template of the cog please?
@Lordecai
@Lordecai 5 ай бұрын
I’ll see what I can do. When do you need this by?
@locallyluca
@locallyluca 5 ай бұрын
it worked once and then just stopped no matter what happened (i turned the bot back on, tried other cmds, etc.). do you know why?
@Lordecai
@Lordecai 5 ай бұрын
Very strange. Do you have commands registered when you added the bot to the discord?
@user-ew7mc5qs8n
@user-ew7mc5qs8n 5 ай бұрын
Everytime I try to do the /ping command it says application command 'ping' not found. I have the excact same thing going through tutorial after tutorial nothing is working T_T and when it does work I need to rewrite the whole code because It will only work with full slash commands not hybrid and I dont know how to rewrite it all into full on slash commands
@Lordecai
@Lordecai 5 ай бұрын
Hey! I hope you’re doing well. How do you have your commands set up? Is it with @bot.tree or @hybrid_command? These are REALLY important to distinguish as the bot only does one or the other Drop your code in the comment if it fits (minus the token), I’d be happy to debug
@user-ew7mc5qs8n
@user-ew7mc5qs8n 5 ай бұрын
@@Lordecai Hey yeah I found a different video and some help on the python discord and I finally got it working, though not as easy as you did. I'm very new to coding and my code is an absolute mess lol but at least it works XD. Could you maybe make a video on how to actually setup slash commands? Im trying to add an options parameter to a slash command but it just isn't working
@Lordecai
@Lordecai 5 ай бұрын
@user-ew7mc5qs8n oh like different arguments to pass in? Yeah hell yeah I could do that this Saturday
@user-ew7mc5qs8n
@user-ew7mc5qs8n 5 ай бұрын
@@Lordecai Ty so much man yeah like /buy and then itll give you some options to choose from that have to be chosen. I know it sounds simple hahaha but I'm just struggling
@Lordecai
@Lordecai 5 ай бұрын
Bro I love you rn. That's a really good suggestion. In the meantime, hit up the docs. Here are some examples from the GitHub itself: github.com/Rapptz/discord.py/tree/master/examples/app_commands Specifically this code: class Fruits(Enum): apple = 0 banana = 1 cherry = 2 dragonfruit = 3 @client.tree.command() @app_commands.describe(fruit='The fruit to choose') async def fruit(interaction: discord.Interaction, fruit: Fruits): """Choose a fruit!""" await interaction.response.send_message(repr(fruit)) Lmk if that helps
@gabiguereta
@gabiguereta 5 ай бұрын
I have the same problem
@Lordecai
@Lordecai 5 ай бұрын
What's the problem
@diehole8234
@diehole8234 4 ай бұрын
Hello, I have the same issue right now I got it to work with one command but that one took an hour of waiting for it to finally be synced up. I have other commands that haven't yet been synced up and I was hoping you could help me. One of them is in a Cog with the decorator `@app_commands.command(name='available')` the other is in the main file using client.tree
@Lordecai
@Lordecai 4 ай бұрын
Hey, thanks for the comment. I don’t know too much about Cogs yet. When I understand them I’ll be sure to make an updated video
How to run GitHub codespaces in Flutter
5:00
AliCodes
Рет қаралды 1,1 М.
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 9 МЛН
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 10 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 134 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 193 МЛН
How to make Slash Commands for your Discord Bot (Discord.js)
11:36
Imagine Gaming Play
Рет қаралды 19 М.
Dynamic Select Help Command | Hybrid Commands | Discord.py V2.0
9:12
How to make advanced image recognition bots using python
15:01
Kian Brose
Рет қаралды 1,3 МЛН
Discord.py: Creating Your First Slash Command Tutorial!
4:32
Ethical Programmer
Рет қаралды 203
Make a Discord Bot with Slash Commands
11:07
Ethan | The Code Syndicate
Рет қаралды 3 М.
EASY! Organize Your Messy Code Using COGS! (Ep. 13)
16:36
sanamo
Рет қаралды 13 М.
VR комната ( VR эксперимент/ MADiSON VR )
12:25
ГРАНД-ФИНАЛ! NaVi vs G2 - Esports World Cup 2024 - ЛУЧШИЕ МОМЕНТЫ CS2
50:22