forked from Galactic/galactic-bot
import for staff ping setting
This commit is contained in:
parent
61015c0e3a
commit
d321886f17
@ -35,7 +35,7 @@ class SlashCommand extends Command {
|
||||
|
||||
this.type = Object.keys(CommandsConstant.ApplicationCommandTypes).includes(options.type) ? options.type : 'CHAT_INPUT';
|
||||
// this.options = options.options || [];
|
||||
this.defaultPermission = options.defaultPermission || true;
|
||||
// this.defaultPermission = options.defaultPermission || true;
|
||||
|
||||
}
|
||||
|
||||
|
@ -212,6 +212,14 @@ class SettingsMigrator {
|
||||
userlogs, grantable, privatelog, linkfilter, autorole, welcomer, prefix, protection } = result;
|
||||
const settings = this.client.defaultConfig('GUILD');
|
||||
|
||||
if (staffRole || staffRole) {
|
||||
settings.staff = {
|
||||
rule: staffRule,
|
||||
role: staffRole,
|
||||
enabled: Boolean(staffRole)
|
||||
};
|
||||
}
|
||||
|
||||
if (moderation || modlogs)
|
||||
settings.moderation = {
|
||||
channel: result.modlogs || null,
|
||||
|
Loading…
Reference in New Issue
Block a user