From 4a5ff17c72a315e691cfd1ef053bae865fab2658 Mon Sep 17 00:00:00 2001 From: Mittelblut9 Date: Mon, 13 Nov 2023 18:36:10 +0100 Subject: [PATCH] style: prettier changes --- bot/events/autoModerationRuleCreate.js | 16 ++++++++-------- bot/events/autoModerationRuleUpdate.js | 16 ++++++++-------- src/slash_commands/admin/antiinsults.js | 16 ++++++++-------- src/slash_commands/admin/modroles.js | 8 ++++---- utils/classes/BanappealLogic.js | 4 ++-- utils/classes/Notifications/Notifications.js | 2 +- utils/classes/levelsystemAPI.js | 4 ++-- utils/classes/scam.js | 8 ++++---- .../publicResponses/publicModResponses.js | 16 ++++++++-------- 9 files changed, 45 insertions(+), 45 deletions(-) diff --git a/bot/events/autoModerationRuleCreate.js b/bot/events/autoModerationRuleCreate.js index c943fc4b1..8ef88ce49 100644 --- a/bot/events/autoModerationRuleCreate.js +++ b/bot/events/autoModerationRuleCreate.js @@ -26,18 +26,18 @@ module.exports.autoModerationRuleCreate = async (bot, rule) => { action.type === 1 ? 'Delete Message' : action.type === 2 - ? 'Send alert to' - : action.type === 3 - ? 'Timeout user' - : 'none', + ? 'Send alert to' + : action.type === 3 + ? 'Timeout user' + : 'none', value: action.type === 1 ? 'True' : action.type === 2 - ? `<#${action.metadata.channelId}>` - : action.type === 3 - ? `${action.metadata.durationSeconds} seconds` - : 'none', + ? `<#${action.metadata.channelId}>` + : action.type === 3 + ? `${action.metadata.durationSeconds} seconds` + : 'none', }; }); diff --git a/bot/events/autoModerationRuleUpdate.js b/bot/events/autoModerationRuleUpdate.js index 78f3e89d4..5ed3b761b 100644 --- a/bot/events/autoModerationRuleUpdate.js +++ b/bot/events/autoModerationRuleUpdate.js @@ -16,18 +16,18 @@ module.exports.autoModerationRuleUpdate = async (bot, oldRule, newRule) => { action.type === 1 ? 'Delete Message' : action.type === 2 - ? 'Send alert to' - : action.type === 3 - ? 'Timeout user' - : 'none', + ? 'Send alert to' + : action.type === 3 + ? 'Timeout user' + : 'none', value: action.type === 1 ? 'True' : action.type === 2 - ? `<#${action.metadata.channelId}>` - : action.type === 3 - ? `${action.metadata.durationSeconds} seconds` - : 'none', + ? `<#${action.metadata.channelId}>` + : action.type === 3 + ? `${action.metadata.durationSeconds} seconds` + : 'none', }; }); diff --git a/src/slash_commands/admin/antiinsults.js b/src/slash_commands/admin/antiinsults.js index eb11a1558..27f8aa37e 100644 --- a/src/slash_commands/admin/antiinsults.js +++ b/src/slash_commands/admin/antiinsults.js @@ -81,14 +81,14 @@ module.exports.run = async ({ main_interaction, bot }) => { main_interaction.guild.id ) : setting.enabled - ? global.t.trans( - ['success.admin.automod.antiinsults.enabled', ...replyData], - main_interaction.guild.id - ) - : global.t.trans( - ['success.admin.automod.antiinsults.disabled', ...replyData], - main_interaction.guild.id - ); + ? global.t.trans( + ['success.admin.automod.antiinsults.enabled', ...replyData], + main_interaction.guild.id + ) + : global.t.trans( + ['success.admin.automod.antiinsults.disabled', ...replyData], + main_interaction.guild.id + ); main_interaction .followUp({ diff --git a/src/slash_commands/admin/modroles.js b/src/slash_commands/admin/modroles.js index be35f0f3e..39eaf4d5d 100644 --- a/src/slash_commands/admin/modroles.js +++ b/src/slash_commands/admin/modroles.js @@ -36,10 +36,10 @@ module.exports.run = async ({ main_interaction, bot }) => { ? dbEntity.isAdmin ? 'Admin' : dbEntity.isMod - ? 'Moderator' - : dbEntity.isHelper - ? 'Helper' - : 'Not set yet' + ? 'Moderator' + : dbEntity.isHelper + ? 'Helper' + : 'Not set yet' : 'Not set yet' }**` ); diff --git a/utils/classes/BanappealLogic.js b/utils/classes/BanappealLogic.js index 1975f12a8..b773ebebe 100644 --- a/utils/classes/BanappealLogic.js +++ b/utils/classes/BanappealLogic.js @@ -217,8 +217,8 @@ module.exports = class BanappealLogic { err.code === 10026 ? 'The user is not banned.' : err.code === 50013 - ? 'The bot does not have permissions to unban the user.' - : 'There was an error while trying to unban the user.' + ? 'The bot does not have permissions to unban the user.' + : 'There was an error while trying to unban the user.' }`, ephemeral: true, }) diff --git a/utils/classes/Notifications/Notifications.js b/utils/classes/Notifications/Notifications.js index 9c94363fa..0108b5525 100644 --- a/utils/classes/Notifications/Notifications.js +++ b/utils/classes/Notifications/Notifications.js @@ -51,7 +51,7 @@ module.exports = class Notification { updateNotification({ message, embed = null }) { return new Promise((resolve, reject) => { if (!message && !embed) return reject('No message, content or embed provided.'); - if (!message instanceof Message) { + if ((!message) instanceof Message) { return reject('Message is not a valid message object.'); } diff --git a/utils/classes/levelsystemAPI.js b/utils/classes/levelsystemAPI.js index e684324c6..84e97c272 100644 --- a/utils/classes/levelsystemAPI.js +++ b/utils/classes/levelsystemAPI.js @@ -473,8 +473,8 @@ class Levelsystem { type === 'dm' ? 'type to **DM**' : type === 'disable' - ? 'type to **disabled**' - : 'channel to ' + channel + ? 'type to **disabled**' + : 'channel to ' + channel }` ); }) diff --git a/utils/classes/scam.js b/utils/classes/scam.js index d49f4ba24..e482eac58 100644 --- a/utils/classes/scam.js +++ b/utils/classes/scam.js @@ -420,8 +420,8 @@ module.exports.manageScam = async ({ main_interaction }) => { request.request_type == 'ADD' ? `✅ This request has been added to the scam list by ${main_interaction.user}` : request.request_type == 'DELETE' - ? `✅ This request has been deleted from the scam list by ${main_interaction.user}` - : `✅ This Guild has been added to the blacklist by ${main_interaction.user}`, + ? `✅ This request has been deleted from the scam list by ${main_interaction.user}` + : `✅ This Guild has been added to the blacklist by ${main_interaction.user}`, components: [], }).catch((err) => {}); }); @@ -433,8 +433,8 @@ module.exports.manageScam = async ({ main_interaction }) => { request.request_type == 'ADD' ? `✅ Your request got accepted.` : request.request_type == 'DELETE' - ? `❌ Your request got declined.` - : `❌ Your request got declined.`, + ? `❌ Your request got declined.` + : `❌ Your request got declined.`, }) .catch((err) => {}); } diff --git a/utils/functions/publicResponses/publicModResponses.js b/utils/functions/publicResponses/publicModResponses.js index 2b52a0f34..b7275dbca 100644 --- a/utils/functions/publicResponses/publicModResponses.js +++ b/utils/functions/publicResponses/publicModResponses.js @@ -99,10 +99,10 @@ module.exports.publicInfractionResponse = async ({ inf.mute === 1 ? `${'Mute'}` : inf.kick === 1 - ? `${'Kick'}` - : inf.warn === 1 - ? `${'Warn'}` - : `${'Ban'}` + ? `${'Kick'}` + : inf.warn === 1 + ? `${'Warn'}` + : `${'Ban'}` }`, value: `Reason: ${inf.reason} ${ inf.warn === 0 @@ -116,10 +116,10 @@ module.exports.publicInfractionResponse = async ({ timeZone: 'UTC', }) : inf.mute === 1 - ? 'Permanent' - : inf.ban === 1 - ? 'Permanent' - : '' + ? 'Permanent' + : inf.ban === 1 + ? 'Permanent' + : '' }**` : '' }`,