No video

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

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

AliCodes

AliCodes

Күн бұрын

I am proud of you.

Пікірлер: 53
@adityaajic
@adityaajic 5 ай бұрын
omg man thank you , finally found a way to do slash commands instead of all those tree stuffs
@KashTheKingYT
@KashTheKingYT 6 ай бұрын
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 6 ай бұрын
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
@Mrcrzytornado1
@Mrcrzytornado1 2 ай бұрын
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 2 ай бұрын
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 2 ай бұрын
@@Lordecai how to restrict slash commands to certain people?
@Lordecai
@Lordecai 2 ай бұрын
Oh good question. I’ll have time Monday night to make that. Thanks!
@Mrcrzytornado1
@Mrcrzytornado1 2 ай бұрын
@@Lordecai sounds good!
@StormcodeInStormworks
@StormcodeInStormworks 4 ай бұрын
oh my god, you are a lifesaver. thank you so much, i have been searching for hours
@CCarsz
@CCarsz Ай бұрын
I can just hear your excitement because of the research done
@xlrclash
@xlrclash Ай бұрын
you are a saviour bruh ive been tryna work with the tree bs for days
@chrisalash
@chrisalash 2 ай бұрын
You are the goat this is the only tutorial that has worked!
@user-qh8qt8zv2n
@user-qh8qt8zv2n 6 ай бұрын
after 2 hours finally something that worked W dude
@Lordecai
@Lordecai 6 ай бұрын
Ofc bro. Please lmk if you have any questions. I can help solve all and it helps me become a better programmer
@dsfsdad4727
@dsfsdad4727 2 ай бұрын
bro thanks so much like i was stuck on this for a year im not even capping
@AngadYT_
@AngadYT_ 2 ай бұрын
BROTHER THANK U MAN U DESERVE A SUB
@agalarteymurov2878
@agalarteymurov2878 5 ай бұрын
men thank you, i almos gave up, your video saved me
@Mrcrzytornado1
@Mrcrzytornado1 2 ай бұрын
Same
@Kevin_Crysler
@Kevin_Crysler 5 ай бұрын
after 6 hours find this... DUDE THANK YOU!!!!
@Lordecai
@Lordecai 5 ай бұрын
Heck yeah bro. I appreciate that. Let me know if you want to learn any other concept
@SilverMiraii
@SilverMiraii 3 ай бұрын
Legend
@15uiGoated
@15uiGoated 3 ай бұрын
you are underrated my guy
@IntoTheVault_
@IntoTheVault_ 28 күн бұрын
w video man ve ry helpfull
@atktbro
@atktbro 3 ай бұрын
Ur funny af! love the tutorial
@qteezden
@qteezden 3 ай бұрын
Omg tysm ❤❤❤❤❤
@magistr9783
@magistr9783 4 ай бұрын
With Ctrl + R you can restart actual discord app and do it there instead of web version.
@MOPTAM
@MOPTAM 3 ай бұрын
bro you saved my life from some tree shits
@SwiftDustStorm
@SwiftDustStorm 3 ай бұрын
what if I have a class from discord.Client?
@disasterarea9341
@disasterarea9341 4 ай бұрын
why do you want to sync ? what does it do? what would happen if you didn't do it?
@Ryan-yh3wn
@Ryan-yh3wn 4 ай бұрын
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 4 ай бұрын
I use copilot
@user-ew7mc5qs8n
@user-ew7mc5qs8n 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
@@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 6 ай бұрын
@user-ew7mc5qs8n oh like different arguments to pass in? Yeah hell yeah I could do that this Saturday
@user-ew7mc5qs8n
@user-ew7mc5qs8n 6 ай бұрын
@@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 6 ай бұрын
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
@SpunkyOfficial
@SpunkyOfficial 6 ай бұрын
Lovely tutorial, could just give me a code block on cog implementation with a class template of the cog please?
@Lordecai
@Lordecai 6 ай бұрын
I’ll see what I can do. When do you need this by?
@Ultime_on-top
@Ultime_on-top 5 ай бұрын
possible to make an unsync command?
@lucathebrainrot
@lucathebrainrot 6 ай бұрын
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 6 ай бұрын
Very strange. Do you have commands registered when you added the bot to the discord?
@gabiguereta
@gabiguereta 6 ай бұрын
I have the same problem
@Lordecai
@Lordecai 6 ай бұрын
What's the problem
@diehole8234
@diehole8234 5 ай бұрын
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 5 ай бұрын
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,2 М.
I tried Discord Bot Makers...
14:19
FaceDev
Рет қаралды 120 М.
How I Did The SELF BENDING Spoon 😱🥄 #shorts
00:19
Wian
Рет қаралды 37 МЛН
Underwater Challenge 😱
00:37
Topper Guild
Рет қаралды 39 МЛН
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 85 МЛН
[NEW] Slash Commands in Less than 10 Minutes Using Discord.PY
5:55
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,7 МЛН
Hack your brain with Obsidian.md
11:53
No Boilerplate
Рет қаралды 1,9 МЛН
How to make Slash Commands for your Discord Bot (Discord.js)
11:36
Imagine Gaming Play
Рет қаралды 21 М.
I made my own Code Editor
12:02
FaceDev
Рет қаралды 286 М.
The LIES That Make Your Tech ACTUALLY Work
11:29
Enrico Tartarotti
Рет қаралды 788 М.
How to code a Discord Bot in 2024!
14:24
MrJAwesome
Рет қаралды 6 М.
How I Did The SELF BENDING Spoon 😱🥄 #shorts
00:19
Wian
Рет қаралды 37 МЛН