Hi I need help how do I make afk command in discord.js v13.16.0 or v13.16.x

Hi as I need help I'm new to discord.js How do I make afk command in discord.js Here's my code
const { MessageEmbed, Collection } = require("discord.js");

module.exports = {
name: 'afk',
aliases: [],
utilisation: '{prefix}afk',

execute(client, message, args) {


},
};
const { MessageEmbed, Collection } = require("discord.js");

module.exports = {
name: 'afk',
aliases: [],
utilisation: '{prefix}afk',

execute(client, message, args) {


},
};
10 Replies
d.js toolkit
d.js toolkitā€¢13mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - āœ… Marked as resolved by staff
-ĶŸĶŸĶž š’šć€† spBripyalt
Node v16.13.2 npm
treble/luna
treble/lunaā€¢13mo ago
what even is an afk command supposed to do
-ĶŸĶŸĶž š’šć€† spBripyalt
uh like I do ?afk and if someone mention me the bot has to say that I'm afk but if I send any message and was afk it removes afk
treble/luna
treble/lunaā€¢13mo ago
then you would have to store the users that are afk somewhere, probably in a db if you want it to be persistent and check <Message>.mentions if it contains the user
-ĶŸĶŸĶž š’šć€† spBripyalt
how Idk I'm new can you give me code? you can put in it credit I won I won I won't remove I promise
treble/luna
treble/lunaā€¢13mo ago
No #rules 3
-ĶŸĶŸĶž š’šć€† spBripyalt
wdym no then how can I make the command bro I tried every server none helped šŸ˜¦ šŸ˜­šŸ˜­
chewie
chewieā€¢13mo ago
because you are required to have a solid understanding of javascript, and to think a bit for yourself, not having to hold your hand everyt step of the way.
Want results from more Discord servers?
Add your server