Category "discord.js"

Await component doesn't send OK

I would like to do a await message and list for my setWelcome but it does not send me Ok when I select in the Select menu and I do not know if it is good for th

Discord.js get current message embed

I've been trying to make my bot's embed color update dynamically (using random color, editing HSV value). However, using msg.embeds[0] seems to give me the prev

discord.js check if user has permissions

I want a command that can only be used by people who have the ban permission current code: if(msg.member.guild.me.hasPermission('BAN_MEMBERS')) { msg.

Uncaught Error Error: Cannot find module 'express' [closed]

im trying to make a discord bot using discord.js it works but whenever i try hosting it i get (Uncaught Error Error: Cannot find module 'expre

guildMember is not defined

I was trying to make welcome message when someone gets on my server but I am trying to do so it takes embed from another file. It says guildMember is not define

hello I am getting an error that shows up in discord modal it tells Something went wrong. try again discord.js

Hello I made a mail command which would take message from modal and send it to a mentioned user but it gives this error in modal window and does not log anythin

Get interaction's reponse message object discord.js

Si I have this really simple command : let row = new Discord.MessageActionRow().addComponents(...) // The .. is too long so i'll just remove it for this questio

Discord js getting a bot's message

Well i need to do this: on a channel a bot announces "btc" price (not real) im trying to get the price and send the price to a specificed channel My code sa.on(

PM2 only auto restart between specific time?

Not sure how to make pm2 run a Javascript that restart at 23 PM 59 sec everyday then enables auto restart for 10 mins to next day's 00:09 then no-autorestart fo

message.author.id TypeError: Cannot read properties of undefined (reading 'id')

Why i didnt get message.author.id and create the channel with special permissions? const {SlashCommandBuilder} = require("@discordjs/builders") const { Client,

DiscordJS MessageManager is a circular dependency

I try to get a message by id in discord.js, but returned MessageManager is a circular dependency and I cannot access any of it's properties. console.log(cha

DiscordJS v13 send to specific channel

So I am trying to send an embed to a different channel than the command was used in as a log channel how ever I have tried a few different methods however where

Is obtaining the list of all user IDs in a discord server illegal or considered botting?

If I follow the instructions here, would it be considered against Discord TOS? Such as botting or whatever.

How to detect message content Discord.js?

I am working on a code for a Discord bot for my server, and I'm currently stumped on a magic 8 ball feature, go figure. I'm trying to get it to check if there i

I am making a discord.js bot and I want to know if there was an error

I am using the following code to figure out if there was an error. But I want to not run something if there was an error. I have tried to look it up and I could

setRateLimitPerUser does not exist

I'm creating a slow mode command for my discord bot. I create the bot with typescript and I wonder why setRateLimitPerUser does not exist. What can I use instea

How to make a button event handler in discord.js V.13

I create a function to send an embed message with a button and now I would like to create an event handler to detect when the button is clicked and execute a fu

Discord.Js Message Link

So I've looked through the discord.js docs. I'm not too good at reading docs but is there a way to get the url of the message that initiated the command like: c

DiscordJS V13 Mentioning a role

Can someone help me with these code? What I want to happen here is when an admin mentions a role, I want it to do nothing or maybe send a reply like "You mentio

Discord Music Bot Wont Boot

So Im making a discord music bot (not for public) and its based off some github code and I put it in and gives me this, I had the node:events problem and fixed