🌟 CommandKit for Beginners - Discord.js Command & Event Handler

Sdílet
Vložit
  • čas přidán 28. 07. 2024
  • 🌟 CommandKit for Beginners - Discord.js Command & Event Handler
    🧠 Resources
    CommandKit docs: commandkit.js.org
    Starter files: github.com/notunderctrl/djs-b...
    🌐 Important links
    Dev Notes (Weekly newsletter): devnotes.underctrl.io
    Discord: discord.underctrl.io
    Github: github.com/notunderctrl
    Patreon: / underctrl
    Buy me a coffee (one-time donation): buymeacoffee.com/underctrl
    ⏰ Timestamps
    Chapters generated with the help of ytchaptersgenerator.com (not sponsored or affiliated)
    ----------
    00:00 - Introduction
    00:48 - Setting up CommandKit
    03:14 - Setting up events
    08:15 - Setting up commands
    15:04 - Setting up validations
    21:05 - Using the handler object

Komentáře • 23

  • @ryanhmd8305
    @ryanhmd8305 Před 6 měsíci +1

    Wow, that's great! I remember your video on how to create an event handler, and knowing you've created a complete package to do it is a time saver. This will make my project much clearer. Thank you so much!

  • @euzyur5390
    @euzyur5390 Před 8 měsíci

    After I discovered your channel, I significantly improved my programming. KEEP IT UP, you're amazing.

  • @m1dev
    @m1dev Před 8 měsíci

    Awesome vid as always!

  • @musprodev
    @musprodev Před 8 měsíci

    You’re just one of the best JS devs

  • @violetalex2238
    @violetalex2238 Před 8 měsíci

    Amazing, Keep it up ♥

  • @kio2gamer
    @kio2gamer Před 8 měsíci

    its such a headache saver ngl

  • @aoofer895
    @aoofer895 Před 8 měsíci

    Hey man, good job on making this tutorial it was really good but I have an idea for the next or after the next tutorial or video: You could make a tutorial on how to make advanced polls in discord.js with datasaving, discord buttons and percentages showing which one has more or less votes than the other. Have a good day and good luck with future tutorials!

  • @cesarheuvelmans
    @cesarheuvelmans Před 7 měsíci

    Learning how to code discord bots with discordjs, this package is an absolute gamechanger! Thank you so much!
    You're also very good at explaining things in a logical manner. You have every point you want to discuss ready beforehand and get straight to the points without hopping from this to that. The Only thing I might think would help me learning whille watching your videos is; having title screens in between each chapter or 'step' which you're going to explain next. And prehaps also a title with which steps we're going to be discussing this video. It would allow my brain a pause of watching you do stuff in VSC and be like: "Oh, ok, we're heading into a next step, so I should pause here and recap if I didn't understand". Cause right now it's a bit too much of a constant stream of info.

    • @UnderCtrl
      @UnderCtrl  Před 7 měsíci +3

      Thanks for the feedback. I’ll definitely work on better structuring videos in the future

  • @ShadowGamesCorp
    @ShadowGamesCorp Před 5 měsíci

    hey bro loved the vid! do you think you can make another more in depth guide? that would be amazing

  • @dan-chi2920
    @dan-chi2920 Před 4 měsíci

    Holy shit, thank U, now I know wtf that error was

  • @blackmeet5546
    @blackmeet5546 Před 8 měsíci

    Can you pls expl. how to Code an command for creating Scheduls (events) with that discord Event Feature

  • @ntc_too
    @ntc_too Před 5 měsíci

    It works really good but the only sad part is when making a slash-command you can no longer use the auto complete (/**).

  • @XStarReviews
    @XStarReviews Před 8 měsíci +1

    This video was perfect timing for me as I was looking for an easy way to keep my code organized! I hope this isn't a dumb question but, how did you get your terminal to start with commandkit before you entered stuff in the terminal? I'm still using powershell. Thank you in advance and if I figure it out I'll post the answer here

    • @XStarReviews
      @XStarReviews Před 8 měsíci

      On second thought, using "nodemon" works so I probably won't dig too deep on this lol

    • @UnderCtrl
      @UnderCtrl  Před 8 měsíci +1

      Thanks! I just hit the up arrow key to bring up the last used command

  • @expertzack
    @expertzack Před 4 měsíci

    i am getting this error:
    TypeError: Cannot read properties of undefined (reading 'fetch')
    at registerDevCommands (C:\Users\user\OneDrive\Desktop\user\Code\bot
    ode_modules\commandkit\dist\index.js:303:32)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

  • @DemonX82
    @DemonX82 Před měsícem

    How to use it with messageUpdate ?

  • @jagi7976
    @jagi7976 Před 8 měsíci

    hey dude great videos. how would you set up parameters like a "/add 4 6" type of thing, using CommandKit?

    • @jagi7976
      @jagi7976 Před 8 měsíci

      Found it, the tutorial before this one about Autocomplete has a good example
      Thanks for the tutorials bro they've been super helpful

  • @berrie8500
    @berrie8500 Před 5 měsíci

    Hi Dude, nice vids! im wondering how i can put de code for the reload also in validations en events? What do i need to add in the folders/file?

    • @UnderCtrl
      @UnderCtrl  Před 5 měsíci

      The reloading is handled by the "handler" object which you can get from the parameters in your event functions, and you can destructure it as "handler" in your validation function parameter.
      Resources:
      Events parameters explained: commandkit.js.org/guide/event-file-setup#parameters-explained
      Validation parameters explained: commandkit.js.org/guide/validation-file-setup#parameters-explained
      From there you can just reload commands, events, or validations using their appropriate methods e.g. handler.reloadCommands()

  • @eliasgamingdkyt6011
    @eliasgamingdkyt6011 Před 3 měsíci

    How do i connect MongoDB to it?