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

Lightweight PermissionsBitField package

Hey! I want to use the PermissionsBitField class in an API of mine, without having to import all of DiscordJS. I did some searching to see if there was any sort of standalone package for it but wasn't able to find anything. I know it wouldn't be too hard to make from scratch but I wanted to check first to see if anyone knows of an existing package. Thanks!...

Discriminator showing up as #0

I have a dashboard for my discord bot and I have seen that the discriminator is showing up as 0 now and the username is "itsmateo20" and not "It'sMateo20" after the discord update with the usernames is this implemented in discordjs or not yet because I don't know what I should do, can't find anything on the discordjs docs and guides

Why isnt my eventHandler being loaded?

```js async function loadEvents(client) { const { loadFiles } = require('../Functions/fileLoader'); const ascii = require("ascii-table") const table = new ascii().setHeading("Events", "Status");...

How to allow a bot to receive DM's from server members

Hello, I'm looking to see what I can do to make my bot allow DM's from server members. It currently says this: "Your message could not be delivered. This is usually because you don't share a server with the recipient or the recipient is only accepting direct messages from friends. You can see the full list of reasons here: https://support.discord.com/hc/en-us/articles/360060145013"...

How to respond to events that aren't messages?

iv'e been trying to make my bot welcome a user on joining, but im stuck at this point.

How do i make my bot welcome users when they join the guild?

I wanna make it so that my bot can welcome users when they join the guild, and a need to make it toggleable. Any pointers?

Check If Channel Permission is null

So basically i have a voice channel with permissions set for user ids. am having trouble figuring out how to check if a permission is "null" (grey slash)... when the grey slash is selected im getting false

Why isnt this working.

```error Error reading directory: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined at new NodeError (node:internal/errors:399:5) at validateString (node:internal/validators:163:11) at Object.join (node:path:429:7)...

banner

How to display banner ? I tried to fetch user.bannerURL or banner, but it dosent work, i have this error ```error C:\Users\Welltag\Desktop\Ruby Bot\node_modules@sapphire\shapeshift\dist\index.js:1104 return Result.err(new CombinedError(errors)); ^...

How to send embed and common text in one message?

it must look like message on the picture

member.createdAt

What is the proper way to use member.createdAt? I have tried <t:${parseInt(member.createdAt / 1000)}:R> and it returned NaN

discord.js bot help

so I am trying to use this bot for my own personal use. the original owner has gave me permission to fork the bot obviously. I have proof of that too. but I cant seem to start up the bot. can someone go over the steps with me, or I can even screenshare. idk what version the js is so imma just put v14.11.0

Commands not working for some reason

after I turned on the bot and typed "-ping" in my server, it didn't do anything BUT if I say /ping the bot says "The application didn't respond". Here's the code: discord.js version: 12.2.0 vs version: latest node.js version: 12.17.0...

Assistance with registering commands and typescript

Hello, I was following the guide in the documentation and reached this point: client.commands = new Collection(); I've tried creating a seperate file (discord.d.ts) ```...

how to verify if the DM of an user is open/close?

I make a modmail bot, but I don't find how to check if a DM is open or close. Is there a method to do that ? thx

Cannot read properties of undefined (reading 'Flags')

My Code: ```js const { SlashCommandBuilder } = require("@discordjs/builders") const { EmbedBuilder, PermissionsBitFieldBitField } = require("discord.js") module.exports = {...

Is there a way to send a message when the bot is about to turn off ?

I want to send a message kinda like that : "Bot off" when the bot is about to turn off.