djs-questions

13317 threads · Page 21 of 267

Multi select with autocomplete 12 messages
stuck shoal Hi! I have a list with +25 items, and i would like to allow users to select multiple items in a select menu or a slash c...
Doubt about how data is tracked in embeds/buttons 15 messages
sand crystal I have a questiong regarding embeds/buttons, ill give you an example here: Lets pretend that im making a suggestion bot...
node
General DJS Memory Leaks & Potential Voice Issues 311 messages
drowsy crest These are my current makeCache and sweeper settings within my client: ```ts const client = new Client({ intents: [ ...
node
Grouped slash commands 26 messages
tidal bobcat Good evening everyone. I'm just sort of wondering how I can use a group across multiple files. For instance, say I have ...
All commands are not showing in the command list in the server 67 messages
next granite for some reason the only slash command that doesnt show is the spamming slash command
node
The bot crashes after sending one or two direct messages to the newly joined members 18 messages
fallen flame I am using discord.js v14. The code works. However, I don't think it is a rate limit because I checked there were only o...
[Solved] Voice States cleared 19 messages
stark lynx Hey, I noticed that when I get the voice channel, check for the members in the channel I only get the bot member while i...
node
How to store the members of a server, should I? 16 messages
summer forge Hello, I am working on my database right now and I was thinking about storing all the members in a server in an array wi...
How to add another row onto an existing message 56 messages
clear veldt For my bot, I have a select menu, and when you select an option in that select menu it will add a new one on-to the pre-...
Running Discord bot in Next.js App 7 messages
severe nexus I'm trying something and I decided to run a Discord bot in my Next.js 15 application and make a system where the bot is ...
Bot running 2 commands at once 21 messages
minor summit does anyone know why my code would be running 2 different commands at 1 time when I use the **balance** command code is ...
Issue with "custom" autocomplete 22 messages
dreamy mango I will be sending the relevant parts of my code, I'm kind of new to this so please be patient, I would like the command ...
node
Put all webhooks in choices 5 messages
rugged goblet Hi, is it possible to fetch all guild webhooks, and put them to the choices in slash command?
I need help 22 messages
pallid dune Can someone tell me what I need to replace with this? ``const { Client, IntentsBitField } = require('discord.js'); cons...
Fetch all messages in a text channel 37 messages
formal nova Hey there! I'm trying to fetch all messages in a channel for my `/initialize` command. I'm looking at the faq example: ...
PRESENCE NOT WORKING 4 messages
tall pier help does not show anything ```js // ----- Client Ready ----- client.once(Events.ClientReady, async readyClient => { ...
node
request to https://discord.com/api/v9/gateway/bot failed, reason: certificate has expired 12 messages
signal warren request to https://discord.com/api/v9/gateway/bot failed, reason: certificate has expired "discord.js": "^13.16.0"
node
what's wrong? 49 messages
eager oyster i don't know what's wrong, can someone help me? (i already reset the token)
User Install Event 13 messages
peak shuttle Hello, I'm new to discord.js; I want my bot to DM the user when he "user installs" my application, I couldn't find an ev...
Trying to figure out why my user app doesn't work in direct messages. 14 messages
austere hawk Is there something that need to be enabled during command registration for user apps to work in dms? Is there something ...
Error with modals 3 messages
rugged goblet Hello, I just want to create 2 modal which shows one by one but I got this error: ```Error showing modal: TypeError: in...
node
Shard Broadcast 10 messages
quick fjord **main.js** ``` let imgchannel, vidchannel, shardId; bot.once(Events.ShardReady, async () => { imgchannel = bot.chann...
Ticket Handling 5 messages
scenic wind Is anyone able to shed light on why my Close and Lock Enquiry button always sends the Claim Embed as well as always disa...
node dev release
i need help 47 messages
abstract mountain so basically i wanna know how to make it so it reacts to a specific user with a specific emoji
node
Online member fetch 25 messages
uncut heath hi im trying to make a command where its ".members" and it displays the online members, members in the server, and the s...
node
Cannot find module '@discordjs/collection' 10 messages
nocturne brook I'm currently using bun and the project has been working find until today after i have updated both bun and discord.js t...
bun @discordjs package
Bot Hosting for Gateway web socket connection 13 messages
restive merlin Hi all, I have a very simple bot that listens to messages in a channel and creates a poll whenever a message is sent. 2 ...
My collector isn't triggering, but is being created. There are no errors in console. 23 messages
trim plume Hello everyone. I have a slash command script that allows people to host giveaways in a local boardgame club I am a part...
Ticket Logging with Select Menus 5 messages
node @discordjs package
discordjs interactions 53 messages
cedar merlin Hello everyone, I have a script that handles an interaction comes through my bot, is there anyway to answer this interac...
node @discordjs package
help me fix this error please 19 messages
rapid bough i want your help guyssssssssssssssssssssssss
node
TS Inconsistency for message components 6 messages
rigid epoch I was trying to send components using a basic send function from a sendable channel. The docs says I can send an array o...
node
Trying to change a channel name only works when my bot gets the admin role. 46 messages
wintry delta I've got some simple DiscordJS code that is trying to set the name of a specific channel. The problem is that this only ...
Message Component Collector is not collecting after String Select Menu Interaction 3 messages
visual spindle I have this function (handleMatchConfirmation), which replies to an interaction, then use the responseInteraction to cre...
AttachmentBuilder 5 messages
chrome wren Hi, could someone tell me what the attachmentbuilder is for please? I didn't understand it very well in the doc.
Slash commands not being created 30 messages
unreal onyx Sorry I know this has been posted multiple times before and it must be getting old by now, but I read many posts and non...
Slash Options 10 messages
lone badger Hello! How can I make it so that it displays the list of threads on the server here instead of just regular options?
node
Not in stage channel error when running setSupress(false) despite checking for stage channel? 7 messages
drowsy crest So how am I supposed to resolve an error like this? Because from what I can tell, all the checks are correct 😂 Also, if...
node
Logs 23 messages
scenic wind Does anyone have an idea why the ban remove will log but none of the other guild events will?
node @discordjs package
Events.MessageCreate does not invoke 2 messages
drifting tendon ```js const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits...
Role cache get undefined 34 messages
junior widget ``` const guild = client.guilds.cache.get('929288640142663720'); let roles = []; if (config.admi...
node
Question about choices 2 messages
rugged goblet How to put all guild channel in interaction option? Like this:
node
ChatInputCommandInteraction vs CommandInteraction 5 messages
solar meadow Sorry but I'm so confused at what the difference between these two are. Can commands be called from elsewhere or somethi...
Latency off drastically 3 messages
olive gyro ```js const latency = Date.now() - interaction.createdTimestamp; ``` Why is the latency so off? First I got -72, then I ...
@discordjs package
guild applications 15 messages
sleek crypt can discord.js bots view guild applications
Discord
Responding to a button interaction received from the gateway to launch activity 3 messages
rotund kiln After configuring a button to launch an activity (within a message sent by the app's bot), the activity won't launch. Ge...
Confused About Discord Invites: Are They Always Linked to the Original Creator? 5 messages
pastel tendon I’m trying to understand how Discord invite links work ? Specifically: - Is each generated invite code always linked to ...
Setting buffer attachment not working. The resource must be a string, Buffer or a valid file stream 4 messages
honest quarry Hi, I am getting the error `The resource must be a string, Buffer or a valid file stream.` when trying to send file att...
Working with Rest API 5 messages
versed gale I'm trying to use REST for the first time, but I can't get it to work. I can't find any docs/references on how to perfor...
node
How to Create a nitroDetect with Discord.js V14.17.3? 9 messages
velvet raven I have searched a lot of information but I can't do anything. I just want to check which users have boosted Nitro (I alr...
node