galactic-bot/structure/client/components/settings/moderation/DmInfraction.js

47 lines
1.1 KiB
JavaScript
Raw Normal View History

2020-06-04 19:59:09 +02:00
const { Setting } = require('../../../../interfaces/');
class DmInfractionSetting extends Setting {
constructor(client) {
super(client, {
name: 'dmInfraction',
module: 'moderation',
aliases: [
'directMessageInfraction',
'privateLog',
'dmLog'// idk...
],
default: {
dmInfraction: {
enabled: true,
onRemoved: true, //only Kick, Softban, and Ban
custom: {
default: "You were **{infraction}** on the server `{server}`, your infraction details are below."
//BAN: etc
}
}
}
});
this.client = client;
}
async handle(message, args) {
//to do
return {
msg: 'fuck off',
error: false
};
}
async fields(guild) {
const setting = guild._settings[this.index];
}
}
module.exports = DmInfractionSetting;