diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-11 15:39:12 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-11 15:39:12 -0400 |
commit | a2e8aebe4134bedf1052d7a92db8eed6b58b964a (patch) | |
tree | cf9c70cf867cf8d09fccce7b29508adecbcf3d3f /src | |
parent | ddb48e8e98c4fd9b6d86d8024db559369bc5f201 (diff) | |
download | tanzanite-a2e8aebe4134bedf1052d7a92db8eed6b58b964a.tar.gz tanzanite-a2e8aebe4134bedf1052d7a92db8eed6b58b964a.tar.bz2 tanzanite-a2e8aebe4134bedf1052d7a92db8eed6b58b964a.zip |
put some things on one line
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/utilities/highlight-!.ts | 5 | ||||
-rw-r--r-- | src/commands/utilities/highlight-block.ts | 5 | ||||
-rw-r--r-- | src/commands/utilities/highlight-show.ts | 5 | ||||
-rw-r--r-- | 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; |