djs-questions

9202 threads · Page 163 of 185

Ready is very slow 4 messages
marsh plaza Hi, I have a problem with the ready vent and the Discord API connection. For the past few days, it takes 10 seconds to c...
Old bot, assuming old code. 6 messages
summer osprey Hi all, today I started my bot up after a few years of it being sat on my phone doing nothing, its hosted using Termux, ...
Node js heberg pls 2 messages
versed oak my error Bonjour je me trouve sur un serveur de l'hebergeur caprice host mais j'ai un probleme au demarage qui vien du...
Sequelize association ignores given foreign/source key [SQLite] 6 messages
sleek ridge With the help of the DiscordJS guide I managed to setup sequelize all fine. However, when setting up my first attempt wh...
Bot crashing after command run 45 messages
lucid apex Hello! I have a problem in the deploy commands file. It says "TypeError: Cannot read the properties of undefined (readi...
Voice Channels 3 messages
runic kiln Can i check if member is in any voice channel from any guild that bot is in? i have just the user id
custom message class 1 messages
unkempt drum hello, I'm trying to do custom message class, but idk what arguments I must give in super(). Where I can find out what a...
DiscordAPIError[unsupported_grant_type]: No Description 9 messages
viral rapids When I try to fetch access tokens via @discordjs/core, I get this error: DiscordAPIError[unsupported_grant_type]: No Des...
998292157150535700 986538542350086175
Status 3 messages
little canopy Hey guys, How can I make that my discord bot (v14.7.1) has a custom status for a server? For example: I have my discord...
Intents Undefined 26 messages
north nova Code: ```js const { token } = require('./config.json'); const { Discord, Intents, Client } = require('discord.js'); con...
modal followUp 17 messages
visual widget <https://sourceb.in/FIp4Pynb89> the 1st image is when the else statement is ran and it follows up the modal and the repl...
CommandInteraction<CacheType>.options 13 messages
inner meadow Hi, I have a problem with the option of a command interaction, I am an ancient with discord.js and I don't know how to g...
gatewayintent 9 messages
vagrant canyon GatewayIntentBits.All is a thing or should I select only the one I need ? https://discord-api-types.dev/api/discord-api...
How to check an array for a certain value... 53 messages
fervent hollow ```js warningSchema.findOne({ GuildID: Interaction.guild.id, UserID: member.id, UserTag: member.tag }, async...
Event Handler 6 messages
fallow moat Hey! How would I implement this code in a separate event.js file so it works with a event handler? That is the code I w...
Giving a role with a /command 23 messages
crisp valley I have been getting an error, (Reference Error: on is not defined) when I try to assign a role with a slash command. The...
Events are fired too late 78 messages
vale oxide So I have this issue where events take 3 or more seconds to be sent to my bot. Before anyone says „defer your interactio...
Replying to a message 7 messages
slim hatch Hey, I'am trying to have my discordjs bot reply to a message. I get that i can do message.channel.send(); Is there som...
userUpdate when banner change 1 messages
halcyon carbon Does `userUpdate` event run when a force-fetched user change banner?
sending a jpeg in an interaction response 7 messages
silver sky Hi I would need some help trying to figure out how to send a jpeg file using the interaction......() in discordjs but i ...
Customize your experience 3 messages
earnest stump When coming into this server, I had a "lets customize your experience" screen. How would I be able to do that? I would l...
webhookUpdate event not received 9 messages
wintry mango I seem to be unable to receive the webhookUpdate event https://discord.js.org/#/docs/discord.js/main/class/Client?scroll...
How to make a music bott 6 messages
hushed sedge Hi guys, so I followed the guide of making a discord bot with slash command and it works! i want to know how can i make ...
guildMemberUpdate not firing first time for each member 11 messages
latent iron `client.on('guildMemberUpdate', async (oldMember, newMember) => {` Should be an easy, straightforward call. I launch my ...
How to make a command to play music 3 messages
hushed sedge Hi guys, so I followed the guide of making a discord bot with slash command and it works! The problem is that i want to ...
Reconnected more than 1000 times in 24h 6 messages
viscid parcel Hello ! Sometimes i have a message with a token reset because my bot has been reconnected to Discord more than 1000 time...
How to get access to text channel that attached to voice channel ? 9 messages
hoary geode Hello, Since text channels inside voice channel comes up, I don't find anything to let my bot have the same control as b...
Message Commands and Actions 4 messages
near shale Hi, I've been for the past 2 hours trying to understand the commands that are prompt using < /test:0>, up till now what ...
How to get the reply message content from messageReactionAdd? 5 messages
frosty nebula I want to get the message reply content from a question using a reaction and store it in a database.
Cache after restart 7 messages
narrow needle Hello ! With the `guildDelete` event, I have created a message that is sent as soon as a server has removed the bot from...
How to edit ephemeral followUp messages? 11 messages
eager plank the followUp method returns a Message object. Editing that message object (ephemeral) results in a Unknown Message error...
Command interactions vs webhook 3 messages
rapid dawn Hi, I'm quite confused between command interactions and webhooks, and would love to get some clarification on the two. ...
Edge-Case Crash` 2 messages
tribal perch ``` Node.js v18.12.1 [CLIENT] Loading serverlistbot v1.2.3 [CLIENT] Connected to 1 guilds with a total of 39179 members...
Learning djs 2 messages
rare bronze Is there an article/video that demonstrates best practices (including OOP) to develop a scalable bot in d.js?
ValidationError while building a modal 8 messages
surreal snow I have this modal: ```js const modal = new ModalBuilder() .setCustomId('mn-' + interaction.user.id + '-' + test.id...
The bot wont catch the error when trying to ban a (higher) user. 8 messages
steel hedge ```js const { SlashCommandBuilder, EmbedBuilder, PermissionsBitField } = require('discord.js') module.exports = { dat...
break the some 6 messages
lofty topaz Hi, i need to break the some in `interaction.guild.channels.cache.some` when an error is catched but i cant do that beca...
The type of Attachment.name seems to conflict 8 messages
flat trench https://github.com/discordjs/discord.js/blob/main/packages/discord.js/typings/index.d.ts#L1982 https://github.com/discor...
presenceUpdate when user hide activity 2 messages
coral horizon Hi , i just want to know if it's possible to call the event when an user hide the activity too. I made a command that ad...
forum thread create no "message" returned 9 messages
slow ferry after the thread is created (in forum), there is no "message" returned, only "thread", what am I doing wrong? `console....
react router issue 2 messages
hot pendant I have this react app . On my header i have my menu which i need it on click it takes me to the point where the componen...
Response to button interaction multiple times 8 messages
shy oar Hi, I'm having an issue that my response for a button is longer than the 2000 characters allowed I'm using ephemeral rep...
I want to have a text command handler separate from my present slash command handler. 9 messages
lone sail Hi! I was originally a djsv12 developer but now we've moved to v14 I still want to use prefix commands aswell. I know ho...
Creating a class for events 10 messages
winter hornet Hello, I am trying to make a class for events. I have came up with the following, and it doesn't work I have provided my...
Member list non-visible for new joiner 2 messages
frosty nebula Hey guys. Is there a way to code using v14 to have a similar approach for new joiners to not be able to see the member l...
Is it possible to add entries to the audit log for command usage? 7 messages
muted beacon Essentially, I am switching my commands to be mostly ephemeral, however, with commands that change settings I want there...
Edit message 3 messages
dusky acorn How to edit ephemeral message whit button?
Character Encoding issue 31 messages
mental yarrow Hello, So, what one time, this happened to me without any changes in my code ??? wtf
About BaseFetchOptions 5 messages
halcyon carbon I need to get a user's bannerURL so I guess I have to use `force: true` option in <UserManager>.fetch function. So I hav...
Does discordjs support mjs? 3 messages
onyx wasp Does discordjs support module js?