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

inherit roles from a channel

this is my current code, the role is created but the permissions not inherited

Simple questioin

How can I write three minuses in emed and have them not turn into this?

Limit reactions to one per message

discord.js :discord.js@14.11.0 Node: v20.2.0 I'm trying to make a poll bot based on reactions and I'm trying to limit reactions so that each user can only be reacted to one emoji at a time. Currently I have a system that checks if a user is already reacted and if so, removes and new reactions until they remove their original reaction but I'm wondering if a system that would remove the old reaction is instead possible? This is the current system I have for the limiting. ```interaction.client.on("messageReactionAdd", async (reaction, user) => {...

Display all commands in guild a member has permissions on

I cant figure it out guild.commands.cache.filter((c) =>member.permissions )...

Rate Limit

Is rate limit reset based on a specific time or does it depend on when you used the code?

Fetch ephemeral message

Is it possible to store the id of a message and then fetch it later on in order to delete it? I was able to delete the message if i store the promise<message> but otherwise I couldn’t find a way to delete an ephemeral message...

Pagination with Mongoose DB

I have a command where a user can add like reminders to the database. I have a command that shows the list of reminders but now i want the user to be able to go through a list of his reminders with two buttons. On every page there should only be 5 reminders because i have a feature that allows the user to mark the reminders with successful or not successful via buttons (see picture). How can I do that?

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