djs-questions

13317 threads · Page 168 of 267

How to get the channel that the interaction was called on, and send a message there 26 messages
thorn glen I think this is pretty straightforward? I will elaborate if needed
How to clear certain slash commands 6 messages
thorn glen So, i ported my bot over from discord.py to discord.js. On the discord.py version, there were more commands. I was wonde...
Sub-Commands Error 21 messages
proven lintel I tried implementing a sub-command for the first time based on documentation from: https://discordjs.guide/slash-command...
BitFieldInvalid Error 14 messages
crimson stream Everytime I try to use the command 'node .' for my Discord.js bot I receive this error.
stop an interaction 5 messages
inner meadow I have this code when i try to return the interaction when i catch an error for the code to not crash but the following ...
Ready is very slow 5 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
stop the interaction 2 messages
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...
@discordjs package dev release
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 79 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...
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...
Getting app failed to respond when trying to use slash cmd 4 messages
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....
inter 55 messages
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...
I have strange problem using StringSelectMenuOptionBuilder, sapphire just don't apply my code. 17 messages
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...