import for staff ping setting

This commit is contained in:
Erik 2022-05-10 00:09:47 +03:00
parent 61015c0e3a
commit d321886f17
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 9 additions and 1 deletions

View File

@ -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;
}

View File

@ -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,