commands

how can I make commands that when I use /add [ID] the user gets added to a channel and when I do /remove [ID] the user gets removed from the channel
18 Replies
d.js toolkit
d.js toolkitβ€’4mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
hustensaft
hustensaftOPβ€’4mo ago
like im completely new to js but i wanna make a discord bot with it since im interested in js and discord bots and need help setting up commands like i mentioned with /add ID and then a user that usually has no access to the channel gets temporary access and can see the channel and then /remove ID for removing @Qjuhand can I somewhere read myself through the basics of javascript?
Unknown User
Unknown Userβ€’4mo ago
Message Not Public
Sign In & Join Server To View
hustensaft
hustensaftOPβ€’4mo ago
yea i found a link i think if i read myself through this itll be easier to learn when i watch yt videos on how to make discord bots with js
No description
Unknown User
Unknown Userβ€’4mo ago
Message Not Public
Sign In & Join Server To View
hustensaft
hustensaftOPβ€’4mo ago
where can I read how to setup a discord bot with js then and how to make slash commands
Unknown User
Unknown Userβ€’4mo ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docsβ€’4mo ago
:guide: Home: Introduction - Before you begin... read more
hustensaft
hustensaftOPβ€’4mo ago
ah bet ty
Unknown User
Unknown Userβ€’4mo ago
Message Not Public
Sign In & Join Server To View
hustensaft
hustensaftOPβ€’4mo ago
yea . thats where I can learn the basics
hustensaft
hustensaftOPβ€’4mo ago
https://discord.js.org/docs/packages/discord.js/14.16.2 @JΓΆπŸŒˆπŸ¦„ whats with this website btw
discord.js
discord.js
discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
Unknown User
Unknown Userβ€’4mo ago
Message Not Public
Sign In & Join Server To View
hustensaft
hustensaftOPβ€’4mo ago
yea its basically the same as this .
Unknown User
Unknown Userβ€’4mo ago
Message Not Public
Sign In & Join Server To View
hustensaft
hustensaftOPβ€’4mo ago
okay
Unknown User
Unknown Userβ€’4mo ago
Message Not Public
Sign In & Join Server To View
hustensaft
hustensaftOPβ€’4mo ago
alr
Want results from more Discord servers?
Add your server