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

how could roleat change with position(name of roleid) string change

```const { roleMention , SlashCommandBuilder, PermissionFlagsBits, EmbedBuilder, WebhookClient } = require('discord.js'); const { RoleID, webhookId, webhookToken } = require('../../config/plugins/promote.json'); const webhookClient = new WebhookClient({ id: webhookId, token: webhookToken }); module.exports = {...

can I mix all the bot token in a project and working

can I mix all the bot token in a project and working?

Create Forum Tags

Hey, how can I create Forum Tags? I try it on discord.js

Question relating to DMs

When users disable permissions for server members to DM them, when a bot tries to DM them, it produces an error. I can use a catch to prevent it from crashing, but is there any way to find out whether a user has server member DMs enabled, as I would like to notify the person sending the command that setting is disabled.

Enable Community using Discord.js

So, this might be a stupid question, but I haven't found anything about it online. Is there any way for a bot (programmed with Discord,js) to enable the community option (the option on the image)?...

permissionOverwrites

```js newState.guild.channels.create(String(chname.replace("{user}", newState.member.user.username)).substr(0, 32), { type: 'GUILD_VOICE', permissionOverwrites: [ {...

Interaction has already been acknowledged - yet I am not acknowledging it ?

I have had a look through my code and I will append it below, however, I do not see where the issue is appearing as it is stating that the command is already replied to. However, the only reply is the "Error Cannot Execute". Node Version: v16.10.0 Djs Version: v14.11.0...

Remove Emoji

How To Remove Emoji From Button Builder After Sent

Remove Label Not Working

Error
emojiBtn.setEmoji(emoji).setStyle(ButtonStyle.process).removeLabel();
emojiBtn.setEmoji(emoji).setStyle(ButtonStyle.process).removeLabel();

Fetching Roles

Hey , im trying to fetch all roles in discord with a specific name , hmmi guess im kinda doing right but i cant undrestand the result

Delete Interaction Message

How To Delete Iteraction Message When Button Clicked.

Voice chat join event detection and handling

Please god someone tell me how to respond accordingly to when a user enters a VC, the documentation is nonexistent and no one is talking about it on Stack Overflowed

Button to show modal

Hello, how can I show a modal to a user after a button was pressed?

Update Guild Data

(the memberCount, it isn't giving me accurate values, about a million lesser) my server started acting weird since yesterday and spawning the shards late/dead, maybe if I check the memberCount after all shards spawned? I'm not sure what's going on...

Not enough sessions remaining to spawn 1 shards; only 0 remaining;

command: ts-node-dev --respawn --transpile-only main.ts when I start the command I am getting this error when authenticating the bot with discord, with <Client>.login, I searched about this error, and what I saw this happens with those who use shardmanager, but I do not use it... I imagine that maybe it's the ts-node-dev auto-restart, how can I prevent that? ```js Error: Not enough sessions remaining to spawn 1 shards; only 0 remaining; resets at 2023-05-26T13:00:44.213Z...

Discord-rpc

I cant find the docs for discord-rpc can anyone point me to them?

interaction fetchReply attachment URL is different than the actual URL

I'm trying to retrieve the image URL from the attachment using fetchReply, yet the URL/ID seems to be a different one than the one that was actually posted. console.log url: see image actual url: https://cdn.discordapp.com/attachments/897014664561578034/1111120710912442448/image.png ...

Timeout on deferReply

Good morning, is there a way to extend the time on the TOKEN for when you have run interaction.deferReply() obvisouly it's only active for 15 minutes but say i want to double it or extend it. For instance if i have a bot that runs through a loop that might run for 20 minutes, is there a way to reset the token or extend the deferReply What are other work arounds people have come up with?...

Message content length without Message Content Intent?

Is there a way to get the length of the content of a message without the Message Content Privileged Intent? My bot was recently verified and one of its core features is distributing currency rewards based on the length of a message. My request for the intents keeps being denied and I'm looking for alternatives to implementing this feature without the intent....