diff --git a/src/commands/confessmod.ts b/src/commands/confessmod.ts index 20a7246..2e69839 100644 --- a/src/commands/confessmod.ts +++ b/src/commands/confessmod.ts @@ -140,7 +140,6 @@ export async function execute(interaction: ChatInputCommandInteraction) { let idHead = "\n" + heading("Confessions:", HeadingLevel.Two); let idCount = false; for (const member of bannedMembers) { - if (member.method === BanReason.ByUser) { userHead += "\n" + `<@${member.user}>`; userCount = true; @@ -155,11 +154,9 @@ export async function execute(interaction: ChatInputCommandInteraction) { if (userCount && idCount) { return userHead + idHead; } else { - return userCount - ? userHead - : idHead; + return userCount ? userHead : idHead; } - } + }; try { return interaction.reply({ diff --git a/src/storeman/client.ts b/src/storeman/client.ts index 1e883dc..900b018 100644 --- a/src/storeman/client.ts +++ b/src/storeman/client.ts @@ -287,10 +287,11 @@ export class StoreMan { for (const guild of this.data) { if (guild.id === guildId) { // Only add the user to the ban list if they aren't banned already - !this.isBannedByUser(guildId, userId) && guild.settings.bans.push({ - user: userId, - method: BanReason.ByUser - }); + !this.isBannedByUser(guildId, userId) && + guild.settings.bans.push({ + user: userId, + method: BanReason.ByUser + }); this.saveFile(); return true;