djs-questions

9202 threads · Page 95 of 185

command error 3 messages
torpid holly Code: https://pastebin.com/F3HHxY6g ```js Error: CombinedPropertyError (3) Received one or more errors input[3] ...
Dashboard 3 messages
broken bough Hey i need help pls i try to make a dashboard all works fine i try to make a Handler and i got this when i try to connec...
1150878580193116250
select specific role in menu 5 messages
fossil trail hi, i want to make menu, where i can selest specified role. first i wanted to use RoleSelectMenuBuilder, but i found out...
1150878498534199426
Get rid of non-nullish operator 7 messages
rare rain How to remove the need of non-nullish operator in this code? ```js if ( !guild.members .me!.permissionsI...
help 42 messages
tawdry adder i want to update this code : client.user.setPresence({ activities: [{ name: `p!help | ${client.guilds.cache.size} Serv...
ESlint Error 6 messages
rare rain I am getting an error from ESlint in the following code: ```js const channel = client.channel.cache.get(...) as TextCha...
user.send both resolving and rejecting 16 messages
robust blaze Discord.js v14.13.0 I have the following code (the user is fetched by Client.users.fetch(discordUserId).then()): `user...
about shards 4 messages
weary skiff I have 7 shards in total. The sharding mod is set to "workers". Is it normal that I have only one process?
How to make a ban command slash command 6 messages
true pier I have gone to the guide, and I can't figure it out. This is my code, and when I run it, it won't show the command when ...
bot with no status 27 messages
tight geyser how can i make a discord bot that have no status like koya and giveaway i am using discord?js v14 and node.js 18
Modals 6 messages
sonic stag ```ts const modal = new ModalBuilder({ customId: 'customDurationModal', title: 'Custom D...
Get member "in-server" nickname 6 messages
buoyant bramble How can i properly get the username of a member in a server? I tried to use `<Message>.author.displayName` under `messag...
Can we access that through bots? 3 messages
How fox this? 15 messages
crystal lichen Help pls
1150878580193116250
I need support. 10 messages
pearl stump https://github.com/discordjs/discord.js/issues/9843
1150878580193116250
How do this on replit? 29 messages
crystal lichen Help pls
Shard 0's process exited before its Client became ready 6 messages
velvet snow My bot was working fine and then I restarted it to make a small non breaking change and from now on even after reverting...
interactive data collection 4 messages
shell grove I have an "interactive" chat with the bot, it asks me questions, I answer them and it saves that information to send it ...
'message.content.toUpperCase().includes()' it's wrong? or Im missing something 9 messages
topaz kraken help <:9_:1087454815384248393> ```JS client.on("messageCreate", async (message) => { switch (message.content.toUp...
Does anyone know how I can fix this in my code, it says it is out of date 10 messages
nimble wolf Does anyone know how I can fix this in my code, it says it is out of date
Downloading v13 Error 6 messages
lost hound I'm trying to download v13 in Shell, this is my code: const { Client, Intents, MessageEmbed } = require('discord.js'); c...
Discoverable servers support 10 messages
sick moss Does D.JS support having a bot on a discoverable server without it actually being there? I mean it works with the API, b...
1150878580193116250
Error with ticket 2 messages
noble kindle ```TypeError: slashCommand.run is not a function at Client.<anonymous> (C:\Users\Ohca\Desktop\BotSentencia\src\index...
1150878580193116250
Slash Command Guild Permission Overwrite 4 messages
glass apex Hello there. I'll make this quick. In sort, I am making a command that applies slash command permission overwrites to se...
Unable to import a component from a file to another 10 messages
unkempt tartan Hi, i'm trying to get a select menu exported in a file in order to use it in another one by importing it but i get this ...
Bot spams a response that should only be send once and wont play the music it should. 9 messages
novel shell ``` [6] 48238 pierrekorell@Gott lydiaversuch3 % node bot.js Debugger attached. Lydia the allmighty is online TypeError: ...
1150878580193116250
get forum channel list of role permissions 5 messages
wooden tree I am trying to get a list of role permissions for a specific channel, because I need to get the ID of the 4th role in th...
Bot wont show a status. No errors in the code or displayed. 7 messages
novel shell My bot just wont display a status. Been troubleshooting for hours trying it on my own. My node version is 18.18.0. Never...
1150878580193116250
Storing Giveaway information 11 messages
bright bough When making a giveaway bot - How would you store the entries and the users?
Wrong docs..? 6 messages
bright bough Hey, can someone please explain this as I've spent 2+ hours on it lol. Basically on the docs it says to use `const use...
onInteractionCreate doesn't get called when I select a previously deselected parameter 7 messages
delicate bay I have a command that has 2 autocomplete parameters: ```ts const data = new SlashCommandBuilder() .setName(name) ...
1150878580193116250 998292157150535700
button label wont update after message.edit 36 messages
white adder discord.js@latest
1150878580193116250
Log if user got disconnected and from who? 20 messages
vestal iris Something aint right. I am currently trying to make something like: Yeah user x disconnected user x. But when I try to d...
problems of bot choosing the person on whome the context command was run 2 messages
cobalt zephyr so i have this code for a contextMenuCommand:- https://pastebin.com/KeEWUdAm and this is the file for the button(1st bu...
1150878580193116250
Response: 500 Internal Server Error when bot tries to post a message 3 messages
fathom cliff Recently my bot has had issues occasionally when posting an automated message to certain threads. Is this a discord prob...
Channel.messages.fetch(id) giving mixed results 36 messages
raw raptor My bot uses the embed fields to match an Array from the embed to their character stats. On Desktop this issue doesn't se...
Send to specific channel 11 messages
bright bough I used the docs To get "const channel = client.channels.cache.get('1153350608082964592');" but I get this error. Any hel...
Valid way to check if role? 3 messages
bright bough Hey, if this is a valid method to check if a user has the specific role needed? If not, is there any other ways? Haven't...
Command Problem 2 messages
halcyon scarab Are other users experiencing the same issue as mine? Occasionally, my commands with 100% accuracy do not function as exp...
How to pull interaction username? 4 messages
bright bough Hello, I want to post an embed with the username of the person who ran the / command. Can anyone help me? Kinda lost in ...
DiscordAPIError[10062]: Unknown interaction 6 messages
bold fractal DiscordAPIError[10062]: Unknown interaction at handleErrors (/home/runner/VGs-Bot-v2/node_modules/@discordjs/rest/...
Questions about @discordjs/core 6 messages
night hemlock Why is the main discord.js library now under the `old` subdomain? Are they retiring it for @discordjs/core? And why?
998292157150535700
Help with my bot 1 messages
meager plover I have a problem, and this time I can go into text mode. So I want to copy a command called modal, but I want to change ...
setInterval not accurate 2 messages
rigid knot Hello, I'm using `setInterval` for every 10 seconds to store 10000 in json file and adding another 10000 so total 20000 ...
How To check the time active 4 messages
rigid knot How do I check the time active that members in the voice, I used the `voiceStateUpdate` Event and it will calculates by ...
Error with Flag Guilds and more. 19 messages
lost hound This is my code: const { Client, Intents, MessageEmbed } = require('discord.js'); const client = new Client({ intents:...
How many times per hour can you update role color? 22 messages
heady axle Hey guys, can somebody tell me how many times per hour I can update role color? Doing this with setInterval with 1 or 2 ...
Cache growing too huge too fast for interacting with members in a role 201 messages
lapis spoke I have a bot that sends money to a specified role at a certain time of the day. I'd like to send money to all the indivi...
how to sync the global command manually by myself 9 messages
sage meteor I have a main index.js file for my bot and I have a separate file for syncing the slash commands. Since I don't want to ...
Model to Webhook 5 messages
marsh orbit Im exploring Modals atm, the idea of it is a user fills out a simple 1 question form and that info gets sent to make.com...