Copying a slash command execution
Good evening,
I was wondering if there's any way to copy paste a slash command execution, since my users will have to do them multiple times a day, instead of rewriting it every time, they could write it one time and then paste. Any ideas ? 😄...
If user has higher role than bot
Currently i have this code:
...
let targetMember =
message.mentions.members?.first()
let targetMember =
message.mentions.members?.first()
Unknown Interaction for buttons
Hey, im trying to create a message wich has buttons but it doesnt work. Sometimes it works and sometimes not. I get the error unknown interaction on a line which says . How can that be? My Discord.js version: discord.js@14.11.0 . My node version: 18.12.0
await interaction.deferReply();
await interaction.deferReply();
Rate Limit
is it possible to retrieve the header returned when the bot is being rate limited by discord when sending messages? according to https://discord.com/developers/docs/topics/rate-limits
```
X-RateLimit-Limit: 5
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1470173023...
Bot won't connect to client or deploy commands with no errors
My bot randomly stopped connecting to the client and it also won't deploy commands. It just says the started refreshing app commands and instead of fully deploying them it just goes to start index.js. The only thing in index.js that connects is the database... What's the problem? I also have no errors
don't know how to go about getting rid of this
i'm not sure what to put in my
memberActivity?.name
field to make it show whatever the user is playing other than "custom status" when they have a custom status, but are actually playing another game. this is the setup of that part:
``javascript
const memberInfo = new EmbedBuilder()
.setAuthor({ name:
${isUser.username} is ${memberStatus}!`, iconURL: statuses[memberStatus] })
.setTitle(bold(activities[memberActivity?.type[0]] 'playing ') + italic(bold(memberActivity?.name 'nothing')))...
Threads
hi, when creating a thread with a bot, we can define a duration before the thread is archived. does the bot need the ManageThreads permission to archive it after this duration defined when creating the thread or is this managed by Discord directly?
event for all shards being ready?
so there's an event for when each shard is ready, but is there an event that is called ONLY when ALL shards have loaded?
editing webhook message sent in thread
Hi, im sending a webhook message in a thread, then saving the id and after that editing the message with the same webhook and message id, but for some reason it still gives me the error unknown message. I've double-checked everything works and gives the correct msg id and webhook id. Any ideas?

Regarding the buffer.File
Should I use an alternative? (idk if there is one)
Will this get removed in the future?
Or is it safe to use this?...

[TS] message member is possibly null
making something that uses
message.member
to check permissions of a user
npm v.9.6.7
node v.18.3.0
discord.js v14.11.0...
How to get Interaction choice name? (djs v14.7.1)
Hi, I have an interaction with some choices. Every choice has a name and a value and I need both of them. I know how to get the value but how do I get the name?
```js
module.exports = {
data: new SlashCommandBuilder()...
Issue with the implementation of a custom TextInput class
Hello,
I'm trying to implement the following class in order to create a TextInputBuilder without having to use setPlaceholder, setCustomId, etc when creating a new object
```ts
interface TextInputProps {...
Problem with AuditLogs (MessageDelete)
I have some problem. If some other person deletes my message, and then I delete my messages, it will write that he deleted my messages. How to fix it?
```js
let deleter = null
const auditLogs = await msg.guild.fetchAuditLogs({...
Discord Invites
Hey, Can someone explain me how can I fetch invites (who invited the member & what is the invite code) in both discord.js@13.x and discord.js@14.x ?
getting partials for reactions when only ID is guaranteed
I just saw this in the d.js docs
WARNING Partial data is only ever guaranteed to contain an ID! Do not assume any property or method to work when dealing with a partial structure!...
Waiting the end of a collector (response or timeout) before sending another one
Hello there ~
Each time a user send a DM to my Bot, I want it to send an embed with buttons or reaction which represents the various possible actions.
However, I don't want the bot to send X times this embed if the user send X messages in a raw. I want to wait that the last embed get an answer or time out. So, is there a way to check that there is already an existing embed that is waiting for a response ?...