Waiting for a message
how would i go about waiting a message from an interaction?
[email protected]
Node 10.8.2...

permissionOverwrites on a new channel
so i was creating a ticket system, and when a ticket is made, a channel is made based by the ticket.
the problem is: whenever i try to make it so that only the one who made the ticket can see the channel and no one else can, it doesn't work
i've even tried putting as the type
OverwriteTypes.Role
but it still doesn't work...
I have an error but the message is sent
My error
``(node:4332) DeprecationWarning: BaseInteraction#isSelectMenu() is deprecated. Use BaseInteraction#isStringSelectMenu() instead.
(Use
node --trace-deprecation ...` to show where the warning was created)
DiscordAPIError[10062]: Unknown interaction
at handleErrors (C:\Users\liveweb\Desktop\DynaBot\node_modules@discordjs\rest\dist\index.js:727:13)...Is fetching all threads safe?
I am using private threads as a ticketing system. We have roughly 300 open threads. I currently fetch all the threads on the ready event so they are cached. I am doing this becuase when someone clicks the button to create a ticket, I am searching the titles of the existing tickets to see if they already have one open.
I want to make sure that there is nothing I should be concerned about in doing this, especially in reguards to memory usage. (I have a memory leak somewhere, so I am investigating anything I am not fully sure about)....
How do i 'resolve' a TextChannel sendTyping
without sending a message maybe? Wanting to know if it's possible
Rich Presence with ESModule
How can i make a rich presence using esmodule instead of commonjs? i cannot figure it out
Get user who deleted a message
On the messageDelete event, is there any way to get the user who deleted the message? I'm trying with audit logs but its not giving anything relevant:
```js
const { EmbedBuilder, AuditLogEvent } = require("discord.js");
module.exports = {...
Inviting bot does not work
Im inviting my vot to the server, its saying success on the discord side, but the bot is not appearing in the server (tried it on multiple servers)
Command Handling With TypeScript
Hello, I'm having trouble setting up command handling with TypeScript. I'm trying to follow the official guide that is directed towards JavaScript.
What I Have So Far
/src/index.ts
...properties of reset_after is undefined
My application has been running smoothly around 2 years and suddenly it crashed. While checking issues i found out discord library is giving an error. What might be causing this?

Detecting the double server boost
I am listening to the
messageCreate
event and, when the message.type
equals 8
, Sends a message to the channel. However, I want to avoid sending a message when a member boosts the server for the first time. because to handle this, I listen to the guildMemberUpdate
event to detect the automatic Nitro boost.
Essentially, I only want the messageCreate
event to trigger for a member's second boost onwards.
I would appreciate it if someone could guide me!...
Strange session error when logging in.
This error is being thrown when I call
client.login(token)
:
Not enough sessions remaining to spawn 1 shards; only 0 remainingAny idea what's causing this?...
[RPC] Pause timer on ActivityType.Listening
Is there a way to pause the bottom timer? I know it's not being updated, but I figured this is the best place to ask.
Type error with ApplicationCommandType and ContextMenuCommandType
I just upgraded TypeScript and some other things in my package.json and it apparently now thinks that the following code is invalid:
```ts
new ContextMenuCommandBuilder()
.setName('...')...
Failure to push a slash command
```
const getMp3 = () => {
const allTracks = fs.readdirSync(path.join(path.resolve(), 'audio')).filter(file => file.endsWith('.mp3'));
let trackData = [];
for (const track of allTracks) {...
.getMember() with Typescript
I saw that
options.getMember()
sometimes doesn't return a GuildMember.
How can I filter this case out?...
Ephemeral replay to a channel message
Hey is it possible to replay to a message with an ephemeral or something similar (so only the user can see it, and it's not part of the channel message).
From this event:
client.on(Events.MessageCreate, (msg) => {})
Thanks!...sweeping the cache
hi, I obviously haven't ever used it, but is it recommended? And if I have GuildMembers intent, will it sweep that as well or what? I'm sorry I'm just pretty much new to cache sweeps, haven't digged into it yet & would appreciate someone's guide on that!
Can ephemeral ever fail and show up as a regular message?
Reason I ask is because I have confirm/cancel buttons on slash commands that can only be invoked with certain permissions, and I want to know if it's completely unnecessary to have the logic for permission checking on the button interaction as well, because under no circumstance will the message be exposed to someone who lacks the permissions due to the checks on the command itself.