djs-questions

9202 threads · Page 12 of 185

Components v2 - SectionBuilder with button 40 messages
wild dagger Hey everyone. I'm trying to add a ButtonBuilder to a SectionBuilder, nested in a ContainerBuilder. But when trying to po...
Components timeout causing "Unknown Message" error on ephemeral messages 5 messages
dusty plank Hey all, I did a bit of research before posting this but I'm still a bit confused, I'm wondering what would be the best ...
Better way to see if user is in channel 51 messages
ornate fjord I want to check if a user is in the same channel as the executed command. My current solution is quite big and complex. ...
1150878498534199426
Error: Discord API call failed: read ECONNRESET 9 messages
main cosmos So, I am making a FiveM server and I have a discord.js bot. The bot is supposed to: - Detect when there is a new role a...
1150878580193116250
User client(desktop client/browser/mobile) 11 messages
rare kernel How can I get the user's device
A bot that uses multiple discord bots 23 messages
bitter mural Basicly my bot wukk get rate limited alot as it will create alot of channels and drag members when it create game vcs so...
998292157150535700
How to send ephemeral messages in new updates? 2 messages
fallow linden I am back to discrod.js after quite a while, I used to send ephemeral messages by using the `ephemeral: true` in the int...
How to scale smoothly? 1 messages
wind snow Regarding the sharding part, here's the situation. With num_shards = 2, I launched two local processes with shard_id: 0:...
internal sharding docs 1 messages
ancient wedge Hello! I'm starting to use internal sharding but I can't find anywhere in the docs where I can check shard info (like nu...
how i can make like this server tags logging bot using djs 10 messages
vivid galleon for my tag server like my question is how i can fetch this server tag
Unable to see (/) commands 77 messages
soft scaffold I'm trying to follow the guide on the part of creating slash commands, and this is my `main.js` file, and my bot is up a...
1150878580193116250
Slash Command Help 20 messages
covert crown how to name slash command without accents - instead of spaces. For example /embed create instead of /embed-create for sl...
i got error for removing the semi colon 48 messages
nimble nebula i got error for removing the semi colon
Testing djs commands/flows 7 messages
wanton cipher What's the generic consensus for (unit/integration) testing commands? Mock the djs return values? Room for error if I my...
Bot not joining server 24 messages
soft scaffold Hi, i'm knew to coding and building bots, and I tried to follow all the discordjs guide instructions, and ran the code f...
1113356221962010634
Is there a way to take a (non-zip) folder as input for a slash command 5 messages
high nymph attempting to upload a folder that contains json files, currently failing to upload the attachment via addAttachmentOpti...
How to track multiple boosts within a server 20 messages
winter knot Hey, I'm looking to try and track when someone boosts more then once within a server. To my knowledge, this isn't pos...
Optimizing Cache Management for a High-Volume Discord Bot 8 messages
magic hamlet Hello everyone, I'm currently developing a Discord bot that's active on approximately 1,200 servers, with some servers ...
1150878580193116250
Errors in config.json, deploy-commands.js, and index.js 23 messages
mental quail I think I messed up something simple here. I'm following the discord.js guide and I'm this (https://discordjs.guide/crea...
How do i add components buttons dropdowns etc inside the embed? 2 messages
Error (cant Open a Ticket) 7 messages
shell wagon Need Help.
dropdown menu timestamps markdown 2 messages
sudden gulch is it possible to have timestamps in the dropdown menu, v2 or i just have to write it with text instead?
can someone help me code a ticket bot 3 messages
thick flicker please
1150878580193116250
Problem with mysql and discord.js 1 messages
candid gorge Hello guys, recently I've encoutered a problem that whenver that I try to start my bot using a sql database it wont let ...
998292157150535700
"No Description" when calling for guild.channels.fetchActiveThreads() 28 messages
fierce violet `Get "https://discord.com/api/v10/guilds/1334649246472732712/threads/active?": context deadline excee`... ``` DiscordAPI...
1150878580193116250 998292157150535700
Voice Channel Create & Move Issue w/ PS5 8 messages
peak kiln I'm curious about a possible limitation of console usage with our temporary-voice feature in our bot. Currently my logic...
1150878580193116250
AutoModerationActionExecution Event Not Firing 13 messages
raven furnace I’m currently building a moderation feature for my Discord bot using Discord.js v14, and I’m running into an issue where...
1150878580193116250
Interaction reference 5 messages
empty path I am looking to refer my interaction to a bullmq job to process the data sequentially. Is there a way to do that, like f...
1150878498534199426
Double commands 29 messages
lapis grail Does anyone have any idea why there are duplications? I have the deploy-commands.js from your guide only I use global co...
Is it possible to fix `Unused default export` 7 messages
unique latch I like to keep the files free of unnecessary warnings. Is there any way to remove it?
Default `time` value for `awaitMessageComponent` ? 14 messages
hallow tulip Hi, the `time` value in `awaitMessageComponent` is optional, but I cannot find any indication of what the default value ...
Embed Video ? 12 messages
random pike Hello i want put a link video URL on my embed and can watch the video on it it possible or not ?
Fetch all guild members 16 messages
brazen condor Hello! I want to fetch all members of my guild (around 40k) without blocking incoming interactions and without sending a...
in-line vertical 4 messages
sudden gulch is it possible to use in-line in embeds to have horizontal displays?
Slight code modification to make it work for another bot 4 messages
quasi lava Hello, the following code is fully functional and does the following: After a random amount of messages in the server th...
Error: Cannot message this thread until after the post author has sent an initial message. 21 messages
lucid parrot I'm encountering the following error: ``` DiscordAPIError[40058]: Cannot message this thread until after the post autho...
Question about Button Interactions 58 messages
marsh sinew Hello - I have a TempVoice System & Button to Manage on the Embed in the Voice. (Voice Lock & Unlock) > After clicking...
Potential bug on the ModalSubmitInteraction class 5 messages
bitter dove In the documentation it says that there is a method "update" which does not exist in the class : https://discord.js.org...
Inconsistent "Unknown Interaction" Error 61 messages
sturdy geode I checked the probably causes but neither of them should be causing the issue. - My interactions are already deferred. -...
TypeScript: GuildMember#joinedTimestamp may be null. Why? 5 messages
crystal crag I'm converting my bot to TS, and I just noticed that GuildMember#joinedTimestamp (and GuildMember#joinedAt) are typed as...
1150878498534199426
Bare bones d.js setup with bun, can't find types for bun? 4 messages
last shuttle Currently setting up a new d.js project with bun. I don't even have d.js code in here yet lol. Vscode keeps complaining ...
How should my project be structured? 5 messages
daring meteor I've been working on a discord.js bot of considerable size for a long while now, but I'm starting to notice some issues ...
1150878580193116250
fetch all guilds? 17 messages
rough oyster Hey guys, I'm creating a dashboard for my Discord bot, but ran into some issues. I'm trying to get a list of all id's fr...
Disable button on "end" 9 messages
shut wraith Heyo, I hope this is a quick one: I have a leaderboard with a couple buttons for navigation and toggling some properties...
Question Guild Tags 4 messages
modest drift Can a Discord bot get a guild tag from a user, so that if the tag is set, the bot will assign a role, if it removes the ...
1150878580193116250
Lookup Error 15 messages
marsh sinew Hey! I upgraded to the newest discordjs and one of my commands are not working anymore. I build in logs & that is the o...
Error to create thread on my bot embed. 9 messages
kindred plaza Hi everyone, I have a problem with the "startThread" option, which is normally suppose to allow me to create a thread on...
1150878580193116250 998292157150535700
AuditLogEntryCreate event handling 2 messages
civic warren https://sourceb.in/aDrJQ7PuLm is my code currently for this gateway event but I am sure there has to be a better way to ...
1150878580193116250
How to get text from TextDisplayBuilder (Components v2) 2 messages
blissful fiber I need help with getting the text from TextDisplayBuilder which is inside of a ContainerBuilder. For example this is how...
TypeError: Cannot read properties of undefined (reading 'cache') 3 messages
restive bloom This error is very rare, it only happened once, today ```ts const member = await ButtonInteraction<"cached">#guild.memb...