Discord bot - warn command (no command handler)

hello, i would like to get some help with my discord bot code.
i’m making a bot, a moderation one, and now i need a warn command.
every tutorial i see on youtube is using a command handler, and i don’t have one.
could someoen please send me a warn command for my discord.js(v12) bot?
i want it to be like
F!warn [user] [reason]
thank you,


While it is okay to ask for help related to how code works and and what code to use, we refrain from spoon-feeding code. You can refer to the Discord.js (https://discord.js.org) documentation or the Discord.js Guide (https://discordjs.guide) and both of them can help you in creating the warn command.