djs-questions

9202 threads · Page 10 of 185

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.
1150878580193116250
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...
1150878580193116250
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?...
1150878580193116250
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...
1150878580193116250
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...
1150878580193116250 1003448629866020986
snowflakes 5 messages
halcyon umbra How can I understand from snowflakes what type of role it is, channel or user?
1150878580193116250
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....
986538542350086175
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...
1150878580193116250
Role color gradients. 3 messages
lime sand Hello. Are role color gradient supported yet?
998292157150535700
[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 }); ``` ...
1150878580193116250
"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 ...
1150878580193116250 998292157150535700
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'...
1150878580193116250
I don't have the necessary parametres 18 messages
karmic salmon ```js const { SlashCommandBuilder, EmbedBuilder } = require("discord.js"); const { seniorGuild } = require('../../config...
1150878580193116250
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 67 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, ...
1150878580193116250
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
1150878580193116250
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...
998292157150535700
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
1150878580193116250
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...
1113356221962010634
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...
1150878580193116250
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...
1150878580193116250 998292157150535700
WebSocket properties 6 messages
ember hazel How i can define ws properties in `@discordjs/ws@^1.2.3`?
1150878580193116250 998292157150535700
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...
1150878580193116250
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...
1150878580193116250 998292157150535700
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...
1150878580193116250 998292157150535700
animated sprite 2 messages
river island So i want to do a kind of 'build your own' character with layed sprites, static is fine, but i'd like to give it an idle...
Guild tag 3 messages
vernal widget Using Discord.js or the API directly, is there a way to retrieve the new guild tags displayed next to a user's username?...
edit ephemeral reply 20 messages
rain phoenix Hello, is there a way to edit an ephemeral reply ?
Help 1 messages
quasi lance I need to get systemChannelId when after add a guild
998292157150535700
the new SelectMenuBuilder() - Error when adding one in my ContainerBuilder() 30 messages
cinder pelican Hello, so I am doing my bot using the new Container and I just saw that there is a new way to create select menus. But I...
1150878580193116250 998292157150535700
Incompatibility Between ActionRowBuilder and interaction.reply() 6 messages
glass zinc I accidentally upgraded one of my bots to the latest version of discord.js by doing a downgrade and started getting an e...
1150878580193116250
Trying to edit content of specific v2 component, what's wrong? 4 messages
shadow onyx I'm running this code on an eval: ```js const { ContainerBuilder } = require('discord.js') interaction.channel.messag...
1150878580193116250