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

error

soooo what is this
No description

Stats command returning wrong member count after X hours

``js const promises = [ client.shard.broadcastEval(c => c.guilds.cache.size) .catch(error => { console.error(new Date(), Error in guild count for shard:`, error);...

What is the best way to handle components when they've been timed out?

Hi, I'm sorry, I've probably asked this question a long time ago but have forgotten the answer as it has been a minute. What is the best way to go about timing buttons/components out? For example, a 60-second collector is started when a command is ran. When the 60 seconds are up, the buttons either disable or (what I'd prefer) have a different custom ID so that an error reply shows if the ID says the button is disabled....

live updater

i have some commands, and some of them creates embeds, but if the bot created a verify embed, then i update the bot, then the verification process doesnt work anymore, or other embeds, so is there something i can do? for example doing smth in index.js?

@discordjs/opus

Hey, kinda new to voice stuff but, for a receiver. What difference does the sampling rate and channels make?

@discordjs/opus

Hi, so from what I understood, this is more performant than OpusScript. I only need to receive audio too. When trying to install I get this error https://srcb.in/ZWlgZfol1H Am I supposed to install the Visual Studio windows app?...

trying making a bot that send custom message

Hey im trying to make my first bot where it can send custom message but doesnt works no /text to see when i write it please help

Bot not allowing me to do announcments

When i do a announcment command it just says "failed to respond" or like "unable to do this command"

commands

The bot commands are no longer displayed

How do I check if the channel is a DM?

I've already tried channel.type, but it doesn't even register when i send a message in DMs, it does on servers

What's the ID of my created channel?

Continueation of #How to create a channel. What's the ID?

How to create a channel

I want to create a channel

code problem

i have this whole index file when i do a node index.js

The requested module '../utils/formatTextWithStyles.js' does not provide an export named 'default'

Hey i have a problem with import a function my codes
import formatTextWithStyles from '../utils/formatTextWithStyles.js';
import formatTextWithStyles from '../utils/formatTextWithStyles.js';
...

Embed Builder Not Defined When Using BroadcastEval

I want to send a message with an embed to a channel that might be in another shard. How can I get Embed Builder or my own embed class to work? Passing it in the context didn't work so far either. Thanks for any help....
No description

"ApplicationCommandType.User" is not assignable to parameter of type "ContextMenuCommandType"

I'm using discord.js with Typescript and I encounter the error TS2345: Argument of type ApplicationCommandType.User is not assignable to parameter of type ContextMenuCommandType But if I look in the type definition I can see type ContextMenuCommandType = ApplicationCommandType.Message | ApplicationCommandType.User; Code...

retrive user gaming activity history?

Hello, is there a way to retrive a user gaming activity history without building a DB? I can get game from when 'User is now playing Game', but is there a way to get to see what he played in the past? I suppose not, but it's worth asking. Thanks...