When someone use a command of my bot, like: /ban Player123 ReasonXYZ
. I want the User who got banned with the reason and the user who banned Player123 is in a file named "banlist.json"
Sorry for bad english
const banlogmsg = message.author.tag + ' | ' + (banreason) + ' | ' (bannedplayer)
fs.writeFileSync('./banlog.json', JSON.stringify(banlogmsg))