discord.js - Imagine a 👻

DIA

discord.js - Imagine a 👻

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

Join

djs-questions

djs-voice

Slash Command Interactions Doesn't Work

Hello, So I am creating a new bot and for one reason the doesn't respond to the slash commands at all, the slash commands are registered correctly. But when I run them it does nothing and no errors pop up in console. For more information about the problem please tell me and I will provide it. Thank you!...

Anyone can help me?

`` const embed = new Discord.EmbedBuilder() .setColor(config.MainColor) .setDescription(New playlist to the queue\nPlaylist: ${playlist.name} (${playlist.songs.length} songs)) .setFooter({ text: Commanded by ${playlist.songs[0].user.tag}`,...

Which things are always cached with the Guilds intent?

I wanna have a list of things that are always cached with Guilds intent so I know when to get from cache and when to fetch, so there's guilds, guild channels, roles, emojis, voice states (not sure about this one), am I missing something? Also, are there other things that are always cached given you have some intent needed for it?

getting new display name

hello, with "user.displayName" i am catching the new name system name, means for me "drogensohn". "user.nickname" is just giving me null because i dont have a nickname on that server and i just want to know what i need to do to get the new display name, for me "jonas" now. And how do I prioritize the server nickname over the new display name

Button

How can I reuse the same button of my discord bot multiple times? because after the first time that I pressed the button I can't press it again.

Deselection in Select Menu

is there a way to automatically deselect the option immediately in the select menu once an option is clicked?

oldMember and newMember timeout issue

```js const oldTimeout = oldMember.communicationDisabledUntilTimestamp const newTimeout = newMember.communicationDisabledUntilTimestamp console.log("oldTimeout:", oldTimeout) console.log("newTimeout:", newTimeout)...

Ban specific users from using my bot?

Is there a way to ban specific users from using my bot? I don't want to ban them from the server, just if they were abusing my bots commands or something, could I ban them from my bot?

fetching command choices

hihi! i have a bit of a complicated command https://gist.github.com/ash-development/51b240f1db0e10b37994b6024263dc52 i have built this command of a previous one i built, but the main change is the team "option". i am currently getting the below error when trying to load the command: ```cmd CombinedPropertyError (1)...

Weird colorfull error while constructing embeds (djs14)

I'm trying to build some embeds from json data, but some verifications error about empty strings appear, here is the data: ```json { id: 3, nom: 'venesie',...

Help with command!

Hello good afternoon, I ask you as a favor if you can help me since I have been trying to make a command for more than 1 week. The command consists of a button that sends an embed and a select menu and as you select things the embed and the select menu are updated to continue choosing...

AutoMod

Does DJS support automod and how does DJS work?

body: { error: 'invalid_client' }

const e = new Error(r.status); ^ Error: 401 at D:\RPC\node_modules\discord-rpc\src\client.js:64:21...

Best and easiest way to store data for a bot/host one

So I'm making a really simple bot for my own personal server and I want to store some data that can be recalled later. Which way do you guys use? I'm looking into SQLite right now as it looks to be what I want but I'm curious what everyone else uses and why. P.S Also curious how you guys host your bot so that it can stay on always instead of just when I turn my computer on lol...

Question about context menus

Here about context menu commands, Is it possible to only make them visible to users who have a certain role etc. If so how, or could someone send me a link to where I can find some guidance on how?...

Cannot read properties of null on guild.commands.create

sup, see my code: ```js (this.client.guilds.fetch(process.env.GUILD_TEST)).then(g => { g.commands.create(command.data); })...

Not recieving heartbeats, killed after ~50 seconds, zombie connection, do recieve guildCreate event

Hey, I'm having a really annoying issue. I have a ubuntu server on a digitalocean droplet where I try to host a djs 14 bot made with typescript. I have ran a djs 13 bot with javascript on the same server, with no issues. For some reason, when I run it, the bot status changes to "Online" but I never recieve the ready event, nor recieve commands. After about 50 seconds, it's killed (maybe after recieving all ~650 guilds?). This is the output from client.on("debug"): ``` Preparing to connect to the gateway......

Attachment content type support

Hello. Not sure if this is correct place to ask this question. I need a list of what content types are supported for attachments. Does anyone got a list or a link to it, I'd appreciate it. ...

RCON Response

I have a working chunk of code for RCON, but I can only get it to console log the command and the information. I have been trying to get it to output the information from the command to the Discord channel. Any help with this would be greatly appreciated. 🙂