djs-questions

9202 threads · Page 20 of 185

[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...
1150878580193116250
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 ...
1150878580193116250
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 => { ...
1150878580193116250
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"
1150878580193116250
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 ...
The bot never starts and does not connect to that appears in the debug: session limit information 1 messages
gusty lake Is there a solution to this problem ???
998292157150535700
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...
1150878580193116250
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...
1150878580193116250 986538542350086175
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
1150878580193116250
I need help 1 messages
abstract mountain Okay thank you so much So basically i want it so every time i type something it automatically reacts to me or a specific...
1150878580193116250
Online member fetch 24 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...
1150878580193116250
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...
1150878498534199426 998292157150535700
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...
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...
1150878580193116250 998292157150535700
help me fix this error please 19 messages
rapid bough i want your help guyssssssssssssssssssssssss
1150878580193116250
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...
1150878580193116250
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?
1150878580193116250
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...
1150878580193116250
Logs 23 messages
scenic wind Does anyone have an idea why the ban remove will log but none of the other guild events will?
1150878580193116250 998292157150535700
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...
1150878580193116250
Question about choices 2 messages
rugged goblet How to put all guild channel in interaction option? Like this:
1150878580193116250
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 ...
998292157150535700
guild applications 13 messages
sleek crypt can discord.js bots view guild applications
1113356221962010634
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...
Get Activity (Embedded Apps) in a channel 1 messages
white cliff Is there a way to get information about currently ongoing activities (games created w/ embedded app SDK) in a channel? I...
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...
1150878580193116250
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...
1150878580193116250
Small question 6 messages
rugged goblet Maybe stupid question, but how to make this one?
Vote Member détection : Command slash 10 messages
half summit Hello, I hope I'm in the right place! ## Code informations - Djs v14.14.1 - Node js 20 ## What I need I would like ...
1150878580193116250
Autocomplete Unknown Interaction 32 messages
slate basalt Whenever I paste a url into my autocomplete command I get Unknown Interaction, even though the command still runs. erro...
1150878580193116250
Vote détection with slash command for a member 1 messages
half summit Hello, I hope I'm in the right place! I would like to make a system to detect when a user makes a slash command and giv...