Button interaction how to get the guild cache from former command
```js
const { EmbedBuilder, ButtonBuilder, ButtonStyle, ActionRowBuilder } = require('discord.js')
module.exports = {
data: {
name: 'rbcy'...
Bots sharing screens
Is it possible to have a bot join a channel and share their screen and for example play a video, display a graphic?
unknown interaction error
hey, i get the below error. I have tried to add an acknowledgement to the interaction, as we get the response from the API, so could take a while, but it still errors.
It's intermittent.
```js...
Automatic ranking system
I need a system that shows a rank in a certain Discord channel. This system would pull a column from MySQL and show who the top 10 are.
Example:
MBG69: 10 kills
Michael: 8 kills
Henry: 3 kills...
Experiencing inability to text after using a slash command?
I have slash commands for my bot using DiscordJS. Didn't have this issue until recently where after using a slash command on discord mobile, it just completely bars my ability to text in the server until I restart the app.
Want to know if anyone else is experiencing this....
How do I convert an Attachment into a RawFile
For a modmail, I want to send the user's attachments into a channel and I'm not sure how to
Cannot Receive Direct Messages
messageCreate
doesn't seem to fire when I DM the bot
```ts
const DiscordClient = new Client({ intents: ["DirectMessages", "Guilds"] })
...Embedded App SDK
Hello!
Does anyone know about Discord's "Embedded App SDK"?
I would like to capture data every time someone starts a bot activity....
How do i fetch a forwarded message content?
I'm making a discord bot for a single server and it has a starboard like system and the problem is when someone reacts
x
times to a forwarded message the forwarded content isnt showed as a message data like content or attachments, how i can fetch these?Sharding error
Someone with sharding experience
My bot got this error over the night
```
Unhandled promise rejection: Error [ShardingReadyDied]: Shard 0's process exited before its Client became ready.
at Shard.onDeath (/home/container/Bot1/node_modules/discord.js/src/sharding/Shard.js:178:16)...
Events that execute activities
Hello!
How do I capture events that perform activities?
I have included and tagged the photo to make it easier to understand.
I am using a translator, so please forgive me if the writing is not good....

Why do i get bad request
When i use the following scopes
identify email guilds
it works perfect but when i add guilds.channels.read i get bad request?
...
Slash Commands
I'm having trouble restricting the slash commands so that they only appear on the servers where the bot is installed. They even appear in users' DMs.
Can you please help me?
Below is my command registration code:...
Disabling A Button Through CustomId(handler)
```js
const { SlashCommandBuilder, EmbedBuilder, PermissionFlagsBits, ButtonStyle, ButtonBuilder, ActionRowBuilder } = require('discord.js');
module.exports = {
customId: "urgent-ping",...
captcha system
im making a captcha system but it keeps throwing the interaction failed. i just need someone to tell me what i did wrong and how to fix
Trying to get member/roles without being rate limited
I have a bot that is in ~20k servers and it does some work to role-gate certain features in our application based on server membership & roles. Recently we've had a bit of an explosion of users and we are having some major issues with being cloudflare/IP rate limited when trying to do this behavior.
So a couple of q's
1) Is there any way to know if we've been IP rate limited with discord.js? Currently the server just hangs and does nothing when this happens. I could only tell that's what's happening when I restart and get a 429 error when the shards are initializing....
can discord bots have a custom status emoji?
I know that recently discord allowed discord bots to have custom status messages, but i can't seem to find where i can add the emoji of the status, please help
messageUpdate with Partials
I am working on a auditlog feature for my bot, but I ran into a problem when i was working on the messageUpdate handler. I am using message partials so i can see uncatched messages update. But when i try t ofetch oldMessage i get the same content as newMessage. This probably has some stupid easy fix that i just don't understand (i hope).