djs-questions

9202 threads · Page 81 of 185

How to get user details and give him a role by his "User ID" 29 messages
modern veldt How to get user details and give him role by his "User ID" I tried a lot but not working
998292157150535700
HH 1 messages
barren pewter GM
Sometimes Unknown Interaction 12 messages
young blaze Hey, I made a discordjs Bot that relies heavily on slash commands, sadly sometimes it gives out just unknown interaction...
discord bot template 16 messages
empty lichen hi is there any chance anyone can give me a template for a slash command bot please because all the ones that i have tri...
Error 24 messages
peak widget node:events:495 throw er; // Unhandled 'error' event ^ CombinedPropertyError: Received one or more errors ...
1150878580193116250
Mentions and/or usernames in embeds 15 messages
calm remnant I cant get the embed welome message to return the joining members username. I have tried many ways. ``` const WelcomeEm...
1150878498534199426
Dynamically update command choices without using autocomplete 25 messages
eternal topaz The title says it all, I don't want to have to use autocomplete as I've found it can be pretty buggy. I'd like to be abl...
Channel is not in cache when button interaction is used. 6 messages
rain skiff I tried making a button that would delete the message when clicked, but this error showed up: ## The Error ``` uncaugh...
Modal submiting 5 messages
quasi latch When a user uses a command, as example /say, a modal pops up using `interaction.showModal(modal)`. But when I use `inter...
if (!field) throw new DiscordjsTypeError(ErrorCodes.ModalSubmitInteractionFieldNotFound, customI 20 messages
modern veldt I have this error and this my code in the pictures
998292157150535700
[ERROR] Encountered error on event listener "moderationLog" 6 messages
torpid holly Full Error: https://pastebin.com/GnkxtJqe moderationLog Listener: https://pastebin.com/DLgksCHN I'm calling the modera...
How can 8 messages
mortal ruin How can I create a streaming account generator bot?
1150878580193116250 998292157150535700
Sending Images with djs/rest 73 messages
stark lynx My issue is that the promise dont get resolved of the rest#post() neither the followup works in Discord and I dont see w...
1150878580193116250 998292157150535700
Error with de 14.12.0 version. 3 messages
static mural Hello, Since the version of DJS 14.12.0, my channel and role select menus only no longer work (they are not displayed wh...
can someone help me with so high ram usage 4 messages
tulip grove can someone help me my bot is taking 29gb of ram its in 85 k servers when bot got started it only take 8gb ram then slow...
1150878580193116250 998292157150535700
Commands not being deployed 7 messages
wise ivy Commands not being deployed
1150878580193116250
Unknown Interaction on interaction.reply() 18 messages
bitter hemlock The error is in the given picture, im using discord.js v14, i don't know why this is happening Code: ```JS import { ...
1150878580193116250 998292157150535700
Bot will not .editReply() it's message. 95 messages
regal sluice Greetings, I am running discord.js v14.14.1 and npm v 9.8.1. I have two bots with the exact same code, however one is ...
Workaround Invalid Webhook Token Error 20 messages
visual spindle Recently, I have found that my game bot crashes because it throws Invalid Webhook Token Error when editing or defering a...
1150878580193116250
How do I get an user's "Display Name" with discord.js? 8 messages
rugged jackal For example, I want to specify the users in my server who have a specific symbol like a star ★, and if they have this sy...
How can I pull how many boosts a user gave on my server through discord.js? 13 messages
warm scaffold How can I pull how many boosts a user gave on my server through discord.js?
Getting Threads 5 messages
short stirrup Is it the Message or the Channel object that contains the threads?
Bot giving me "disallowed intents" error when trying to run through node.js 11 messages
peak mica Code: const { Client, GatewayIntentBits } = require('discord.js'); const client = new Client({ intents: [ GatewayI...
Another error in visual 12 messages
calm remnant I am trying to turn my bot on using the node . command and this is the error i am getting Error: Cannot find module 'C...
1150878580193116250
npm install discord.js 11 messages
calm remnant I am trying to install the discord.js but when i run that in visual it tells me npm : The term 'npm' is not recognized...
1150878580193116250
[ERROR] Encountered error on event listener "moderationLog" 7 messages
torpid holly Full Error: <https://pastebin.com/GnkxtJqe> moderationLog Listener: <https://pastebin.com/DLgksCHN>
Check if a member has a role in a different server 4 messages
mint geyser I am currently using discord.js v12.5.3 (Yes I know its old but I dont want to update at the moment so leave me alone) ...
issue with finding a role 6 messages
tight cliff I haven't worked on this bot in a long time as well as forgot how to code a little bit and having issue with finding a r...
New - Modal Support 14 messages
somber smelt Hello so I am pretty new to discord.js overall and am trying to work out how to build a modal and was wondering if anyon...
issue with /core 12 messages
stark lynx Its my first time trying core since I want to have a lightbuild gateway helper and I think I do something wrong? This i...
998292157150535700
"Cannot send an empty message" when sending an image 1 messages
vague bramble I am running a bot that tries to display a dynamically rendered image (an XP rank card showing the user's XP amount and ...
1150878498534199426
how to add a reply 5 messages
weak gate ```if (command === 'moye' && args.join(' ').toLowerCase() === 'moye') { message.reply('hi'); }```
error while setting slash command 13 messages
peak widget DiscordAPIError[50035]: Invalid Form Body 1[LIST_ITEM_VALUE_REQUIRED]: List item values of ModelType are required 3[LIST...
Is having too many awaitMessageComponent/createMessageComponentCollector bad? 7 messages
mighty birch Hey, I have a Discord bot with around 50k guilds. It is a verification bot. I use awaitMessageComponent/createMessageCom...
Roles not being changed 29 messages
ashen topaz ```javascript else if(interaction.isStringSelectMenu()) // String Select Menu Interactions { try { let roles = i...
Ping bot message conten 3 messages
real rapids So i wanna know like if my bot gets ping by anyone so i wanted to add a custom message so how can I like how could I wri...
1150878580193116250
100 slash cmds 9 messages
toxic cedar Good evening, little question, is it true that a discord bot cannot exceed 100 slash commands? or can it do it?
1150878580193116250
roles not being added 78 messages
ashen topaz ```javascript else if(interaction.isStringSelectMenu()) // String Select Menu Interactions { let roles = inter...
the rpc in discordjs uses electron@7.3.3which seems to be installing forever 35 messages
raven dragon the rpc in discordjs uses electron@7.3.3 which seems to be installing forever
1003448629866020986
Why is my bot not editing its own message 8 messages
full yew Hey, I have coded my bot to have a "Refresh" button on one of its messages which allows members to get the latest infor...
1150878580193116250 998292157150535700
What is the max time for a Collect Interaction? 7 messages
hasty forum I have a Discord bot that automatically sends the status of the translations we have for a specific app, with an Update ...
1150878580193116250
help coding 1 messages
pearl notch Can anyone teach me python (: (im kinda good at it)
Is there anyway to use webhook emojis 5 messages
real rapids So i wanted to have emojis but ik the bot have to be in the server so i imagined if this is possible for using webhook f...
1150878580193116250
shardering 9 messages
short lion can i remove guilds from a shard and transfer it to a another shard
1150878580193116250
What is this feature? 4 messages
sterile kindle I'm trying to develop a bot and I'd like to know how I would make one of these. (see image) for a bit more context (on ...
Setting up Discord SKUs and Checking User Subscriptions 14 messages
cunning hazel Can someone guide me through setting up SKUs in Discord and checking a user's subscription status when they trigger a co...
Cache or Fetch 3 messages
rocky star Hey guys, So I've been using Discord.js for a while now. But I still don't understand in which cases I can use cache and...
StringSelectMenu interaction isnt working 69 messages
ashen topaz ```javascript else if(interaction.isStringSelectMenu()) // String Select Menu Interactions { const role = interaction....
Selects Menu 8 messages
vague basin Hi, quick question, is it possible to add more than one Select Menu per message?
1150878580193116250
MySQL 2 messages
sand berry Hi! I have some problem with mySQL (mariaDB) connections. I use slash command in my bot and separated it to different fo...