Category "discord.js"

Is there a way to set the timestamp to UTC in discord.js

I wanted to create a footer for a discord embed, that has UTC time so I created the lines in the following, and then it errored a lot, so I turned it into an ob

Do something when a specified user react discord.js

Hello i have a marry command and i want to do a reaction verify, when the tagged person reacts with ✅ do the actions i add there. I can't find a solution,

Discord bot won't join the music channel a user is in

I was trying a tutorial yesterday to make a personal music bot but the code to make the bot join a channel that the user is in upon using the "play" command isn

i'm trying to make my discord bot to record audio using prism-media as said in the example of @discordjs/voice but i'm getting error

I'm making a discord bot that records the voice channel the libraries [email protected], @discordjs/[email protected], [email protected] my imports const { createWrit

Is there a thing in discord.py similar to streamTIme in discord.js?

I'm using the package youtube_dl for the play music command. After a while, now I've been working on the rewind & forward commands, I have implemented a bas

Discord.js v13 delete message after a certain amount of time

Up to discord.js v12, my bot would delete messages it posted like this : message.reply("text") .then(msg => { message.delete() msg.delete({timeout:

DJS Cannot read properties of null (reading 'premium')

In my code, before it does anything I have it check if there is data and if there isnt then make a new mongodb collection but when running the command and there

Discord js send everyone pm

I want send everyone in server a message or a embed. I searching google nothing shows up . I Saw some bots doing anonuncements. PM everyone. How i can do that

Discord radio bot randomly disconnecting

Djs (v12) Maybe someone is already familiar with this problem in their code and knows the solution. After a few hours of listening, the bot just randomly stops

Docker: Update container with ZERO downtime

I have a discord bot running with docker and docker-compose, how can I update the image of the container without any downtime? Its very important for me, that t

How do I get all messages on a channel and post to hastebin? discord.js

I'm idealizing a doubt bot. In view of this, I must explain that at the end of the member's question, the channel must be closed and before that the bot must se

Passing strings for MessageEmbed#setFooter is deprecated

I'm getting this warning in the terminal when running my bot code: (node:6220) DeprecationWarning: Passing strings for MessageEmbed#setFooter is deprecated. Pas

Discord.JS Avatar Command using User ID

I want to use the avatar command using user id's/mentions. I was able to use mentions, however I am unable to use the user ids. Here is my current code: const D

How to count amount of reactions in Discord.js v13?

I have tried so many things out, here's my current code var green = toString(msg.reactions.cache.get('🟩').count); var red = toString(msg

TypeError: targetchannel.send is not a function

Node version : v16.13.1 Discord.js version : 13.3.1 TypeError: targetchannel.send is not a function How to fix this Error? Code: fs.readdir('channels', functio

Connection to monitor closed MongoDB

I am trying to run my discord bot but I get this error [12/4/2021, 2:06:02 AM] - [INFO] - [ShardManager] Started 1 shards [12/4/2021, 2:06:28 AM] - [ERROR] - co

Filter out bots from member count in client status

I want to make my bot activity say "Watching + Member Count (not include bots)". I did some steps, here is my code: client.once('ready', () => { set

My Discord bot won't reply back with the Embed I made

I don't know much about coding myself but I followed someone's video (specifically this video:https://www.youtube.com/watch?v=tQjpv0OO5pA) on how to make embeds

Cannot read properties of undefined (reading 'execute) when i using js

hello I have a discord bot and I want to create reaction roles but when I execute It doesn't work ? please any body help me this is ap prt of the code put it on

Sending a message into all servers where bot is

How do I send one message per guild that my bot is in? It doesn't matter which channel it will be, but I don't know how to code it. I finally came up with that