djs-questions

9202 threads · Page 25 of 185

Can't fix this error, client.on, code in pastebin 8 messages
copper herald https://pastebin.com/jt3P8fSy
I need a helping hand from a professional Dev 12 messages
lapis grail ```js Fehler beim Erkunden der Welt: DiscordAPIError[10062]: Unknown interaction at handleErrors (/home/discordbot/n...
1150878580193116250
Message sending multiple times 8 messages
arctic siren Sounds like a really basic issue - and it may be so. However, I've been unable to come up with a solution as to what is ...
Not triggering on entitlement create 27 messages
civic warren Does anyone know why the code here wouldn't work to create a user and make a subscription on entitlement create? ```type...
1150878580193116250
Adding reactions to embed message. 29 messages
small reef Hello there. I am trying to add reactions to a message my bot sends but for some reason react() doesn't exist for me. I ...
Edit Embed with buttons 7 messages
rustic zinc Hey, I have an embed and btns, I can also access the btns, but now I want the embed to be edited when I click on the pre...
1150878580193116250
client.login stopped working out of nowhere, can't start the bot 6 messages
light sedge Nothing changed in code, the container was just sitting there. Out of nowhere, the bot stopped responding to events so I...
Delete Message from User in DM 58 messages
split cove Is it possible, to delete all Messages from the Bot and User in DMs
TypeError at _transformAPIMessageInteractionMetadata 9 messages
austere portal I'm having a strange error and can't seem to find anyone who's had this same problem. ```js async handleModal(interacti...
1150878580193116250
Memory profiling with sharding 2 messages
gloomy jetty When using the `ShardingManager`, using node's memory profiler (`node --inspect index.js`) only shows the memory usage o...
1150878580193116250
Question 1 messages
spark garnet Im making a Discord ping on join system Should I make the bot send the message with webhooks or normal?
Thread .fetchArchived() doesn't return all the archived threads even if those are public 3 messages
burnt hollow Hey there, I'm using the .fetchArchived() function to get all the archived threads in a forum but it looks like the func...
Ephemeral messages 27 messages
modest drift My problem is that the error message is Error [InteractionAlreadyReplied]: The reply to this interaction has already bee...
1150878580193116250
Commands don't seem to update at all 34 messages
onyx basalt I have tried re-deploying commands again, restarting my bot, restarting my Discord client, reinviting my bot to the serv...
Linking emojis to a role 5 messages
fathom quarry Hello, if I remember correctly there is a way to make an emoji only usable with a certain role through the API. Does djs...
TAG ID doesn't work correctly 9 messages
wind ravine They are (the members) on my discord i have the guildmembers intent and i tried that : const guild = client.guilds.cac...
Discord auth script logging 19 messages
granite urchin I have made a discord auth script that uses glitch to verify people using discord. I want to make logs for it using work...
me commands arent updating 40 messages
hasty gyro ive changed the command folder and its still showing commands that arent there
1150878580193116250
click button 44 messages
modern sleet can we click a button using djs?
1150878580193116250
Getting poll results 8 messages
summer rain Hi there, I am trying to make a bot that makes a poll and then responds with the winning answer to the poll, How do i do...
Event to signify the launching on an activity 2 messages
rotund kiln Is there a particular gateway event to know if an installed activity has been launched/started by a user in a Discord se...
discord rest api how to send dm ? 11 messages
hasty haven Hello, I am using discord-api-types and discordjs/rest for my worker based discord bot. According to docs, ```js rest.po...
998292157150535700
Make a bot leave the server you run the command in. 8 messages
edgy spire ^^
Transcript to URL 9 messages
edgy quiver So right now i already have it going to my bot-hosting.net panel and it goes to the correct file location but... Wheneve...
Collector Error 4 messages
vital sequoia - **`Code`** ```js if (data) { const Btns = new Discord.ActionRowBuilder() .addCompo...
1150878580193116250
Role mention 15 messages
rotund token Please help me set up role notifications. My bot does not notify the role when sending a message in the chat. It has the...
1150878580193116250
I tried switching the file I am running node with but it keeps referencing the wrong file. 9 messages
vernal tartan Yes I am in the right directory, uninstalled and reinstalled node. And cleared the cache.
Commands not visible 12 messages
winged edge I have the problem that when I push the commands globally, the commands are not available even after hours. However, it ...
1150878580193116250
Fetch the prices of each SKU in your application store front 4 messages
rotund kiln Hello, is it possible to fetch the prices of SKUs from your application store front using discord.js?
Button not firing interactionCreate event 6 messages
formal summit I'm making a simple event signup bot tailored to my server. When registering for an event, you have to choose a characte...
1150878580193116250
How to make slash commands work globally (in other servers and in dms where bot is not presentt 46 messages
meager warren What do I do in my code to make it work? I have tried everything but the slash command does not work no matter what I do...
1150878580193116250
All Intents 6 messages
livid drum Where can i find all the Intent flags?
DJS parsing 24 messages
viscid belfry does DJS parse inputs from stuff like user tag to prevent exploits?
1150878580193116250
gaving probelm in ternminal 6 messages
vestal crypt but the code is running nice in vscode
Live X feed tracker 2 messages
alpine summit Hey, I want to make a bot that can track different X users and will post their posts, replies and reposts in a discord c...
what happens to the "main listener" when using a message collector? 6 messages
silent bay suppose i use a `client.on('messageCreate', ...)` (eg. for collecting DMs) and a `messageCollector.on('collect', ...)` o...
Prefix Guide (V14) 5 messages
shrewd helm Hello, i am interested if there is a still official discordjs guide for Prefix Commands, i don't really wanna use offici...
998292157150535700
Ban does not work? 44 messages
edgy spire When I try to do this: "" await interaction.guild.bans.create(banUnholy.id (reason)).catch(err => { ...
How to properly communicate between shards? 4 messages
cold sierra I tried something like this, but it ended up sending hundreds of messages when it should have sent one, or otherwise jus...
1150878580193116250
Interaction.member.roles is either string array or role manager 12 messages
deep mountain as the title says, how should I handle it, how can I force it to always give me on or the other?
1150878580193116250
Caching Issues 55 messages
eternal canopy Hello! I'm fairly new to discord.js and I have some issued with this code I wrote. ```if (oldMember.partial) await oldM...
1150878580193116250
help in code 2 messages
vestal crypt having error in code help me please
1150878580193116250
How to record Silent Parts of an Voice Channel Recording 4 messages
magic snow i wanted to make an bot to record cause i dont wanna pay for craig for some features... and i noticed the slient part of...
1150878580193116250 998292157150535700
Managing Internal Queues 12 messages
odd ravine Apparently Discord.js has an internal queueing system for managing API requests to prevent exceeding rate limits. When I...
Property 'voice' does not exist on type 'GuildMember | APIInteractionGuildMember'. 7 messages
cosmic briar Hi, how can I make this typesafe? ```js if (!interaction.member?.voice?.channel) { return await interaction.reply...
1150878580193116250
Destroy a client (logout) after using it 32 messages
signal birch So for the past 2 days i've been searching for a way to **logout** of the token after destroying it. Is there any way?
Slash commands not working 6 messages
worldly lake So I have registered my / commands and when I type them, I have a console log to show that it has received the interacti...
Fetching entitlements of an app 2 messages
rotund kiln Relatively new with the library, is it possible from a backend service to use discord js to fetch the entitlements of a ...
How to handle multiple slash commands simultaenously? 57 messages
frigid warren When multiple people run slash commands on my bot, it always makes the commands fail until the current process is comple...
998292157150535700
Handler 8 messages
cunning relic Does anyone have a good handler for djs v14 with slash commands, buttons, menus, etc?
1150878580193116250