djs-questions

13317 threads · Page 108 of 267

bot spawning multiple instances of the same shard and rate limiting 29 messages
keen sequoia <a:NOOO:1095889845030764584> never had this issue so pardon my idiocy but bot spawns more than one instance and then i g...
Sending a messages to a channel without fetching the guild 4 messages
somber vessel Hello, I saw that some libs have functions to directly interact with the rest, for example i can send a message to an ch...
Variables/Changeable Data in Custom ID's 2 messages
earnest isle Someone recently mentioned to me that its bad for maintainability and slows processing speed when you use variables in a...
Does anyone know how to setup userselectmenu listeners? 22 messages
faint oracle im stuck as it says interaction failed, im wondering what listeners i need to make or is there one
fix pagination 83 messages
bright stone If the button press the embed would not update https://srcb.in/2C2bR1jTuJ in 1 video I want it to be like the 2nd vide...
delete bot messages 10 messages
fathom cliff is there an easy way to delete messages created by my bot like this? I tried setting to a variable the result of the `me...
Permissions Issue? 28 messages
charred igloo question, i check if bot has ManageChannels in guild, and then create a channel, log shows that it has perm, but then wh...
Get a guild object inside an express API route 4 messages
gray anvil I am trying to make my bot do some changes to our server based on a request to our API endpoint. in the index.js I am ...
issue with setChannel() function after creating the channel 98 messages
setParent() is not a function error 17 messages
Weird issue with GuildMemberUpdate event 49 messages
waxen jay i'm running into a really weird issue with the guildMemberUpdate event when adding a role: For some reason the nickname ...
Error 5 messages
Username bot 21 messages
wary wigeon I know this might not be related. But how do people do this? They are notified whenever someone changes their username
Get every User in a Voice Channel with REST/CORE 13 messages
vestal iris How do I do this?
@discordjs package
Type 'X' is not comparable to type 'APIApplicationCommandOption'. 5 messages
warm sail ```ts import { type APIApplicationCommandOption, Message, ApplicationCommandOptionType, } from "discord.js";...
MongoDB is not working 3 messages
marsh sable I installed the mongoose library and entered the DB connection into the code, but it does not work, there are no errors ...
@discordjs package
Sending ephemeral messages on another message 4 messages
lost lotus Is there any way I can send an ephemeral message in another message when someone clicks a button? Like lets say someone ...
Get Guild Rules Channel 3 messages
pulsar fulcrum Hi ! Is there a way with Discord.JS to retrieve the rules channel that is defined in a server's settings other than usi...
Closing modal after submitting 4 messages
echo crown I have a modal that does not close but it makes alterations as intended (editing a embed) How i could close it without r...
Sweeper interval 3 messages
faint forge I want a persistent cache with no interval, but https://discordjs.guide/miscellaneous/cache-customization.html#sweeping-...
How to get title of the modal in Modals.ts (handler file) 8 messages
oak moth I'm trying to get the title of the modal to figure out the type. There are 5 types: * Games * Apps * Movies * Series * S...
Bot changes nickname, and after the nickname reset itself. 9 messages
toxic island Hi guys, I have a problem with nicknames. I have a bot that after a check, it adds a role and change the nickname of t...
application did not reply 3 messages
strange wraith Hi, I seem to be getting this error about the application not replying, but it replys in a seperate message. https://me...
message.reply() function takes more than 10 minutes to send message 20 messages
cedar verge I'm running multiple bots on the same machine, and the problem that has been happening is that the message.reply() funct...
Retrieving lots of options from slash command 15 messages
Typescript bot using 14.11.0 claims unknown interaction, fails to compile with 14.12.1 9 messages
astral folio From a conversation that began here: https://discord.com/channels/222078108977594368/824411059443204127/1137518310896967...
Bot posts randomly 1 - 3 welcome messages for the same member that already joined. 114 messages
subtle cypress Lets start from my debugging results. First i wanted to make sure i have only one instance of the bot, so i added consol...
interaction has already been answered 2 messages
paper crescent Is there any way to make this work? It gives the error that the interaction has already been answered.
ratelimit 9 messages
late verge I'm creating 70 room in discord but i'm getting rate limit after creating around 40 channel so how can we fix thiss iss...
HELP 10 messages
amber urchin i rlly need help all bots i made didnt reply. Can someone help me make a bot? (Like just gonna start a new bot rn i just...
A typeguard to check if the received message is from inside a guild. 5 messages
dense trench I'm currently using the `@discordjs/core` package along with it's other subpackages and `discord-api-types` for my bot. ...
@discordjs package
Bot no register slash commands 100 messages
glossy whale Tried: reinviting the bot with scopes enabled, testing with ping command in docs example(it worked), using applicationGu...
Building .exe file with pkg results in "Failed to make bytecode" 4 messages
dense sand Hey, I'm trying to build my node discord.js project into .exe file for ease of use. I managed to do so with https://www....
Made a command for user information, gives an error 22 messages
marsh sable Made a command for user information, gives an error ``` Error [GuildMembersTimeout]: Members didn't arrive in time. ...
Getting data from Oauth2 7 messages
silver tiger Im currently trying to get data from an Oauth2 onto a seperate website, but everything I find says to host a new website...
trying to create a message counting bot 5 messages
compact girder just as a starting creation im trying to make a bot that can count how many messages a person has sent in a certain amou...
@discordjs/rest requests behave differently when deployed to a serverless node environment vs. local 8 messages
granite depot Using `@discordjs/rest` to create a standalone node project in an express-like API, `await api.interactions.defer()` han...
@discordjs package
Stand-off command 25 messages
Edit message according to selected value 35 messages
hidden grove Hello, I've created an embed and a selectMenu just below it and I'd like to modify the embed (and therefore the message)...
Buttons 3 messages
marsh sable I made a team for voting, it works. I made the code to make the buttons work - they don't work Command ```js const { Sl...
Help 3 messages
Attaching local image file to embed 34 messages
steel rover ```js const imageFile = new AttachmentBuilder(`../../assets/war_ranks/${warRank}.png`, { name: `${warRank}.png` }); ...
Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'name') 5 messages
pastel oasis Hello, why is this happening? i don't understand.
DMs with shards 3 messages
muted ice On which shard would interactions from dm channels be received?
v14 reactions adding 7 messages
tiny apex how to add reactions to you're command like /hi he says hi, how are you with a reaction like a thumb i am beginner at th...
having a few issues with this command? 4 messages
karmic eagle ```javascript const { bold, SlashCommandBuilder, EmbedBuilder } = require('discord.js'); const dayjs = require('dayjs');...
Property 'getMember' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType>, ... 17 messages
bronze haven Property 'getMember' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType>, "getMessage" | "getFocuse...
Accessing Specific Guild from Bot's Cache is not working 17 messages
granite ginkgo I hope this message finds you well. I am currently facing an issue with my Discord bot, and I'm seeking some guidance fr...
Help 7 messages
marsh sable I wanted to make an eventHendler using a table. I did everything according to the guide on YouTube, but it doesn't work,...
@discordjs package
how do know how many channels my bot connected ? 3 messages
severe rivet I used this code before but now I don't know ```js client.voice.connection.size```