Make a Discord Bot with Slash Commands [2024]

Sdílet
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

Komentáře • 9

  • @mixingitallup
    @mixingitallup Před měsícem +2

    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! :)

  • @beaumcdermott8742
    @beaumcdermott8742 Před 2 měsíci +1

    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.

    • @ethancox2025
      @ethancox2025  Před 2 měsíci +3

      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

  • @tjb3171
    @tjb3171 Před měsícem +1

    great tutorial, can you zoom in a bit tho? the code is a bit small lol

  • @TrueMelone
    @TrueMelone Před měsícem +1

    I'm struggling with reportMissingImports at import discord. can't help myself because i have no experience at all

    • @TrueMelone
      @TrueMelone Před měsícem +1

      nevermind. i missed the part where i needed to install some extra python stuff

  • @HobbyGamer.
    @HobbyGamer. Před 2 měsíci

    Hello, good tutorial but didnt worked for me.

  • @prianshubarua2896
    @prianshubarua2896 Před 14 dny

    "d:\BOTTTT\cfx bot\bot.py", line 24, in
    @bot.tree.command()
    ^^^^^^^^
    AttributeError: 'Bot' object has no attribute 'tree' ---what is this now :(

    • @MubyWasTaken
      @MubyWasTaken Před 2 dny

      Getting the same shit!
      Any solutions???