Skip to content
Advertisement

Tag: discord

Discord.js v12 Ban Command

I made a ban command for my discord.js v12 bot. However whenever I run the command I get an error. Here is my code: This is the error I get whenever I run the command I could’nt understand how to correct the problem in the code. I’m a bit new to coding. Can you please help me out!. Thanks in

Discord bot only replying to initator

I am starting with a new Discord bot using discord.js. I am still learning things but am curious if it is possible to send a reply to only the initiator, not the channel. Channel.send and message.reply are both public to all. Answer To dm the person who said the message do To send it to someone else,

What does Message.fetch() actually do in discord.js

According to the Message#fetch() docs, this function simply fetches the message it was called on. However, I’m not sure in which circumstance it would ever make sense to use this function. According to the screenshot above, this method returns Promise<Message>. I’m confused, because why would you need to fetch a message you already have access to? For example: So, what’s

Advertisement