aboutsummaryrefslogtreecommitdiff
path: root/src/commands/utilities/highlight-!.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/utilities/highlight-!.ts')
-rw-r--r--src/commands/utilities/highlight-!.ts5
1 files changed, 1 insertions, 4 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 })));