From 03ebe62f048d1dcb3353a1f153f134c3bbce94dc Mon Sep 17 00:00:00 2001 From: Navy Date: Sat, 8 May 2021 20:42:30 +0300 Subject: [PATCH] reorganise some settings --- .../settings/{moderation => administration}/Protection.js | 4 ++-- .../settings/{moderation => administration}/Silent.js | 4 ++-- .../settings/{moderation => logging}/DmInfraction.js | 4 ++-- .../components/settings/{moderation => logging}/MemberLogs.js | 4 ++-- .../components/settings/{moderation => logging}/MessageLog.js | 2 +- .../settings/{moderation => logging}/ModerationLog.js | 4 ++-- .../settings/{moderation => logging}/NicknameLogs.js | 4 ++-- .../components/settings/{moderation => logging}/VoiceLogs.js | 4 ++-- .../client/components/settings/moderation/InviteFilter.js | 2 +- 9 files changed, 16 insertions(+), 16 deletions(-) rename structure/client/components/settings/{moderation => administration}/Protection.js (97%) rename structure/client/components/settings/{moderation => administration}/Silent.js (91%) rename structure/client/components/settings/{moderation => logging}/DmInfraction.js (96%) rename structure/client/components/settings/{moderation => logging}/MemberLogs.js (98%) rename structure/client/components/settings/{moderation => logging}/MessageLog.js (99%) rename structure/client/components/settings/{moderation => logging}/ModerationLog.js (98%) rename structure/client/components/settings/{moderation => logging}/NicknameLogs.js (97%) rename structure/client/components/settings/{moderation => logging}/VoiceLogs.js (97%) diff --git a/structure/client/components/settings/moderation/Protection.js b/structure/client/components/settings/administration/Protection.js similarity index 97% rename from structure/client/components/settings/moderation/Protection.js rename to structure/client/components/settings/administration/Protection.js index 76236a1..c98645b 100644 --- a/structure/client/components/settings/moderation/Protection.js +++ b/structure/client/components/settings/administration/Protection.js @@ -1,4 +1,4 @@ -const { Setting } = require('../../../../interfaces/'); +const { Setting } = require('../../../../interfaces'); class ProtectionSetting extends Setting { @@ -6,7 +6,7 @@ class ProtectionSetting extends Setting { super(client, { name: 'protection', - module: 'moderation', + module: 'administration', usage: "<'type'|'add'|'remove'> <'role'|'position'|role..>", examples: [ 'protection type ', diff --git a/structure/client/components/settings/moderation/Silent.js b/structure/client/components/settings/administration/Silent.js similarity index 91% rename from structure/client/components/settings/moderation/Silent.js rename to structure/client/components/settings/administration/Silent.js index 9cc6d6a..2561634 100644 --- a/structure/client/components/settings/moderation/Silent.js +++ b/structure/client/components/settings/administration/Silent.js @@ -1,11 +1,11 @@ -const { Setting } = require('../../../../interfaces/'); +const { Setting } = require('../../../../interfaces'); class SilentSetting extends Setting { constructor(client) { super(client, { name: 'silent', - module: 'moderation', + module: 'administration', usage: "<'on'|'off'>", resolve: 'GUILD', default: { diff --git a/structure/client/components/settings/moderation/DmInfraction.js b/structure/client/components/settings/logging/DmInfraction.js similarity index 96% rename from structure/client/components/settings/moderation/DmInfraction.js rename to structure/client/components/settings/logging/DmInfraction.js index 7252b66..0f23457 100644 --- a/structure/client/components/settings/moderation/DmInfraction.js +++ b/structure/client/components/settings/logging/DmInfraction.js @@ -1,4 +1,4 @@ -const { Setting } = require('../../../../interfaces/'); +const { Setting } = require('../../../../interfaces'); const Constants = { Infractions: [ @@ -27,7 +27,7 @@ class DmInfractionSetting extends Setting { super(client, { name: 'dmInfraction', - module: 'moderation', + module: 'logging', aliases: [ 'directMessageInfraction', 'privateLog', diff --git a/structure/client/components/settings/moderation/MemberLogs.js b/structure/client/components/settings/logging/MemberLogs.js similarity index 98% rename from structure/client/components/settings/moderation/MemberLogs.js rename to structure/client/components/settings/logging/MemberLogs.js index b41adf6..d43d1f8 100644 --- a/structure/client/components/settings/moderation/MemberLogs.js +++ b/structure/client/components/settings/logging/MemberLogs.js @@ -1,4 +1,4 @@ -const { Setting } = require('../../../../interfaces/'); +const { Setting } = require('../../../../interfaces'); class MemberLogsSetting extends Setting { @@ -6,7 +6,7 @@ class MemberLogsSetting extends Setting { super(client, { name: 'memberLog', - module: 'moderation', + module: 'logging', aliases: [ 'memberLogs', 'joinLogs', diff --git a/structure/client/components/settings/moderation/MessageLog.js b/structure/client/components/settings/logging/MessageLog.js similarity index 99% rename from structure/client/components/settings/moderation/MessageLog.js rename to structure/client/components/settings/logging/MessageLog.js index 884f4f6..3f10a44 100644 --- a/structure/client/components/settings/moderation/MessageLog.js +++ b/structure/client/components/settings/logging/MessageLog.js @@ -6,7 +6,7 @@ class MessageLogsSetting extends Setting { super(client, { name: 'messageLog', - module: 'moderation', + module: 'logging', clientPermissions: ['MANAGE_WEBHOOKS'], aliases: [ 'chatLog', diff --git a/structure/client/components/settings/moderation/ModerationLog.js b/structure/client/components/settings/logging/ModerationLog.js similarity index 98% rename from structure/client/components/settings/moderation/ModerationLog.js rename to structure/client/components/settings/logging/ModerationLog.js index c705b27..5f39055 100644 --- a/structure/client/components/settings/moderation/ModerationLog.js +++ b/structure/client/components/settings/logging/ModerationLog.js @@ -1,4 +1,4 @@ -const { Setting } = require('../../../../interfaces/'); +const { Setting } = require('../../../../interfaces'); const { InfractionResolves } = require('../../../../../util/Constants.js'); class ModerationLogsSetting extends Setting { @@ -7,7 +7,7 @@ class ModerationLogsSetting extends Setting { super(client, { name: 'moderationLog', - module: 'moderation', + module: 'logging', aliases: [ 'moderationLogs', 'modLog', diff --git a/structure/client/components/settings/moderation/NicknameLogs.js b/structure/client/components/settings/logging/NicknameLogs.js similarity index 97% rename from structure/client/components/settings/moderation/NicknameLogs.js rename to structure/client/components/settings/logging/NicknameLogs.js index fa9f78e..6a9b37b 100644 --- a/structure/client/components/settings/moderation/NicknameLogs.js +++ b/structure/client/components/settings/logging/NicknameLogs.js @@ -1,4 +1,4 @@ -const { Setting } = require('../../../../interfaces/'); +const { Setting } = require('../../../../interfaces'); class NicknameLogs extends Setting { @@ -6,7 +6,7 @@ class NicknameLogs extends Setting { super(client, { name: 'nicknameLog', - module: 'moderation', + module: 'logging', aliases: [ 'nicknameLogs', 'nickLog', diff --git a/structure/client/components/settings/moderation/VoiceLogs.js b/structure/client/components/settings/logging/VoiceLogs.js similarity index 97% rename from structure/client/components/settings/moderation/VoiceLogs.js rename to structure/client/components/settings/logging/VoiceLogs.js index 31839ee..5922088 100644 --- a/structure/client/components/settings/moderation/VoiceLogs.js +++ b/structure/client/components/settings/logging/VoiceLogs.js @@ -1,4 +1,4 @@ -const { Setting } = require('../../../../interfaces/'); +const { Setting } = require('../../../../interfaces'); class VoiceLogSettings extends Setting { @@ -6,7 +6,7 @@ class VoiceLogSettings extends Setting { super(client, { name: 'voiceLog', - module: 'moderation', + module: 'logging', aliases: [ 'vcLog', 'vcLogs', diff --git a/structure/client/components/settings/moderation/InviteFilter.js b/structure/client/components/settings/moderation/InviteFilter.js index 3931b65..c0366cd 100644 --- a/structure/client/components/settings/moderation/InviteFilter.js +++ b/structure/client/components/settings/moderation/InviteFilter.js @@ -7,7 +7,7 @@ module.exports = class InviteFilter extends FilterSetting { super(client, { name: 'inviteFilter', module: 'moderation', - aliases: [], + aliases: ['invfilter'], resolve: 'GUILD', usage: '