Make a Discord Bot with Slash Commands [2024]
Vložit
- čas přidán 3. 06. 2024
- Today we'll be building a modern Discord bot using slash commands and Discord.py!
GitHub link: github.com/MasterReach1/disco...
00:00 Set up bot on portal
02:40 Set up code
03:40 on_ready() important info
04:39 Set up first slash command
06:00 Run first test
06:45 Set up parameterized command
08:30 Run second test
09:20 Handling command tree syncing
10:52 Outro
Tried about 10 different tutorials over the past couple of days and this is the only one that actually helped/worked. Very well explained! Thank you! :)
helpful explanations in this. Thanks. And nice on the heads up for not using on_ready to sync so I don't get rate limited. I hadn't heard that yet. Appreciate the video.
Glad you found it useful! Yeah I recommend only using it once in the on-ready just to allow a global sync for all commands. I'm currently working on a solution that will avoid using tree commands so we can just sync whenever we make a brand new bot that hasnt been synced yet
great tutorial, can you zoom in a bit tho? the code is a bit small lol
I'm struggling with reportMissingImports at import discord. can't help myself because i have no experience at all
nevermind. i missed the part where i needed to install some extra python stuff
Hello, good tutorial but didnt worked for me.
"d:\BOTTTT\cfx bot\bot.py", line 24, in
@bot.tree.command()
^^^^^^^^
AttributeError: 'Bot' object has no attribute 'tree' ---what is this now :(
Getting the same shit!
Any solutions???