discord.js - Imagine an app

DIA

discord.js - Imagine an app

Support server for discord.js, a Node.js module to interact with Discord's apps API.

Join

djs-questions

djs-voice

dropdown menu timestamps markdown

is it possible to have timestamps in the dropdown menu, v2 or i just have to write it with text instead?
No description

Problem with mysql and discord.js

Hello guys, recently I've encoutered a problem that whenver that I try to start my bot using a sql database it wont let me and say that "access denied", now I've personally checked it alot of tiems and I saw the user name , host, password, db name are all correct and the database is imported. This is the error: ```Error executing startrun Error: Access denied for user 'botuser'@'localhost' (using password: YES) at PromisePool.execute (C:\Users\user\Documents\GitHub\sleepy-bot\node_modules\mysql2\lib\promise\pool.js:54:22) at Object.execute (C:\Users\user\Documents\GitHub\sleepy-bot\commands\startrun.js:90:39)...

"No Description" when calling for guild.channels.fetchActiveThreads()

Get "https://discord.com/api/v10/guilds/1334649246472732712/threads/active?": context deadline excee... ``` DiscordAPIError[undefined]: No Description at handleErrors (/app/node_modules/@discordjs/rest/dist/index.js:727:13) at process.processTicksAndRejections (node:internal/process/task_queues:105:5)...

Voice Channel Create & Move Issue w/ PS5

I'm curious about a possible limitation of console usage with our temporary-voice feature in our bot. Currently my logic does the following steps. - User joins configured channel. - Bot creates a new channel. - Bot sets new channel position below the parent channel....

AutoModerationActionExecution Event Not Firing

I’m currently building a moderation feature for my Discord bot using Discord.js v14, and I’m running into an issue where the AutoModerationActionExecution event is not firing at all. The goal is simple: whenever someone triggers an AutoMod rule (specifically blocking @everyone or @here mentions), the bot should send a temporary warning in the same channel and log it in another log channel using an embed. I’ve set up the listener like client.on(`Events.AutoModerationActionExecution, async (action...

Interaction reference

I am looking to refer my interaction to a bullmq job to process the data sequentially. Is there a way to do that, like fetch interaction ? Discord version: ^v14.19.3 Bun version: 1.2.12...

Double commands

Does anyone have any idea why there are duplications? I have the deploy-commands.js from your guide only I use global commands.
No description

Is it possible to fix `Unused default export`

I like to keep the files free of unnecessary warnings. Is there any way to remove it?
No description

Default `time` value for `awaitMessageComponent` ?

Hi, the time value in awaitMessageComponent is optional, but I cannot find any indication of what the default value is ? Thanks

Embed Video ?

Hello i want put a link video URL on my embed and can watch the video on it it possible or not ?

Fetch all guild members

Hello! I want to fetch all members of my guild (around 40k) without blocking incoming interactions and without sending a request for every member. Right now I use: <Guild>.members.fetch(). What would be a better alternative? Can I somehow split up the requests?...

in-line vertical

is it possible to use in-line in embeds to have horizontal displays?

Slight code modification to make it work for another bot

Hello, the following code is fully functional and does the following: After a random amount of messages in the server the bot will drop a random amount of server currency, letting any member pick it up using "!pick", using the tatsu api. Now, I want to use this exact same code for another bot, with the difference that I want it to take server currency from the member instead. What would I need to change in order to make that possible? I am not sure what to change here. https://pastebin.com/3Jt...

Error: Cannot message this thread until after the post author has sent an initial message.

I'm encountering the following error:
DiscordAPIError[40058]: Cannot message this thread until after the post author has sent an initial message.
DiscordAPIError[40058]: Cannot message this thread until after the post author has sent an initial message.
...

Question about Button Interactions

Hello - I have a TempVoice System & Button to Manage on the Embed in the Voice. (Voice Lock & Unlock)
After clicking one Button & re-clicking gives me the "Interaction Error" while clicking again....
No description

Potential bug on the ModalSubmitInteraction class

In the documentation it says that there is a method "update" which does not exist in the class : https://discord.js.org/docs/packages/discord.js/main/ModalSubmitInteraction:Class#update...
No description

Inconsistent "Unknown Interaction" Error

I checked the probably causes but neither of them should be causing the issue. - My interactions are already deferred. - I'm not using collectors. - I have reset the bot token and pasted it where I'm hosting the bot, making sure it's only started once. - I'm not deferring modals. And this happens on other interactions as well....
No description