djs-questions

9202 threads · Page 43 of 185

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 }...
1150878580193116250
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...
1150878580193116250 998292157150535700 986538542350086175
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...
why is my group and app command not working for allowedroleIDMember 1 messages
slender crane Pretty sure they falls under 2 different validation rule
Questions about Discord.js cache 120 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...
1150878580193116250
Unknown Interaction 60 messages
frozen crow https://srcb.in/mgvjwip7A7 I am facing this issue when i am using /command
1150878580193116250
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...
1150878580193116250
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...
1150878580193116250 998292157150535700
Steal command for stickers !! 47 messages
queen sedge If it is an animated sticker, then it is not working.
1150878580193116250
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
1150878580193116250
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.
how to make sure a bot doesn't have a presence like this: 1 messages
empty oak (he is not offline)
My bot will crash after running the command 39 messages
Optimizing Ram Usage 26 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...
998292157150535700
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...
1150878580193116250 998292157150535700
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
1150878580193116250 998292157150535700
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...
1150878580193116250
There a way to get all message of a channel? 22 messages
bleak trout Without using a messages.fetch({limit: 100}) loop
1150878580193116250
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...
1150878580193116250
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...
998292157150535700
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
1150878580193116250
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...
1150878580193116250 998292157150535700
List commands 8 messages
jolly ravine Hello. Can i list command Like Client.commands or anything like?
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...
1150878580193116250 998292157150535700
help 11 messages
tall atlas Hey, can someone help with an error, i have tried to fix it but it isnt working
Hello sorry im new to this but did i do this right 100 messages
mental granite ```js const { Client, Intents } = require('discord.js'); require('dotenv').config(); const client = new Client({ in...
Help with GuildRoleDelete Event 10 messages
primal hinge ```js module.exports = { name: Events.GuildRoleDelete, async execute(role) { try { // Fetch ...
system log paypal 13 messages
tawdry bane Hello, I'm trying to set up a PayPal payment logging system on Discord using Discord.js v13. I've found some information...
1150878580193116250
Removing and adding roles at the same time 18 messages
spring jolt Hello, I am trying to remove certain roles and then add other roles to a member once a command is used. The issue is th...
prefix 7 messages
hexed dust Helo Is it possible to create orders with a custom prefix?
channel permission change 69 messages
mint pilot I'm a beginner. If you don't mind, please teach me.
1150878580193116250