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

Proxy

Hello, I’m running multiple shards. What’s the best way to implement proxies and avoid the Cloudflare bans? Ideally both websocket and rest...

Different Profile Picture in Different Servers

Hello everybody, I have two bots, one being the free bot and one the premium bot. I want to merge them since it’s inefficient to update both, because I have to hop back and forth. ...

discord-rpc: client.application

Hey guys, is it normal that client.application is null? I created another discord-rpc project to test stuff, here's the code: ```ts import { Client } from "discord-rpc";...
No description

how to use sequelize version 5?

npm install discord.js sequelize sqlite3

How do i learn discord.js?

please answer me i would really appreciate it if you can aswer it ❤️

how giveaway boat avoids rate limits

on giveaway boat, in the raffles pagination: - there's an option to show the username instead of the mention. i know the bot can’t fetch users on demand (because of api rate limits). how do they manage to do that without hitting the limit? the only thing i can think of is caching users when the bot logs in. ...

Need some embed UI / UX implementation ideas

hi! i was hoping if someone here has worked extensively with embeds UI/UX (or components v2 if that's a possible solution) could provide some ideas or something i haven't thought of yet. my main question is if there is some creative solution to make an image inline with multiple fields or basically have it so that the message emphasizes placing elements to take up more width than height, if that makes sense? context: i'm creating a MTG card request / voting system that pulls information from a website (scryfall) to display info about a card at a glance. the issue that i'm running into is that putting the image as setThumbnail() is too small (and mobile users can't click on the img to open the full view) while setting it in setImage() is too large and makes it less convenient to scroll through the channel to vote. ...
No description

Modal Fields

Can modal input fields (eg text input) be autofilled AND made view only?

Logout on shutdown with ShardingManager

Hello, I am currently trying to make my bot immediately "log out" i.e., appear offline on Discord as soon as my bot process exits. I take for granted that I need to use client.destroy() for this, however when trying to implement this with the ShardingManager I get some weird behaviour where when I hit Ctrl + C the client is destroyed and then immediately re-runs, hitting Ctrl + C again stops the process but throws an exception ``` Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed...

Button for giveaway

```javascript const { checkJoin } = require("src/utils/functions"); module.exports = {...

Slash command subcommand

/config thing @user
/config thing @role
/config thing @user
/config thing @role
...

Get total bot without enabling GatewayIntentBits.GuildMember

Hi — is there any way to get the total number of bots in a Discord server without enabling GatewayIntentBits.GuildMembers? Right now I only have interaction.guild.memberCount to get total all member. Any suggestions?

Pass more than string value with autocomplete option?

Hey! As the title says I am looking for if there is a way I can collect more info about the option than just passing along a string value? My bot autocompletes a list of "tags". In the autocomplete the tag name is returned as name (duh) and the id is returned as value, so that I can filter on the relevant id in the rest of the flow. But I am interested in: 1. Being able to get the name in the rest of the flow (e.g. to give helpful error messages rather than just referring to the tag id)...

Discord Command

Hi everyone, i have a problem with my code. When i did the command, the image does not appear on the embed and i don’t really know why. Here is the code:...

MessageManager.fetch with cache: false includes cache as a query string param

Not necessarily a big deal, but something I found funny is using (channel).messages.fetch with { cache: false } and some limit includes cache=false as a query param unnecessarily. Observed by logging requests from a bot using @discordjs/proxy.
No description

audio file not sending entirely?

so for some reason, only the first bit of my audio file is sent as part of my message. It sends as a few KB but the entire file is 3.5 MB, so its not fully being sent?

Kinda wanna start coding

I've recently been looking into coding! I'd like to try Javascript. In the past I've tried FreeCodeCamp but have had a lot of issues. Any advice?

Can you help me, how can I do it after he selects it and uncheck it?

Can you help me, how can I do it after he selects it and uncheck it?
No description

Containers

How do i make a container