djs-questions

13317 threads · Page 112 of 267

token is not present 2 messages
wise jolt hello, it tells me that a token is missing when he manages to connect he tells me that.
how do i make a command where the bot picks a msg to send with a whole bunch of other msgs 7 messages
nova ginkgo idk how to explain if u need me to eleborate more just ask
Application command Route 7 messages
rare rain What is the Route in discord-api-types to get all slash commands of my bot?
@discordjs package
Client not able to edit a channel even with all permissions 20 messages
clever pendant I'm trying to edit a channel's name, but keep getting told I'm "missing access" (don't have permission to edit the chann...
[WARNING] The command at C:\Users\.......\addalliance.js is missing a required "data" or "execute".. 32 messages
steel rover index.js: https://sourceb.in/FGCNzQre9z addalliance.js: https://sourceb.in/adfWCh04hx deploy-commands.js: https://source...
Can I use discord.js as an ES modules? And make use of import and export statements? 11 messages
peak bough The above.
Discord Slash Embed Message 10 messages
timber palm Hi guys, how do i add a field in embed slash message ??
Set a default value on a channel select menu? 2 messages
Auto remove file 3 messages
nocturne fern There is my code but bot send files but not delete. ` setTimeout(() => { try { filesToSend.forEach((fi...
How to access interaction.options.getSubcommand() 7 messages
warm bobcat Hi, I have a command in which I also have two subcommands. However when I try to access the subcommand via the getSubcom...
How to use @discordjs/rest dev release 4 messages
turbid viper I would like to use @discordjs/rest on Cloudflare Workers and see that [edge/web compatibility](https://github.com/disco...
@discordjs package dev release
Upgarding ChannelType from djsv13 to djsv14 4 messages
tidal yoke Hi! Can i know whats the new replacement for (its currently in djsv13): ```js console.log(member.guild.channels.cach...
Any ways to edit the MSG sent from application command interaction? 2 messages
outer lantern ??
when user get focusedValue in discord.js how to get which choice did user select in autocomplete 3 messages
jovial moon when user get focusedValue in discord.js how to get which choice did user select in autocomplete
Need help with Economy system using slash commands and redis database 10 messages
turbid meadow Im trying to make a command called give-items that only members with admin permission can use, when
startups 4 messages
smoky cave Hi I want to know how to start correctly in djs I teach js the basic concept like variables, function and arry is that e...
How to make your bot run slash commands and prefix commands? 4 messages
lucid bolt I configured my bot files according to the official discordjs guide, how can I do if I want it to also execute commands ...
Error after following the cooldown guide 5 messages
median raft Hi. New to discord.js, I thus followed the guide. Everything worked well, but I then arrived to the cooldown part. And n...
Building slash commands differently 16 messages
unkempt tartan Hi, i had a discord bot on v13 and JS and i did this to implement slash commands ```js module.exports = { name: 'up...
Get the id of the user who disconnected from vc 3 messages
warped aspen Hello, how would it be possible to have the user id of the user that was disconnected?
Message collectors 3 messages
stray frigate Why do message collectors get triggered, twice? Or even 3 times. From time to times. I don't think it's suppose to happe...
locale 5 messages
light orchid anyone having issues getting locale from users when initiating a command? i added all the logs, seems no mater what, or ...
Find by "About me" 5 messages
tawdry crater Hello, guys. I'm trying to make a bot, cause on my friend's server there is a LOT of spam bots, they're everywhere and k...
Set deafen 9 messages
vital scarab I have an interesting question. We can mute the user's microphone (mute) both on the entire server and in a specific cha...
Error when trying to show modal after clicking button. 16 messages
brisk solar I'm trying to show a modal when the user clicks a button included in the reply, but I keep getting the `'InteractionAlre...
problem when I switched .reply to .editReply 3 messages
north juniper ^
New Bot Dev Struggles... Any Tips? 6 messages
olive briar I have a small growing Discord bot that I am very much still actively coding. I included a dev server invite link on the...
How to do an action in a slash command after a specific amount of time. 3 messages
lucid bolt This command adds a role to a user, i want the bot to remove this role from the member after 2mins, how do i do?
Number Option 4 messages
lucid bolt How to add a number option to a slash command a how to get that number option after in a const.
Problem w my /ping Slash command 43 messages
wet folio So idk why my /ping dosnt work, that shows this error, if anyone can help me that would be great thanks
Keep the bot online 3 messages
median raft So, this is probably a VERY stupid question. I have a VPS, opened an SSH session using PuTTy, and executed `node index....
why doesn't he find a role? 44 messages
opal wolf it button: ```js case "ok-ok-ok": channel.send({ embeds: [ ...
Interaction replying with string works but doesn't work when I return a button 15 messages
terse swift Hey, I started creating a discord bot. It returns a link for the user to click on but it's pretty ugly so i wanted to mo...
Dont understand the guide 8 messages
wet folio so im tryna learn how to code a bot discord but i need several help haha... so im at that screen in the steps, and i don...
Cannot read properties of null (reading 'id') 14 messages
rare reef Hey, so I have a code that worked everytime, but now not longer... Version: 14.11.0 ```/home/container/src/commands/gue...
Typescript: Missing type guard field for button components? 2 messages
nova harness Code example: ```ts import { ButtonComponentData, StringSelectMenuComponentData, UserSelectMenuComponentData } from "dis...
How can I change the status from "playing" to "listening" using the `discord-rpc` npm package? 20 messages
static garden I'm adding rich presence to my application, however it's not a game. How can I replace the text that says **playing**, a...
RPC
Help with @discordjs/core - interactionCreate argument passing 31 messages
warm bobcat Hello, So decided to use `@discordjs/core`. However when I went through the docs and got to the point where the `intera...
@discordjs package
Hyperlink mask as a chat message works in certain servers? 9 messages
west grotto Attempting to chat a hyperlink mask in one server may work just fine, but hyperlink mask in another server shows the ent...
ReferenceError: Member is not defined 3 messages
hexed atlas So I am currently trying to use discord.js and ytdl to play music off of youtube, and it's saying that member is not def...
how many / commands can a bot have? and how many context menu commands can it have? same question fo 8 messages
north juniper title says it all
why am i getting this error? 44 messages
opal wolf it code https://pastebin.com/J50NXXY6
Flag like (--help) approach with /slash-command 5 messages
loud wigeon I'm migrating a bot so it can use slash commands, and wonder how to deal with `--help` flags ? Let's say we have a comma...
Error with send files using `@discordjs/rest` 2 messages
rare rain Getting this error while making a raw file and sending it
@discordjs package
Im getting an error that i dont know how to solve 10 messages
turbid meadow error: ```TypeError: Cannot read properties of undefined (reading 'get') at change_status (/home/container/events/cl...
TypeError: isJSONEncodable is not a function 5 messages
tidal yoke Hi! I keep getting this error when i mention the bot: ```TypeError: isJSONEncodable is not a function at C:\Users\A...
Pulling reactions not working when the message has a button attached 82 messages
unique ledge Hello when I run this code I get Collection(0) [Map] {} giving me no reactions to loop through. But when I try the same ...
Can anyone help me with the discord intents 71 messages
turbid meadow i dont know what this error means: ```/home/container/index.js:40 intents: [Discord.Intents.FLAGS.GUILDS, ...
any one help?? 4 messages
snow falcon here
Does internal sharding still exist? 3 messages
high rose I saw it mentioned in the Discord.js Guide, but can't find any reference to it in the API docs.