From a2e8aebe4134bedf1052d7a92db8eed6b58b964a Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sat, 11 Jun 2022 15:39:12 -0400 Subject: put some things on one line --- src/commands/utilities/highlight-!.ts | 5 +---- src/commands/utilities/highlight-block.ts | 5 +---- src/commands/utilities/highlight-show.ts | 5 +---- src/commands/utilities/highlight-unblock.ts | 5 +---- 4 files changed, 4 insertions(+), 16 deletions(-) diff --git a/src/commands/utilities/highlight-!.ts b/src/commands/utilities/highlight-!.ts index 2b18198..9aeb9ec 100644 --- a/src/commands/utilities/highlight-!.ts +++ b/src/commands/utilities/highlight-!.ts @@ -152,10 +152,7 @@ export default class HighlightCommand extends BushCommand { switch (interaction.options.getSubcommand(true)) { case 'word': { const { words } = (await Highlight.findOne({ - where: { - guild: interaction.guild.id, - user: interaction.user.id - } + where: { guild: interaction.guild.id, user: interaction.user.id } })) ?? { words: [] as HighlightWord[] }; if (!words.length) return interaction.respond([]); return interaction.respond(words.map((w) => ({ name: w.word, value: w.word }))); diff --git a/src/commands/utilities/highlight-block.ts b/src/commands/utilities/highlight-block.ts index efc5437..4ad1a86 100644 --- a/src/commands/utilities/highlight-block.ts +++ b/src/commands/utilities/highlight-block.ts @@ -49,10 +49,7 @@ export default class HighlightBlockCommand extends BushCommand { return await message.util.reply(`${util.emojis.error} You can only block text-based channels.`); const [highlight] = await Highlight.findOrCreate({ - where: { - guild: message.guild.id, - user: message.author.id - } + where: { guild: message.guild.id, user: message.author.id } }); const key = `blacklisted${args.target instanceof Channel ? 'Channels' : 'Users'}` as const; diff --git a/src/commands/utilities/highlight-show.ts b/src/commands/utilities/highlight-show.ts index 37ed6f6..d0a91e6 100644 --- a/src/commands/utilities/highlight-show.ts +++ b/src/commands/utilities/highlight-show.ts @@ -20,10 +20,7 @@ export default class HighlightShowCommand extends BushCommand { assert(message.inGuild()); const [highlight] = await Highlight.findOrCreate({ - where: { - guild: message.guild.id, - user: message.author.id - } + where: { guild: message.guild.id, user: message.author.id } }); void client.highlightManager.syncCache(); diff --git a/src/commands/utilities/highlight-unblock.ts b/src/commands/utilities/highlight-unblock.ts index 9413601..c437e6f 100644 --- a/src/commands/utilities/highlight-unblock.ts +++ b/src/commands/utilities/highlight-unblock.ts @@ -44,10 +44,7 @@ export default class HighlightUnblockCommand extends BushCommand { return await message.util.reply(`${util.emojis.error} You can only unblock text-based channels.`); const [highlight] = await Highlight.findOrCreate({ - where: { - guild: message.guild.id, - user: message.author.id - } + where: { guild: message.guild.id, user: message.author.id } }); const key = `blacklisted${args.target instanceof Channel ? 'Channels' : 'Users'}` as const; -- cgit