djs-questions

13317 threads · Page 44 of 267

Dealing with button components 18 messages
tall fog Hello guys! This code is basically mapping the button components of my interaction that were used previously, what I'm d...
Fetching guild id and other properties when guild create event is fired 28 messages
still arch I am trying to console.log and then eventually write to a db the ID of the guild the bot has just joined. I am unsure ho...
delete all commands 11 messages
steep yoke ```js async ResetCommands(guildId) { var guild = this.Client.guilds.cache.get(guildId); try { ...
node
Problem with variable through multiple file 3 messages
split finch So i have 4 commands wich are like that: ```js const { SlashCommandBuilder } = require('discord.js'); const { cchannel }...
node
Discord shards problem 13 messages
static kelp Can someone help m with that ? Hello i just asking for help for this Shards problem. ```js const { ShardingManager } = r...
node @discordjs package dev release
The reply to this interaction has already been sent or deferred (Use interaction.update > once) 12 messages
cedar pewter Hello, to start this off: ```js } else if (interaction.isStringSelectMenu()) { await interaction.update({ embeds: [rank...
RAM Usage 8 messages
ancient beacon What can cause that much ram usage only from "Strings"? ```js const client = new Client({ intents: [ GatewayIntent...
User Update Event 2 messages
bronze hull Hi, do i need any intent (maybe guildMembers) to receive the userUpdate event which tell me if a user changes his userna...
Problème de connections DB mysql 8 messages
frank crypt Bonjour j’ai un problème lors de la connexion à ma db mysql ça me mais ETIMEOUT
Can i change custom invite link using discord.js 10 messages
marsh bone Hello i was wondering if i can change a custom invite link using discord.js if i can please tell me or send me anything...
Bot will crash after first successful run of command (will auto be fine after like 2 mins) 212 messages
slender crane Kinda confused what to fix or how to fix the problem, pleas help
Reaction Collector not getting the correct size (capped at 1) 12 messages
astral creek discord.js: 14.15.3 nodejs: v18.16.0 My intents are: `Guilds` `GuildMessages` `GuildMessageReactions` I'm using a reac...
DJS Number Input 4 messages
forest depot I know there is no number input for modals but how could I make it to where a text input could only be numbers and not l...
Questions about Discord.js cache 121 messages
haughty bramble Hello. I had sent a friend to write a question about Discord.js as I'm very busy. He has been banned, and I don't unde...
node
Bentocache 3 messages
Unknown Interaction 60 messages
frozen crow https://srcb.in/mgvjwip7A7 I am facing this issue when i am using /command
node
"This interaction failed" 11 messages
Ehm? 37 messages
node
unknown interaction 26 messages
quiet heron No results found for [2024-27-06 04:11:08] ERROR (rok-title-keeper on DESKTOP-UUUK1I0): Unknown interaction err: { "type...
node
I don't get why is this falling under the allowedroleID category but not allowedroleIDMember categor 13 messages
Permission needed for permissionOverwrite method 20 messages
lilac abyss Hi, I'm developing a bot for my server, so I let it have Admin permission. However I want my friend test my bot as well,...
Why my pagination error' in v14 13 messages
atomic prism Why my pagination show error and bot reply is thinking forever, this the screenshoot of error' and button pagination fil...
node @discordjs package
Steal command for stickers !! 48 messages
queen sedge If it is an animated sticker, then it is not working.
node
How to approach "replacing" (finding/deleting/reposting) a message in a designated channel? 9 messages
sterile spoke The use case is this: people post an introduction in a public channel invoking my bot, the bot posts it into a read-only...
welcomer bot 8 messages
mighty dove doesnt detect new people and no error, all 4 in code intents added, code: https://sourceb.in/eUQqUFk3dp
node
Unknow Error with Intents.FLAGS.Guilds, 10 messages
midnight swift So Once I added the code for a interaction called user-bolo now there is a error.
My bot will crash after running the command 39 messages
Optimizing Ram Usage 27 messages
fickle walrus okay so i just launched a bot which is currently in about 50 servers but it is already taking up a LOT of ram, about 600...
@discordjs package
How I can validate a selectMenu when all the options are set by default ? 10 messages
hexed lava https://cdn.discordapp.com/attachments/824411059443204127/1255445928731738204/image.png?ex=667d28a2&is=667bd722&hm=0bf24...
Bot not reading the correct number of reactions on a message (reads only 1) 5 messages
shell hedge The bot with a [given] message ID counts the number of upvotes and downvotes on a message, but for some reason keeps det...
node @discordjs package
Why i got error by Embeds? 8 messages
humble bobcat What i do wrong? Error: https://hastebin.skyra.pw/ayexidiput.less Code: https://hastebin.skyra.pw/gowijurawe.ts
node @discordjs package
Unexpected behavior of client.on(Events.VoiceStateUpdate) 9 messages
haughty void I need to check which users are in the channel and which are not after someone leaves. When I subscribe to Events.VoiceS...
node
There a way to get all message of a channel? 22 messages
bleak trout Without using a messages.fetch({limit: 100}) loop
node
Modules not found 22 messages
upper burrow an error occurs when I type in the command "nodemon" node:internal/modules/cjs/loader:1148 throw err; ^ Error: Cann...
How i get the Threads property of the channel where slash commands were fired 27 messages
bleak trout Someone can help me? I need a TextChannel to create a private thread, i'm trying to use the channel that interaction ret...
node
Probably a stupid question, but is there security against RCE/ACE? 11 messages
restive wharf Hi, I don't like slash commands so i like to code a bot with messageCreate parsing. now, with the syntax ```js client...
@discordjs package
This interaction failed (StringSelectMenuBuilder) 12 messages
cedar pewter command.js ```js let rankbind_database_embed_select_menu = new StringSelectMenuBuilder() .setCustomId('r...
What function type i need to pass to my collector filter property? 8 messages
node
role positions 7 messages
night needle ```js if (interaction.user.roles.highest.position <= target.roles.highest.position) ```
bannable 7 messages
night needle ```js if (target.bannable === false) return interaction.reply({ content: `I am unable to ban ${target.username}`, epheme...
DiscordAPIerror: Missing Access 14 messages
fickle walrus So this is the first time I got this error and researching a while I found out this is due to missing permissions. My bo...
How do I fix this problem? :) 6 messages
interaction failed 5 messages
shut spindle Hi I made this system that when I ban the user the bot sends in dm to the user the button, however if it is clicked it s...
Weird behaviour from pins, caused by discord.js 14 messages
ebon lagoon i'm trying to register message pin updates I got it working functionally now, but i wondered why it's so "weird" when y...
Failing to get message.reactions.cache "undefined" 3 messages
shell hedge Hi, I'm trying to understand why this code is giving me an errror: ```javascript await interaction.deferReply({ ephemera...
node @discordjs package
List commands 10 messages
jolly ravine Hello. Can i list command Like Client.commands or anything like?
Cannot send messages to this user 15 messages
node
End StringSelectMenu Collector (to avoid Unknown Interaction or InteractionAlreadyReplied) 3 messages
hushed sequoia Hi, I have a command which use a StringSelectMenu and Buttons. When the command is over, if I use it again I have an er...
Detect reactions 4 messages
shell hedge Hi, I'm trying to simply __detect when any reaction has been added to any message__. How can I do that? My __end goal is...
node @discordjs package
help 11 messages
tall atlas Hey, can someone help with an error, i have tried to fix it but it isnt working