discord.js - Imagine an app

DIA

discord.js - Imagine an app

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

Join

djs-questions

djs-voice

Premium

Code: ```JS await message.channel.send({ embeds: [...

Broad JS Question

What is the difference between how NodeJS and Python installs modules? I’m installing modules on JS and I got system information download and fine but as soon as I got to use electron it said it wasn’t defined. I checked to make sure everything is installed and it is.

What is the best way to list the members inside a voice channel ?

Hello I would like to know the best way to list all members inside a voice channel. Does the property "members" is fully reliable ? Right now I have this code but I wanted to be sure that's the correct way ```Typescript...

How can I make simple commands in discord.js

I want learn how to make simple commands

Application specific emojis

Is there any way to make use of application specific emojis currently? Or do we have to wait for a discord.js update?

Problems with modal

```js setupPaginationCollector(message, pages, mode, authorId) { const collector = message.createMessageComponentCollector({ time: 300000 }); let currentPage = 0; let quantity = 1;...

Am trying to add a modal to update a embed

Am trying to add a modal to update a draft embed, the modal should have a post title and description as required and image url as optional when i click the edit post info, i been trying to get it but it would never ever update the draft embed :(, thank you!

Help to convert old Binary to Text command from Discord v12 to v14

Hey guys, what’s up I’m currently looking for a way to convert an old Text Encoder and Decoder from Text to Binary and vise e versa from v12 to v14 can, is this the right place to ask for help?

Discord-Modals Error

Error - data.components[0].components[BASE_TYPE_BAD_LENGTH]: Must be between 1 and 5 in length. case 'permit': const permitModal = new ModalBuilder() .setCustomId('permitModal') .setTitle('Permit User or Role')...

Emojies not working with select

```const { ActionRowBuilder, StringSelectMenuBuilder, StringSelectMenuInteraction, InteractionType } = require('discord.js'); const config = require('../../../ticketConfig.json'); module.exports = async (client, interaction) => { ...

Error : Could not resolve channel to GUILD_VOICE

im trying to create an event through slashCommandBuilder but it doesnt seem to work. the params are passed succesffuly but in the end i get the error that the "location cant be resolved to a guild voice channel" please help me get through this ill really really appreciate
No description

[ERR_IPC_CHANNEL_CLOSED]

Since a few days this error randomly occurs and the shard then goes offline. The error: ```js...

why this happend

why this happend
No description

Issues editing automod

I'm currently trying to edit my automod rule to have a timeout duration, when I try adding a timeout duration, it is sending this ``` "actions": [ { "type": 1,...

error message

PS C:\Users\nicky\Downloads\Anarchy> npm start npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:\Users\nicky\Downloads\Anarchy/package.json npm ERR! errno -4058...

Discord seems to have troubles editing an interaction, but still doing it

I have troubles handling interactions reply with the single function below: i have a board with buttons, and when using one the bot should reply with another board of the same type. Then, I have to click another button before having a final confirmation message, but at this point the reply content is edited alone, the button stay in the loading position before being edited and I have the interaction failed error, event though the reply was sent and I didn't receive any error (video linked) ```ts if (intera.replied) await intera.editReply(data).catch(async e => {...

Checking user permissions on guilds

```js app.get('/dashboard', ensureAuthenticated, async(req, res) => { if (client && client.user) { try { ...
No description

Problem with fetching members with roles

``` const TEAM = ['1268886403756982312','1268886902879027220','1268886992150728774','1268887041559494721','1268887056961241129','1268887071372738592']; const fetchedMembers = await interaction.guild.members.fetch(); const adminMembers = fetchedMembers.filter(member => {member.roles.cache.some(role => TEAM.includes(role.id))});...