galactic-bot/structure/moderation/infractions/Warn.js

34 lines
714 B
JavaScript
Raw Normal View History

const { Infraction } = require('../interfaces/');
class Warn extends Infraction {
constructor(client, opts = {}) {
super(client, {
type: 'WARN',
targetType: 'user',
executor: opts.executor.user,
target: opts.target.user,
reason: opts.reason || 'N/A',
guild: opts.guild,
channel: opts.channel,
color: 0xe8d54e,
dictionary: {
past: 'warned',
present: 'warn'
}
});
this.client = client;
this.member = opts.target;
}
async handle() {
//Handle anything guild-related.
}
}
module.exports = Warn;