From 5174fcb8bb403586ba470bf0596d1cc9b3d22cba Mon Sep 17 00:00:00 2001 From: tubuanha Date: Wed, 16 Mar 2022 05:31:25 +0000 Subject: [PATCH] Format --- src/Commands/progress.ts | 5 +---- src/Commands/rename.ts | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Commands/progress.ts b/src/Commands/progress.ts index 6ada058..2beb6dd 100644 --- a/src/Commands/progress.ts +++ b/src/Commands/progress.ts @@ -6,10 +6,7 @@ module.exports = { .setName('progress') .setDescription('メンバーの進行状況を検索します。') .addUserOption((option) => - option - .setName('user') - .setDescription('進行状況を検索するユーザー') - .setRequired(true) + option.setName('user').setDescription('進行状況を検索するユーザー').setRequired(true) ), async execute(interaction: CommandInteraction) { const userId = interaction.options.getUser('user')?.id; diff --git a/src/Commands/rename.ts b/src/Commands/rename.ts index 958a6e5..fe4cab7 100644 --- a/src/Commands/rename.ts +++ b/src/Commands/rename.ts @@ -8,10 +8,7 @@ module.exports = { .setName('rename') .setDescription('スレッドのタイトルを変更します。') .addStringOption((option) => - option - .setName('new-title') - .setDescription('スレッドの新しいタイトル') - .setRequired(true) + option.setName('new-title').setDescription('スレッドの新しいタイトル').setRequired(true) ), async execute(interaction: CommandInteraction) { const newTitle: any = interaction.options.getString('new-title');