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

Is there a way to check if server banner is just an static picture or animated?

For example in the command Avatar this works automatically by just doing this
//In embed of course
.setImage(member.displayAvatarURL({format: 'png', size: 4096, dynamic: true}))
//In embed of course
.setImage(member.displayAvatarURL({format: 'png', size: 4096, dynamic: true}))
...

How do i display the ping of the bot and API ping

Im useing the latest Discord.js But i cant find a working option any suggest im also useing / commands

Type 2 AutoModeration

``js --------------------------------------------------------------------- const logChannel = interaction.options.getChannel(channel`) || null; --------------------------------------------------------------------- {...

Can't use Emoji from other Server in followUp.

Okay so I spent WAY too long trying to understand whats going on. My bot is in a server for custom emotes that it uses. And it can access those just fine for example with: ...

read webpage and show body of page as status

I have a page,[ http://freeuk24.listen2myradio.com:6524/7.html] and i want the stauts to refresh every few mins and update to the text on that page... How do you suggest I go about it. I have tried http, https and axios....

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...