djs-questions

13317 threads · Page 34 of 267

commands 28 messages
coarse tusk how can I make commands that when I use /add [ID] the user gets added to a channel and when I do /remove [ID] the user g...
node
Reaction Collector doesn't work as intended 19 messages
junior raptor So the code for reaction collector doesn't work, i was following a tutorial and i rechecked every single line a few time...
node
Any ideas? 6 messages
tribal cipher I don’t wanna hardcode the bitfield and im guessing that i did this the wrong way somehow anyone got any ideas about th...
@discordjs package
Can you use interaction.member.roles without privileged intents? 2 messages
chrome mortar "privileged" = the intents that require verification and stuff
Weird issue 10 messages
golden heron https://youtu.be/xIFOPm0izCQ
node
using channel search function. 2 messages
proper monolith Is there any way to use the channel search function as a bot? for example to search for messages from a specific user wi...
How can I ban people with my bot who are outside of the server? (reopening) 74 messages
hot bison I still cannot seem to find away to ban users who are outside of my server and require help Im currently using an embe...
node
How can I ban people with my bot who are outside of the server? 5 messages
hot bison I’ve managed to do a guild command but I cannot manage to make it so I can ban people outside of the guild, how do can I...
node
Trying to get custom set permissions for commands in a Guild. 9 messages
shy lynx I have defined (<https://github.com/NanoAi/discord_bot_snail/blob/main/src/index.ts#L71>) commands that should apply glo...
node
Request error unknow message 10008 but my code isn't related at all to this 13 messages
brisk valve i'm send the vanity-url request but i get à 10008 unknow message errur what the heck?
node
Command dissapears 20 messages
deft citrus Hi there so I have this little issue with one of my new commands some useless background information. My bot is hosted ...
fetchRecommendedShardCount 10 messages
warm bay I want to know how this works, since `shard_id = (guild_id >> 22) % num_shards`, hinting that we can't anticipate `guild...
@discordjs package
I have an error that I cannot solve. 65 messages
sullen merlin So I have a warn.js file that has an error. The file is https://sourceb.in/6Hrc2IpLUt and the error is: TypeError: Canno...
App didnt respond 7 messages
slim hemlock ``` async function handlePtMake(interaction) { try { const attachment = interaction.options.getAttachment('f...
Bot disconnects when it's dragged to different vc 6 messages
stone thorn I'm changing vc of my bot but it immediately disconnects after rejoining... how should i fix it ? I have enabled `Gatewa...
@discordjs package
How to handle sub commands? 10 messages
pastel shale attached are the code for my command handler and the error. It happens when it tries to pass a new command through the h...
node
registering commands 32 messages
solid arrow I'm trying to create a script that registers commands globally but it doesn't work
node
Premium Button didn't work 6 messages
keen glacier Hi, there, First of all, I haven't found any documentation on how the Premium button works. Secondly, I have a problem...
Command Not Reloading 26 messages
quiet crown Hey, I'm having an issue where, after using the reload command the bot is still referencing the old message. although wh...
node
Searching discord.js Documentation 10 messages
wary grail I'm trying to make a slash command to get documentation on specific topics on discord.js, however I don't know how lol ...
node
Discord permissions 3 messages
fleet marsh which permission members need to use button on embed message in forum type text channel?
Error in Ticket System MongoDB database log 28 messages
dusty sapphire hi, I had an error with my code that happens when I create a ticket, it is supposed to listen, wait and log the messages...
Client won't start 211 messages
brazen condor I added client.on('debug', console.log), and this is what I get: ```[WS => Manager] Fetched Gateway Information ...
shardList does not work on my app 16 messages
torpid topaz I have an app with 28 shards, but i want to manage only 10 shards per host, i already set the shardList option but when ...
node
File Sending 3 messages
jagged yarrow ```js const transcript = await createTranscript(interaction.channel, { fileName: `transcript-${interacti...
node
bulk file downloader 3 messages
granite urchin ok so i dont really know how to explain this but heres what i need help making, this is not for a bot i would like someo...
node
How to kill a shard and prevent its auto respawn functionnality? 31 messages
shell anchor Hello, I m using the ShardingManager and I want to know how to prevent the shards you kill with shard.kill() to automa...
node
missing permissions error code 50035, 10 messages
opal wing https://www.reddit.com/r/discordapp/comments/12164il/my_discord_bot_keeps_crashing/
Invalid bitfield flag or number: undefined. 41 messages
opal wing WHAT DOES THIS EVEN MEANS
can send normal message but cant send embded message 22 messages
opal wing ```js try { // Send DM to the user with the LeetCode question await member.user.send( `You have been timed...
ping discord 34 messages
devout adder how do i access discord api ping? code that i tried ```js const { Client, SlashCommandBuilder, WebSocketManager } = requ...
Error Adding Buttons To Message 11 messages
safe zealot I am working on creating an application system for my Discord server, but that is irrelevant to the issue. I am trying t...
unable to send message in channel 12 messages
opal wing ```// Send DM to the user with the LeetCode question await member.user.send( `You have been timed out in ${mem...
Message collector not working 8 messages
small steeple I'm configuring my bot so that it will respond to the slash command `/validate` by creating a new thread and asking the ...
others unable to see slash commands 30 messages
opal wing well i want so when someone execute a slash commands other can also see it but in this case only i am able to see it ``...
Discord Bot broken 3 messages
quiet burrow Does anyone know what the issue is and how I can fix it?
buffering timed out after 10000ms 18 messages
worthy orchid please help its showing me this how to fix all of this
node
integrating modal and context menu 4 messages
untold horizon how do i get the text input field value from a modal and pass it to a context menu interaction which raised that modal?
how do i send a private message via @discordjs/rest 6 messages
hazy widget Sorry i couldn't find any route for that
@discordjs package
Using napi-rs canvas library and failing to troubleshoot consistent memory leak on a file 3 messages
thorn kestrel The handleBoosterInfo function is holding onto memory consistently and not letting go. I have tried manually putting in ...
node
error when trying to add a button to a message 2 messages
safe zealot heya, i am trying to make an application system for my discord server. i am trying to add an action row with buttons, bu...
Retrieve the author of a voice disconnect 8 messages
full pulsar Hello, After a lot of trouble, tests of all kinds, I still can not determine if a user was disconnected by someone, or i...
node
Cheapest way to do persistent, modifiable memory in real time without a database? 9 messages
prisma lodge I'm using a small bot for just me and someone else for TTRPG shenanigans, and I want to track things like enemies in an ...
Strange role tagging @everyone 38 messages
vast moon I keep getting this strange @@ only in my everyone tag, can someone help me?
node
Help Needed with Discord Bot Error: Token Unavailable to Client 12 messages
plush mango Hello, I’m encountering an issue with my Discord bot script. The bot logs in successfully but fails to send a message t...
Welcome message 16 messages
hoary cape I've created a welcome command that i can do /welcome channel and then in that channel everytime someone join the server...
node
Max Event Listeners 2 messages
kind canopy Hello, quick question. In my discord bot, I have several modules where some of them use a seperate ready event file. I'm...
discord dashboard and discord js combo 62 messages
exotic marsh What i normally do is, i got a protect middleware that runs on each request. What does the middleware do? - it checks ...
how can I fix my bots latency? 4 messages
hot bison How can I improve my bots latency, it’s averaging about 600ms and it would be nice to be lower (sometimes goes up to 500...
interaction.channel.guildId undefined after ephemeral reply 8 messages
livid cape Hello, I've been having an issue since updating my script to v14.16.1. The issue seems to be that responding to interact...