35 lines
777 B
JavaScript
35 lines
777 B
JavaScript
const { Infraction } = require('../interfaces/');
|
|
|
|
class NoteInfraction extends Infraction {
|
|
|
|
static type = 'NOTE';
|
|
|
|
constructor(client, opts = {}) {
|
|
|
|
super(client, {
|
|
targetType: 'USER',
|
|
type: opts.type,
|
|
executor: opts.executor.user,
|
|
target: opts.target.user,
|
|
reason: opts.reason,
|
|
guild: opts.guild,
|
|
channel: opts.channel,
|
|
silent: opts.silent,
|
|
points: opts.points,
|
|
expiration: opts.expiration,
|
|
data: opts.data
|
|
});
|
|
|
|
this.client = client;
|
|
this.member = opts.target;
|
|
|
|
}
|
|
|
|
async execute() {
|
|
await this.handle();
|
|
return this._succeed();
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = NoteInfraction; |