discord.js - Imagine an app

DIA

discord.js - Imagine an app

Support server for discord.js, a Node.js module to interact with Discords apps API.

Join

djs-questions

djs-voice

Is there a way to save deleted messages and use them in transcript?

```js const fs = require('fs'); const path = require('path'); async function generateTranscript(channel) {...

Log error

I`m trying to log new ticket creation by using this code

bot's activity status

can someone enlighten me on how do I remove bot's status?

How to handle HTTP errors?

https://discordjs.guide/popular-topics/errors I've read this and still don't know how to properly handle HTTP errors. I don't really know how to handle a 403 (FORBIDDEN) error for example. How can I do this?...

emoji undefined

i cant use my client emojis its showing undefined

Automod triggering twice

I made a Automod system, which relies on Discord's built-in automod, however, I got a very weird issue, the link automod, triggers twice, by "triggering twice" I mean the following: - Sends the moderation DM to the user twice - Logs the punishment in a channels twice ...

Is it possible to change the profile picture and name for a single message without using a webhook?

"Is it possible to change the profile picture and name for a single message without using a webhook? I want to send a message with a different name and profile picture. Can this be done using the regular channel.send(...) method, or do I need to use webhooks?"...

Bot command listing on profile

```js const { REST } = require('@discordjs/rest'); const { Routes } = require('discord-api-types/v10'); module.exports = async (client) => {...
No description

How can i get ONLY the message from 1 person in a collector

how can i get ONLY the message from 1 person (for example the author of the interaction) in a collector?
No description

Waiting for a message

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

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...
No description

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?
No description