djs-questions

13317 threads · Page 11 of 267

How to properly structure commands (directories) 19 messages
storm jungle Hi! I just started making my first ever discord bot with discord.js. I also dont have much prior TS/JS experience (I am ...
node
interactions.options broke 4 messages
modern helm Not sure if there is a better way to do this or not but after updating from v14.17.3 I'm now getting ` error TS2339: Pro...
Having trouble with stale or inaccurate data on nickname/member updates (coming from Pycord) 2 messages
wicked harness Hey everyone! I recently migrated from Pycord to Discord.js due to the new Components V2 system, and while I’ve got mos...
Get command options while doing modal 5 messages
static ether I'm making a command with multiple options and this command is showing a modal. When I get the modal, I would like to ge...
Is there a way to cache over 1000? (Need full info) 51 messages
desert pollen I was looking to cache over the limit, but it either doesn’t fully cache (ex: 1000/3000) or it assumes it fully cached, ...
Need help getting started making this bot idea I have. 4 messages
cold storm im somewhat new to making bots, but i'm new to Discord.JS so i need some direction. I have this bot idea that has a few ...
node
Question 11 messages
halcyon mural One question: How do you get a slash command to appear in the bot's profile? That is, below its description.
node
How does one create a ButtonBuilder that does not accept Links or Premium buttons? 6 messages
tired lynx I am creating an interaction handler that requires buttons with custom_ids (as such Premium and Link buttons are out the...
node
Why does the APIButtonComponent not have a custom_id prop per default? 3 messages
tired lynx I know you can type assert it as APIButtonComponentWithCustomId but like why is this not in the APIButtonComponent type?...
node
Thumbnail Component V2 6 messages
honest geode Hello, is it possible to add a thumbnail in the new ContainerBuilder ? I found this code in the doc : ``` con...
node
How can I add a rich presence to my Electron application using Discord.js and Node.js? 6 messages
fierce vapor Hi. I want my Electron application to have a rich presence integration that makes users of my application have a rich pr...
node RPC
snowflakes 5 messages
halcyon umbra How can I understand from snowflakes what type of role it is, channel or user?
node
How to create a embed, with button in middle and text below and above in a single message. 9 messages
dry portal Sample:
Looking for someone to help me with some code including discord.js as well as api stuff 3 messages
fading dawn So I have a couple bots with code that just confusing me and I need help
Entitlement Update Event 14 messages
clever plinth Discord.js version: 15.0.0 Hello, I would appreciate any help/guidance around handling the **EntitlementUpdate** event....
dev release
string select menu limits on containers 3 messages
dry lodge how many string select menus can theoretically be placed on a container?
I want to add custom (typed) events to the Client class. 5 messages
tired lynx So i have this class that extends the Client class and it just adds some utilities i use. I want to add a few more event...
node
Role color gradients. 3 messages
lime sand Hello. Are role color gradient supported yet?
@discordjs package
[unhandledRejection] ERRO: TypeError: interaction.options.getUser is not a function 3 messages
delicate pendant Help me.
DiscordAPIError[50001]: Missing Access, likely due to missing "send messages" permissions 16 messages
shell dagger Hi everyone! This is an error that I get approximately every few days for my 1500+ servers bot: https://pastebin.com/mpq...
members.fetch limits 7 messages
nocturne river ``` let fetched = await guild.members.fetch({ limit: 0, force: true, withPresences: false }); ``` ...
node
"Permission error. Make sure the user reconnects the connector and selects all the requested ... " 8 messages
static nimbus `Permission error. Make sure the user reconnects the connector and selects all the requested scopes/permissions as next ...
node @discordjs package
Error: Cannot find module '../configs/config.json' 8 messages
karmic salmon This is happening in my index.js - but that line is in my index? ```js const { bot } = require('../configs/config.json'...
node
I don't have the necessary parametres 18 messages
karmic salmon ```js const { SlashCommandBuilder, EmbedBuilder } = require("discord.js"); const { seniorGuild } = require('../../config...
node
Check forwarded attachments 30 messages
strange tartan Currently we have a system to auto-react to any message that has an attachment However, when a message is forwarded and ...
Error: Expected token to be set for this request, but none was present 5 messages
hard veldt Hello, I got this error from the well-running code. Since 6/25/2025, my running code is crashed.. I tried to fix it for ...
Commands dont load 25 messages
delicate pendant Whenever I create a new command, I have to remove my bot from the server and add it back. How can I fix this?
Unknown Interaction 68 messages
sleek flicker LOGGING DiscordAPIError[10062]: Unknown interaction
JS Problems with global Slash commands in DMs 11 messages
halcyon mural Can someone help me with this? I have some global commands that appear on any server without the bot being added there, ...
node
context menu doesn't support ComponentV2 ? 10 messages
sage solar I've tried sending message from context menu command with componentV2 but its throws ```Invalid Form Body``` instead
node
Discord Component V2 guide summary 2 messages
livid field https://www.notion.so/Discord-Componente-V2-20f3821bef47805c980fd33f02a91090?source=copy_link Maybe it will help some, a...
@discordjs package
Unexpected ValidationError when sending modal 27 messages
uneven sluice After running `ConfigSession.send`, Discord gets no response and I get the below error (which does not trace back to my ...
Cannot find module './structures/PrimaryEntryPointCommandInteraction' 10 messages
muted arrow **Situation:** I've tried to host a bot via **Render** which they throw err for `Cannot find module './structures/Primar...
Syncing 2 messages
heavy zephyr Idk why but it js won't sync I can send any files you may need to help me, It's made using app commands, I even made !lo...
Guys any suggestions on making dashboard for my discord bot 4 messages
crude fjord I want to integrate the dashboard and bot realtime
node
Error Ephermeral 2 messages
hasty mantle Supplying "ephemeral" for interact ion response options is deprecated. Utilize flags ins tead. (Use `node --trace-warni...
Error: Expected token to be set for this request, but none was present 44 messages
vernal drum As of today, multiple devs have been reporting the error mentioned in the title. In my case, the bot's code has not bee...
Discord
AbortError when using @discordjs/[email protected] in Deno project (fount) 3 messages
deno
ESM? TS? What should I use? 6 messages
woven canyon I am somewhat new to JS. Only have been using it for about a year now and have started getting into using lang files, mo...
node
Bot randomly going offline with no errors.. 9 messages
analog spoke I have exactly the same issue like this person. I didnt change anything and suddenly it has this behavior. I dont get an...
node @discordjs package
WebSocket properties 6 messages
ember hazel How i can define ws properties in `@discordjs/ws@^1.2.3`?
node @discordjs package
no command matching 8 messages
cedar delta Im trying to run my commands. already tried updating. latest version
Add image in container 13 messages
glossy mica Hello! How we can do this, add a image in a container like a thumbnail.
Need help with Component V2 layout (discord.js v14) 32 messages
rotund ermine Hey! I'm working with Component V2 using the new builders like `ContainerBuilder`, `SectionBuilder`, `ThumbnailBuilder`,...
Event Help 87 messages
neon sequoia I dont know how events work and i want to make one where each time someone sends a message, it reads and sees if its tha...
node
Attaching files 26 messages
river island I have two bots with similar base code. I have one bot that can attach files a specific local directory, so i know that...
node @discordjs package
How we can do this? 9 messages
glossy mica how we can put the selectmenu in the embed like that?
When is interaction "cached" for user context menu commands? 13 messages
plush crescent Hey all, I'm writing a user context menu command (alongside some other ones that already exist) and wanted to see if I c...
shard reconnect loop 17 messages
viral viper hi! here's a portion of logs from my bot's startup progress; it's been on a reconnect loop for shards even though they...
Routes.guildMembers only returns 1 member 25 messages
high cave Running into a strange issue with discord.js REST where I am only getting a single result for Routes.guildMembers(guildI...
node @discordjs package