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

Get Activity (Embedded Apps) in a channel

Is there a way to get information about currently ongoing activities (games created w/ embedded app SDK) in a channel? I'm currently trying to make a bot that intergrates with a custom app. Trying to search about activity is pretty hard as people refer to "activity" as the profile status.....

Working with Rest API

I'm trying to use REST for the first time, but I can't get it to work. I can't find any docs/references on how to perform actions with it. Right now I'm trying to move myself to a different voice channel, here's my code: ```ts import { REST, RESTOptions, Routes } from "discord.js"; import { config } from "./config.js"; ...

How to Create a nitroDetect with Discord.js V14.17.3?

I have searched a lot of information but I can't do anything. I just want to check which users have boosted Nitro (I already did this) but after a user has boosted once, when it comes to boosting a second time, I can't create a detection of how many times that user has boosted Nitro. Can anyone help me?

Small question

Maybe stupid question, but how to make this one?
No description

Vote Member détection : Command slash

Hello, I hope I'm in the right place! Code informations - Djs v14.14.1...
No description

Autocomplete Unknown Interaction

Whenever I paste a url into my autocomplete command I get Unknown Interaction, even though the command still runs. error: ```json DiscordAPIError[10062]: Unknown interaction...

Vote détection with slash command for a member

Hello, I hope I'm in the right place! I would like to make a system to detect when a user makes a slash command and give him 1 point. A 6h cooldown is set up....
No description

ERROR: Shard 29's Client took too long to become ready

I have a bot where it comes up with this error randomly and causes the bot to crash, I then need to restart the server. any ideas how to resolve? here's the sharding code: ...

InteractionCreate for autocomplete won't fire on some commands

Below is my code. There are no errors at all - on some commands the autocomplete works, on others nothing even prints for Events.InteractionCreate. My options have .setAutocomplete(true). Here is the map option. The code for it is the exact same for both of my commands: ```js .addStringOption((option) =>...
No description

dms not registering as a dm

hey, ive been trying to make this code from like a year ago work, but the channeltype.dm doesnt seem to be working -

Listing entries in a ForumChannel?

I am wanting to list entries in a ForumChannel, but I am not sure how to go about it? I have a topic with two forum threads (if that is the right terminology?), but the following code returns 0: ```ts async function listForumThreads (channelId: string, since?: Date) { const client = await getClient();...

Issue with Duplicate Commands When Bot Is Added to Another Server

Hi everyone, I’m facing an issue with my bot’s deploy script, and I’d appreciate your help in resolving it. Here’s the situation: 1. The bot works perfectly when added to a new server via top.gg. Commands deploy as expected, with global commands available and no duplication. 2. The bot is also in an admin server (used for managing guild-specific commands). In this admin server, both global commands and admin commands work fine — no duplication issues....

ERROR

My bot is online and shows the commands But i end up with this.... pls help ...
No description

Embed generator

Hello everyone! Today I have a question again, not quite on the topic. I am looking for a tool that will help to beautifully design embed messages, if any, and export them as code. Does anyone here know? Currently, it is very inconvenient to restart the bot every time to see the final result, I want to see the result immediately.

How to limit visibililty of Slash Commands

I have around 30 commands, and some of them are special commands that I want to be visible only in my support server. If someone adds the bot from my support server, these special commands should not be visible in their server. How can I achieve this?

quick question about caching in djs

hi. is there any way to control what i cache specifically? for my example, here's a guild object: ```json...

messageCreate isn't firing

I'm not getting messageCreate triggers when a message is sent in a chat channel. To cover items from similar questions: - I've triple-checked my intents (see below)...