I am trying to create an object constructor in a JSON file for Discord. The large constructor is named "person" and I want the objects inside of that to be the Discord Message Author's name, but I can't name the variable "msg.author.username". What should I do?
function person(name, violations, role) {
this.name = name;
this.violations = violations;
this.highestRole = role;
}
var (msg.author.username) = new person(msg.author.username, 1,
msg.member.highestRole.name)