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

command interaction with another command

my /report command is interacting when i use my /help command, i've somewhat fixed it but now i get an "DiscordAPIError[10062]: Unknown interaction" error everytime i use the /help command, here is the following code that i'm having issues with:

Permission for disableCommunicationUntil

What is the permission required for the but to use <GuildMember>.disableCommunicationUntil

embed message setcolor is not working

``js function embedMessage(desc) { return new EmbedBuilder() .setDescription(${desc}`)...

messageUpdate Event

Hello, I'm trying to do a logging system for my bot and I ran into a problem when it cames to message updates. oldMessage returns the right thing but newMessage returns undefined. Here is my code : ...

ContextMenuCommand same name as a SlashCommand

If I create a SlashCommand called test and a ContextMenuCommand called test too, it will crash/not work fine or it's ok?

How to get Member Object with message

Im trying to get a member of the author's message but i cant find the way. What i want to do is check if member has a role, i delete the role from passing some time since i added it. But without the member object, i cannot check it. What is the way for getting it?

ModalBuilder() is not working !

```js else if (interaction.commandName === "userregister") { console.log('hello world register !'); const modal = new ModalBuilder()...

blacklist system not working

```js const { model, Schema } = require('mongoose'); let blacklist = new Schema({ User: String...

Modal Error

```js const { SlashCommandBuilder, ActionRowBuilder, Events, ModalBuilder, TextInputBuilder, TextInputStyle } = require('discord.js'); module.exports = { data: new SlashCommandBuilder()...

Creating a bot that automatically posts new emails from a gmail account

Would you recommend using discord.js alongside the gmail API to get a bot that would post all new emails from a gmail into a channel? Or would I be better off not using discord.js and something like a webhook instead

weird error

just wanted to start my bot and this happened - it doesnt seem like a problem with my code bc it worked before on another machine...is it smth to do with node version? ```ReferenceError: guild is not defined at eval (eval at _eval (/home/banana/uwu-bot-v4/node_modules/discord.js/src/client/Client.js:470:12), <anonymous>:9:23) at eval (eval at _eval (/home/banana/uwu-bot-v4/node_modules/discord.js/src/client/Client.js:470:12), <anonymous>:23:7) at UwUClient._eval (/home/banana/uwu-bot-v4/node_modules/discord.js/src/client/Client.js:470:12)...

TypeError: require(...).config is not a function

this error comes up when I do npm run test. I searched all over my files and codes and I don't get why I am getting this error.

How to start

Hello I want to start learning djs library and I don't know where to start

Issues with button builder

I'm having this issue with Button Builder. Im awful at coding and cant seem to figure it out. Let me know if you can help out.

How can I check user roles

So I have a slash command where the member has to mention a user in the command option, how can I get the roles from the user the member mentioned in the command to see if it has a role

Create Users Dms

When I am trying to send a message to a user via bot it says object Object

TypeScript client.cooldowns

Hihi. I have a bot in JavaScript working perfectly fine but I decide to change it to TypeScript(im totally new in ts but not in js). The problem is then when I use client.cooldowns = new Collection(...) VSCode says that the porperty cooldowns does not exists in Client<boolean>. The thing is, how can I add the property cooldowns to the client so ts recognizes it? What I can do is parse client to any and problem solved, but I think is not the best option....

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}`,...