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

Followed guide (Further `client.on` commands not working)

Hey, so I was following the guide (v14.11.0) (node18.15.0) (https://discordjs.guide/) (Copied the GitHub files) And the bot was working till Event handling. After that I skipped Cooldown and Reloading commands (I checked it didn't have my solution). Then in Command response method the guide switched from image one to image 2 Which gave me an error saying image 3. Any ideas on how do I fix it? (Also attaching images of my files and index.js)...

setDefaultMemberPermissions() for one of two roles that have same permissions

How can I set default member permission to a slash command? I know there's .setDefaultMemberPermissions(), but I have two roles that have the same permissions, and I'd like only one of them to get access to this command. discord.js: 14.11.0...

Can't login

For some weird reason, it won't even let me login but yet it throws me this error today Thinkeng ```hs throw new RateLimitError(rateLimitData); ^ ...

Interaction Handler (Buttons)

Hello there. I am trying to make a giveaway bot without using SQL / any database. I am quite new in coding hopefully can get more profession helps. Actually i have the giveaway bot done, but i didnt put the Interaction on button into my InteractionCreate. the issue is, whenever i create a new giveaway after bot start, it works. after that, i create 2nd giveaway, the interaction still work. but there is an error shows as there are some interaction Error....

what are zlib-sync, bufferutil and utf-8-validate for?

Hello, what are zlib-sync, bufferutil and utf-8-validate for? I don't really understand the point of compressing websocket data or what the real changes are when using these 3 libraries. Is it useful for a bot discord with 55,000 servers?...

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();