forked from Galactic/galactic-bot
34 lines
720 B
JavaScript
34 lines
720 B
JavaScript
|
const { Infraction } = require('../interfaces/');
|
||
|
|
||
|
class Warning 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 = Warning;
|