Discord.js v14 - Register Slash Commands

preview_player
Показать описание

Support the Channel:

Connect with me:

Рекомендации по теме
Комментарии
Автор

I'm eternally grateful for this video ❤

benayabs
Автор

the pikachu gif was absolutely beautiful

cadmarlegend
Автор

Hey man just wanna say I love your video! Easy to digest in my miniscule mind!

arminius
Автор

Awesome tutorial bro . Absolutely love it . I was having a really hard time reading documentation but now its clear .

siddharthbhoite
Автор

Hey great tutorial, just wanted to write my experience.

When you said providing invalid structure for commands will cause an error at 11:48, I didn't understand it at first and got some errors. Turns out I can't use capitals in the name of commands XD

RagingTvFTW
Автор

I have a problem doing it in typescript. I can only pass an array of one command object as body to the API. Whenever I do more, I am getting a "Invalid Form Body".
The json:
[{"name":"ping", "description":"Replies with Pong!"}, {"name":"userCount", "description":"Returns the number of users online."}]

maltulabad
Автор

I got DiscordAPIError[0]: 401: Unauthorized in the terminal error and the slash command therefore wont work yet it says its logged on and is logging messages.

chanetic.
Автор

Hello there, in my bot I am setting my commands to client.commands (new Collection()) .. but I can't use that as a body for rest.put() function .. is there a way to use the collection for the body without having to create another array variable and push commands to it?

Perfixel
Автор

Thanks 4 this! Ive tried to import REST but recieved "SyntaxError: Cannot use import statement outside a module".
Any fix?

Eternashio
Автор

help: Error: Expected token to be set for this request, but none was present

pabku
Автор

gives me an error says .setToken is not a function

ibraheemhaseeb
Автор

DiscordAPIError[20012]: You are not authorized to perform this action on this application
I get this when running the deploy script
I have bot scope and application.commands and Use Slash Commands permission. Not sure what I'm missing

nathanbustamante