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

voice channel topic support

Althought not mentioned on the DiscordJS documentation website, will the setTopic() function work for voice channels to set it's topic/status description? If not, is there some other function I'm missing / upcoming support for this? Thank you in advance...

i couldnt understand this error

TypeError: Cannot read properties of undefined (reading 'send') at Client.<anonymous> (/home/container/index.js:1333:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) /home/container/node_modules/discord.js/src/rest/RequestHandler.js:350 throw new DiscordAPIError(data, res.status, request);...

Can't create a modal component

Hi, Getting this error whil creating a modal component ```shell...

Issue adding user to guild with GuildMemberManager#add

Having an issue trying to have a member join using GuildMemberManager#add ```js utils.CommunicationManager.on("addUser", async (data, reply) => { /*...

http to discord js type

lets say i have http interaction and i want to turn it into a discord js object. how could i create a new instance using the payload data from http api

API Not showing the right player ammount

```js [ { "shard_id": 0, "is_ready": true,...

Enum Integer Permissions Typescript

Hi there all, is there a "Enum" type in the package or anything one that returns integer permissions with a PermissionResolvable type ? Sorry if my question is not at the right place....

discord.js

discord.js won’t install with npm at all i’ve tried every way and i couldn’t figure it out

Rich Presence

(sorry for my bad english i'm french 🥖) I created a rich presence for my discord account and everything works except the buttons. Being stubborn and narrow-minded, I did the code myself but the buttons are not displayed My code : ...

other arguments than `client` is not being passed to event handler

I am scaffolding code for my bot based of this guide: https://discordjs.guide/creating-your-bot/event-handling.html#reading-event-files But when any events other than ready (which requires 2 or more arguments passed) are invoked, it crashes with the following error: ```js 2 | 3 | module.exports = {...

Invalid WebSocket frame: invalid UTF-8 sequence

Received this unhandled rejection today. I think it bad data from Discord, but I wasn't able to track what the data actually looked like. FWIW I also have zlib-sync enabled ```js Error: Invalid WebSocket frame: invalid UTF-8 sequence at Receiver.dataMessage (/home/jam/discordbot/node_modules/ws/lib/receiver.js:583:28)...

help

I don't understand why the button doesn't work, I'm throwing it away now

Tracking user boosts and unboosts

I am trying to find out when a user starts boosting and stops boosting however. I seem to be catching all the times a user boosts but only a couple of the times a user stops boosting. I thought it was something to do with cache or what not but I am completely clueless. I have attached 2 screenshots, one of my bot clearly not logging a user has stopped boosting and one of mee6 picking it up. I dont need to know how many times they've boosted or what ever, just whether they have the server booster role and if they loose it. My code is below...
No description

Why did i get message by discord telling i have uploaded my server token online

Hi i'm new to programming and was trying to make discord server. I uploaded my work at github. here https://github.com/logicallybroke/discordbot-nodejs/tree/main but as soon as i pushed to the github i got mail and discord message from discord saying i have leaked my server token, My doubt is i can't see my token value on github and i have included token in a file which is included in .gitignore. Why then i am getting these messages? Sorry for bad english...

Deleting embeds by its content

Hi, is it possible for bots to read the content of an embed, and remove embedded message, when they have something in it? For example, i want to remove every embed, that have "[Wideo]" in it
No description

PermissionOverwrites question.

I want to deny viewing access for a specific channel (that already has specific viewing permissions (for set to it) to everyone, but also be able to easily revert them. What should I pay attention to to avoid possibly overwriting permissions for that channel? I know I need the PermissionOverwrites to do this to set a deny on everyone, but if I then set an allow later, does that overwrite the existing permissions?...

Error [ApplicationCommandPermissionsTokenMissing]: Editing application command permissions requires

```js await guild.commands.permissions.add({ command : '1277387223595089932', permissions: [ {...

The application did not respond.

When I use the command it says "The application did not respond", I get no errors. ```js const { Client , Message, MessageEmbed, CommandInteraction, MessageActionRow, MessageButton } = require('discord.js')...