Category "discord.js"

How can I get the length of an evaluated command in discord.js?

So I wanted my Bot to send a File whenever the output of the executed evaluation exceeds 4096 Characters (since this is the current Limit of Descriptions in Dis

I want my discord bot to send a random message to a text room given by user [by channel id or channel name]

so what I am trying to do is when a user write a command such as !setchannel #test or !setchannel 86xxxxxxxxxxxxxxx then the bot will send the random messages

Delete messages that have any links

I'm working on a new project and I need to have a link filter, were pretty much anyone that doesn't have the permission ADMINISTRATOR can't send links, if they

Discord bot wont respond to messages sent in dms

I have setup all of the required intents including DIRECT_MESSAGES though the client messageCreate event doesn't appear to be picking up the command and respond

How to track the number of command uses and mentions by the user?

I just wanted to know if there's a way to count how many times a command has been used in my Discord server like on screenshot. I'm new with coding. I used dis

Is there a way of creating more than 3 inlined fields in a discord.js embeded message?

I am trying to create an embed for a discord bot using node.js. I want the embed to have 4 inlined fields so that there effectively are 4 columns with and an ar

message.content.includes doesn't works (?)

const banWord = ["meat","fruit","road"]; for (var i = 0; i < banWord.length; i++) { if(message.content.includes(banWord[i])) { messag

Fetch messages with discord.js V12 doesn't work for me. [Discord.js V12]

As you can read on my title, I can't fetch messages with discord.js. In discord.js v11 I used this : var bot = new Discord.Client(); bot.on('ready', () =>

Discord js Voice | How to use AudioResource

I'm trying to create an AudioResource according to the documentation, but I don't know what to fill in edges and streams. I only have yt(youtube-url) from ytdl-

Lodash.cloneDeep: unable to edit property of cloned object [discord.js execute command]

I'm currently trying to make an ~execute command for my bot. This command will allow me to execute commands as other users, thereby allowing to provide better d