can send normal message but cant send embded message
``js
try {
// Send DM to the user with the LeetCode question
await member.user.send(
You have been timed out in ${member.guild.name}. To get your timeout removed, solve this LeetCode question and reply with submission link or screenshot: ${randomLeetCodeQuestion}`,...ping discord
how do i access discord api ping?
code that i tried
```js
const { Client, SlashCommandBuilder, WebSocketManager } = require('discord.js');
...

Error Adding Buttons To Message
I am working on creating an application system for my Discord server, but that is irrelevant to the issue. I am trying to add Flag and Deny buttons to the embed that is sent to the submitted applications channel. Here is my code:
```js
const flag = new ButtonBuilder({
customId: 'flag',...
unable to send message in channel
``// Send DM to the user with the LeetCode question
await member.user.send(
You have been timed out in ${member.guild.name}. To get your timeout removed, solve this LeetCode question and reply with submission link or screenshot: ${randomLeetCodeQuestion}`,
);
const redirectChannel = member.guild.channels.cache.get(config.REDIRECT_CHANNEL_ID);...Message collector not working
I'm configuring my bot so that it will respond to the slash command
/validate
by creating a new thread and asking the user to post their email.
This is my the function that is called when the slash command is invoked.
```js
async function threadSetup(interaction) {...others unable to see slash commands
well i want so when someone execute a slash commands other can also see it but in this case only i am able to see it
``js
await interaction.reply({
content:
Removed timeout for ${member.user.tag}.`,...integrating modal and context menu
how do i get the text input field value from a modal and pass it to a context menu interaction which raised that modal?
Using napi-rs canvas library and failing to troubleshoot consistent memory leak on a file
The handleBoosterInfo function is holding onto memory consistently and not letting go. I have tried manually putting in garbage collectors, using pools, weak refs. nothing seems to be working. This library (napi rs canvas) is surely not the problem. Everything else on my bot is perfectly fine. It's just this one command that, when run, consistently pushes memory up and up
https://codefile.io/f/83QSMuj0QN...
error when trying to add a button to a message
heya, i am trying to make an application system for my discord server. i am trying to add an action row with buttons, but i keep getting the same error no matter what i do. here is my code:
```js
const row = new ActionRowBuilder<ButtonBuilder>()
.addComponents(...
Retrieve the author of a voice disconnect
Hello,
After a lot of trouble, tests of all kinds, I still can not determine if a user was disconnected by someone, or if he just left by himself. I sometimes come across promising results, but after doing 10 and more tests in all directions, I end up seeing the flaw and detecting a disconnect by someone else when it is a self-deconnection.
Do you have any ideas on how to proceed?
Thank you in advance...
Cheapest way to do persistent, modifiable memory in real time without a database?
I'm using a small bot for just me and someone else for TTRPG shenanigans, and I want to track things like enemies in an encounter and what items we have equipped. It looks like the main solutions are a whole SQLite database or manually updating the .json; the json is simpler and better scaled for what we need, but it still seems kind of jank due to needing to constantly update the file. Does anyone have a smoother solution than what I've mentioned, or should I just go with updating the .json?
Strange role tagging @everyone
I keep getting this strange @@ only in my everyone tag, can someone help me?

Help Needed with Discord Bot Error: Token Unavailable to Client
Hello,
I’m encountering an issue with my Discord bot script. The bot logs in successfully but fails to send a message to a designated channel, resulting in the following error.
Details:...

Welcome message
I've created a welcome command that i can do /welcome channel and then in that channel everytime someone join the server there should be send a welcome message with an emebed, when someone joins it doens't work, so when i run the command it says: "Welcome messages will now be sent in generale" but then when someone joins he doesn't.
welcome.js:
```js
const { SlashCommandBuilder, EmbedBuilder, ChannelType, Client, GatewayIntentBits } = require('discord.js');...
Max Event Listeners
Hello, quick question. In my discord bot, I have several modules where some of them use a seperate ready event file. I'm now experiencing an issue where I reached the max amount of listeners, but I really do need the seperate ready event file for organization.
If I decide to continue with the ready event file, is there a way to set the maximum listeners to around 12, instead of the default 10? Also, would that be bad for the bot, or would I be just fine?
Thanks in advance!...
discord dashboard and discord js combo
What i normally do is, i got a protect middleware that runs on each request.
What does the middleware do?
- it checks if JWT is present in cookie...
how can I fix my bots latency?
How can I improve my bots latency, it’s averaging about 600ms and it would be nice to be lower (sometimes goes up to 5000ms) I’m using Ethernet on an extender