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

Message collector sending an error when two people send a message at the same time

When two people send a message at the exact same time I get an "unknow message" error, is there any way to prevent that ?
No description

Ping command

So I am a bit confused so I so I am new to using d.js/@core and d.js/@rest Witch I am fully using and I am having issues making my ping command work ```js import { SlashCommandBuilder } from "@discordjs/builders"; import { MessageFlags, InteractionType } from "@discordjs/core";...

Message.startThread fails with: DiscordAPIError[10008]: Unknown Message

I'm sending a message to the channel using channel.send, awaiting it and saving it to a variable called sentMessage. Then executing .startThread() but it fails with: ```js ode:events:497 throw er; // Unhandled 'error' event...

User install Commands

Hello can anyone say me how i make User install commands

Unable to change USE_EXTERNAL_APPS permission

Hello, I am trying to change the USE_EXTERNAL_APPS permission for a role in a channel. However I am encountering an issue. Below is the code and the error message. It's been some time since I did anything with discord.js so I may just be misremembering the process. Code...

discors bot and panel architectury

Hi, whats the best architectury for pannel and bot ? These two on the same server (nodejs) two servers ? (With socket ? https api ? ) 3 servers ? (Api, bot pannel)

.addChoices and name_localizations

Hello, I have big problems with 2 orders containing . addChoices, here are the screens, if a charitable soul can @ to propose an idea I’m taking:) I have a good look in my folder AutoModeration and are the only two commands with an . addChoices...
No description

@discordjs/collection Dependency Remains 1.5.3 instead of latest version

There may be a reason, considering the major version change, but I found out discord.js is still pulling 1.5.3 when I went looking for a fix for this: https://github.com/discordjs/discord.js/pull/9345/commits/30936f01dcc74ea0d3675a5f93d63f9d8c9dd1a3 I just patched it in my own project for now, so it's not a major concern to me. I couldn't find an issue for it in the repo. If it is an issue, let me know, I'll submit one for you. Thanks!...

Bot wont talk & no error, how do i debug? (.wav sound file)

how do i debug this? since it says nothing in logs and doesnt even light up green code (voiceConnectionAudioPlayer.player.play(...) is actually ran): ```js function sayAsUser(text, userId) {...

Message create event is being triggered on thread creation

How can I check if the event was because a thread was created?

Bot user interaction

Discord added user interaction, so slash commands can be use in any place, even in dms with other people. Does discord.js supports it?
No description

messageCreate not picking up dm messages

My bot's messageReact event doesn't pick up any messages that are in dms, even tho i have enabled the needed intents for them, it works fine for guild messages tho bot.ts ```ts import { Client, Collection } from "discord.js"; import { Command } from "./interfaces/command.js";...

is this wrong for making embeds

so i have an entire folder for components (embeds, buttons, button rows, and...) then i have a file for the things that are repeated like this: ```javascript export function _embedStatics(){ return {...

problem with validator

hey, is there a problem with this validator? not as in is it working, as in am i doing it correctly btw i cant defer the reply cuz maybe i will have to send an ephemeral reply in the command ```javascript import { getUserByDiscordID } from "../database/interactors/User" ...

regenerating commands list

is there a way to regenerate all comands?

returned user from getUser option

when u get the requested user from interaction.options.getUser or whatever its called thats supplies a "member" right? and not a "user" aka your in the scope of the guild

Error

Hello I have been trying to setup slash commands and it keeps saying applicationGulidsCommands isn't a function how can I stop stop this?
No description

Permission Checks

Is there any like suggested way to make permission checks? I have been doing fetch with force set to true to make sure that the person who executes certain command still possesses HR command but then again, is it the way I should do it since I don't want to send lots of requests.

what is "with reason"

So there are bots like bloxlink which update roles a lot for users but like, what is the with reason field? I haven't seen it before and it seems like a new thing.
No description