discord.js - Imagine a šŸ‘»

DIA

discord.js - Imagine a šŸ‘»

Support server for discord.js, a Node.js module to interact with Discord's apps API.

Join

djs-questions

djs-voice

Anchor GUI Menu to bottom

Is it possible to anchor a GUI menu to the bottom of the chat so when messages from other users come in it doesn't push it up?

StringSelectMenuBuilder

This: https://old.discordjs.dev/#/docs/discord.js/main/class/StringSelectMenuOptionBuilder seems to be missing some set methods like set label, set description and this:...

Error ActionRowBuilder() and TypeScript

```ts const avanzarDis = new ButtonBuilder() .setCustomId("avanzar") .setLabel(">") .setStyle(ButtonStyle.Primary)...

send base64 string on Embed

I have an image in a base64 string. how to send this image when embedding in EmbedBuilder? like: ```ts const myBase64 = ... ...

ERROR MODULE

Hi, /home/container/node_modules/discord.js/src/client/actions/InteractionCreate.js:48 if (channel && !channel.isText()) return; ^...

Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at <time>

Hello! My bot Knitting is host on a VPS (oracle free tier). I have two bot on this VPS, and the second work as excepted. Knitting won't run, and I have this error : Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at. The bot don't use sharding, because it's not on many guild....

@discordjs/rest question

Hi everyone, I have this code right here ```const botGuilds = await rest .get(Routes.userGuilds({ after: allBotGuilds[199 * (i + 1)]?.id })) .catch((err) => {...

How can I check if an ID is a category?

How can I check if an ID is a category?

I don't understand...

C:\Users\Torren\Desktop\JS-Bot-Apeture\index.js:27 if ('data' in command && 'execute' in command) { ^ ReferenceError: command is not defined...

Error - Following tutorial and BONKERS

PS C:\Users\Torren\Desktop\JS-Bot-Apeture> node deploy-commands.js C:\Users\Torren\Desktop\JS-Bot-Apeture\node_modules@sapphire\shapeshift\dist\index.js:47 throw this.error; ^ ...

TypeError: Cannot read properties of undefined (reading 'id')

Hey, I want to make a setlan command for my bot, when it sends the embed, it seems that the collector collects something itsself and the bot gives a "wtf" reply. Can anyone help me fix it? DiscordJS version: 14.11.0 Code: ```js...

an autocomplet with more than 25 help-me options

does anyone know how to do it if it has more than 25 , it shows up to 24 a part of the name it shows, to avoid this error

AuditLog Grouped "event" ?

Regarding the AuditLogEntryCreate event. I just learned that if something is grouped ( like separate message deletes ) the event is not triggered I was wondering if theres other stuff like Message Deletes that are grouped that would make the event not being triggered. ...

Newlines in `message.content`

Is there any way for my bot to get the message content with newlines included? I have profiles that people post that I'm trying to parse, but the line breaks between each line are just showing up as spaces, so there aren't any newlines or anything to use in my regex. For example: ``` Name: John Doe Age: 00 Gender: ......

Reaction button sent only once

Hello there ! I would like to create a message embed with buttons attached to it like "Reaction Bots" do. I wonder how the bot will handle the click on the buttons since the message will only be sent once and never again. This message is supposed to be a welcome button where users click on it when they arrive on the server and it displays informations to them afterwards....

slash commands

How to check which sub options they used in the slash commands?

Application failed to respond

Keep getting application failed to respond with no error on the log i think it has something to do with the command handler commandhandler.js: https://sourceb.in/lVRKExQCuL index.js: https://sourceb.in/y5SKsVYhHY...

user.global_name

HI from which version this property is available in user object "global_name, the user's display name, if it is set. For bots, this is the application name"...