discord.js - Imagine an app

DIA

discord.js - Imagine an app

Support server for discord.js, a Node.js module to interact with the Discord bot API.

Join
DDaniël5/12/2024

Building custom messages from the discord-giveaway package

I'm building an discord giveaway system using https://discord-giveaways.js.org/global.html#GiveawayStartOptions. Now can i change the "standard" values for exmaple of the winmessage. If so how?
TTheInnovationDev5/12/2024

Broken Code

https://sourceb.in/C0SmTySYXe the ticketmodel7 does not work, after diagnosing it, it does not even reach the point where the if ticket_model7...
KKing5/12/2024

help

const fetch = require('node-fetch'); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\georg\Desktop\brickbronze\looker\node_modules\node-fetch\src\index.js from C:\Users\georg\Desktop\brickbronze\looker\main.js not supported. Instead change the require of index.js in C:\Users\georg\Desktop\brickbronze\looker\main.js to a dynamic import() which is available in all CommonJS modules....
F'FiFou1165 シ5/12/2024

Create channel

Hello i don't why i have this error : Invalid Form Body name[BASE_TYPE_REQUIRED]: This field is required...
JJonny5/12/2024

Connection Timed Out

Just uploaded my bot to a vps after rewriting it entirely in ts. Not a single issue locally but now on the vps I get this error. ``` /root/Sailor-Moon/node_modules/undici/lib/core/connect.js:190 util.destroy(socket, new ConnectTimeoutError(message)) ^ ConnectTimeoutError: Connect Timeout Error (attempted addresses: 162.159.137.232:443)...
XXinQ5/12/2024

My discord bot doesnt respond when i write a command in DM but in server or guild it reply

I just get into discord bot stuff and trying to improve my soft skill in coding so I give a shot to develop a discord bot. Unfortunately, there are some error which is my discord does not respond in DM but only did in server. Is there any error in my code?...
No description
PPiggyPlex5/11/2024

Roles not adding correctly

```ts // Member is a GuildMember, passed from the interaction's interaction.member. i.e.: const member = interaction.member; // Example of rolesToAdd: const rolesToAdd = new Map([...
PPiggyPlex5/11/2024

Roles not adding correctly

```ts // Member is a GuildMember, passed from the interaction's interaction.member. i.e.: const member = interaction.member; // Example of rolesToAdd: const rolesToAdd = new Map([...
UUMI5/11/2024

why this collector isnt working?its not responding to the answers

```js module.exports = { data: new SlashCommandBuilder() .setName("quotes-quiz") .setDescription("Answer some league quotes"),...
KKing5/11/2024

why cant i see my slash command when i test it? its not working

```js const { Client, Intents } = require('discord.js'); const client = new Client({ intents: [...
Aannalasko5/11/2024

Do I need to manually check if each message in an Array is bulkDeletable?

I am currently writing a purge command for my bot, I mean, app, and I came across the Message property bulkDeletable. Do I need to loop through my finalized Array and check the Messages individually against the permissions of the interaction's caller?
KKing5/11/2024

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

why is this happening const { Client, GatewayIntentBits } = require('discord.js') const client = new Client({ intents: [...
BBlack_Wither5/11/2024

Wrong user count

```js const { EmbedBuilder, ApplicationCommandType, time, version } = require('discord.js'); const botJSON = require('../../package.json'); const config = require("../../config.json"); const superagent = require("superagent");...
LLuka5/11/2024

Is my Node.js not working?

I need a second idea of what might be going on inside my project
No description
Jjimbob5/11/2024

Stuck in joinVoiceChannel connection stuck in signalling - any advice?

I do have the voice state intent set: index.js ``` require('dotenv/config');...
PPiggyPlex5/11/2024

Nested message component collector not firing

Can anyone help me with this? Response from second button not firing ```ts private async handleComponentInteraction(target: GuildMember, initialInteraction: InitialInteraction, interaction: MessageComponentInteraction) { if (interaction.isButton()) { switch (interaction.customId) {...
Mmk3ext5/11/2024

Extending GuildMember

Hey, Is there a way to extend guildmember to implement custom methods?...
HHacker2495/11/2024

Error

so I have been trying to create a discord bot using discord.js. Upon creating the bot, i realised there were some errors. after checking what errors they were i found mootools and it said that there was no fix to it. If i cannot fix it how can i run my code?
LLuka5/11/2024

''Sorry, name can only contain URL-friendly characters''

When I try to install the library it gives this error
No description