djs-questions

9202 threads · Page 110 of 185

Which version of discord.js? 5 messages
nocturne garnet Should I use the @discordjs/core repo or the 14.11.x version?
998292157150535700
locales in interactions? 3 messages
light orchid so i have a command that handles locales, it has buttons and those are handled in a different event handling file. but I...
Can't send attachment from buffer 39 messages
soft surge i made a bot that preview STL files, but got an error when trying to send the message, Code and error is below
Internal queue causing too much delay in front end 11 messages
eager prairie How would we either work around or speed up the internal queue implemented by Discord.js? At some point it seems there w...
Authorization code grant flow 9 messages
mellow token Hey y'all first time discord.js user. I'm using the latest version, going through the Authorization code grant flow in t...
Deno support 5 messages
rare rain Do the discord.js subpackages work with deno?
1150878890307358882 998292157150535700
Pronouns 16 messages
vale burrow Is it possible to access a users Pronouns to display on a UserInfo command?
<@&undefined> 5 messages
river compass the collector:```js collector.on('collect', i => { if (i.user.id === interaction.user.id) { if (ms...
Getting Clients Connected to Voice Channels without Cache 8 messages
mild copper I'm working on a bot that should help us see if people who signed up for an event are present in voice chat and if so as...
How to make a slash command that disable/enables other slash commands? 3 messages
lucid bolt Node -v 18.16.0 Discordjs v14.11.0
Detect if an Ephemeral message is still onscreen? 14 messages
oblique musk I am sending an Ephemeral message containing an embed to the user with interaction.reply. I store that reply message in ...
Discord.JS Feature Request 4 messages
dapper jewel Will the functionality to extend the Structure of a class comeback sometimes?
Moving from v13, autoArchiveDuration no longer accepts 'MAX' as it requires int32 10 messages
dull glade Hi! I'm working on migrating from v13 to v14, everything is going well except for one specific thing. autoArchiveDuratio...
Bad typings 9 messages
compact gate ```ts export type RESTPutAPIGuildMemberResult = APIGuildMember | never; ``` must be ```ts export type RESTPutAPIGuildMem...
998292157150535700
BASE_TYPE_MIN_LENGTH 4 messages
peak bough Hey 👋 , I'm getting the following error from the following code, any ideas? ```js const select3 = new StringSelectMen...
Need help with subcommands 43 messages
turbid meadow i cant figure how to get this subcommand right, its the info command and it has the user and the server subcommands
Typescript template/support 5 messages
feral jolt Hey, I want to convert my discord.js javascript bot to typescript, is there any good or popular discord.js template/tuto...
998292157150535700
"chartJS.register is not a function", why? 3 messages
neat monolith it says that after updating several npm modules
Need help with setting up a Role option in a slash command 9 messages
turbid meadow im tryna make a command to specify a income role, when i try to start the bot i get this error: ```/home/container/node_...
Guild ID from audit log entry? 1 messages
peak bough I'm trying to make a mod log system,. and thus am listening for audit log entry create events - however I can't see a pr...
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?
998292157150535700
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 ??
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...
998292157150535700 986538542350086175
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....