diff --git a/src/structure/components/commands/moderation/Case.js b/src/structure/components/commands/moderation/Case.js index 1a1ee39..74a2ff5 100644 --- a/src/structure/components/commands/moderation/Case.js +++ b/src/structure/components/commands/moderation/Case.js @@ -90,7 +90,7 @@ class CaseCommand extends SlashCommand { if (guild._settings.modpoints.enabled) description += '\n' + invoker.format('COMMAND_CASE_MODPOINTS', { points: infraction.points, - expires: infraction.expiration + expires: `` }); description += '\n\n' + invoker.format('COMMAND_CASE_REASON', { reason: infraction.reason }); diff --git a/src/structure/components/commands/utility/Selfrole.js b/src/structure/components/commands/utility/Selfrole.js index cf7afbe..88a0334 100644 --- a/src/structure/components/commands/utility/Selfrole.js +++ b/src/structure/components/commands/utility/Selfrole.js @@ -38,8 +38,8 @@ class SelfroleCommand extends SlashCommand { const ownHighest = me.roles.highest; const memberRoles = member.roles.cache.map((r) => r.id); - const tooHigh = roles?.value.filter((r) => r.position > ownHighest.position); const invalid = roles?.value.filter((r) => !selfrole.roles.includes(r.id)) || []; + const tooHigh = roles?.value.filter((r) => r.position > ownHighest.position && !invalid.includes(r.id)) || []; const _roles = roles?.value.filter((r) => selfrole.roles.includes(r.id) && !tooHigh.some((x) => x.id === r.id)) || []; // console.log(tooHigh, invalid, _roles); let warning = ''; diff --git a/src/structure/components/settings/moderation/ModerationPoints.js b/src/structure/components/settings/moderation/ModerationPoints.js index 2c58112..f68a97b 100644 --- a/src/structure/components/settings/moderation/ModerationPoints.js +++ b/src/structure/components/settings/moderation/ModerationPoints.js @@ -128,6 +128,7 @@ class ModerationPoints extends Setting { ).join('\n'), inline: true }, + { name: ZeroWidthChar, value: ZeroWidthChar, inline: true }, { name: 'SETTING_MODPOINTS_ASSOCIATIONS', value: Object.entries(setting.associations).map(([type, pts]) => `**${type}**: \`${pts}\``).join('\n') || '**N/A**'