diff --git a/src/main/java/dev/cosgy/textToSpeak/commands/admin/SettcCmd.kt b/src/main/java/dev/cosgy/textToSpeak/commands/admin/SettcCmd.kt index 00e6d0b..81bc898 100644 --- a/src/main/java/dev/cosgy/textToSpeak/commands/admin/SettcCmd.kt +++ b/src/main/java/dev/cosgy/textToSpeak/commands/admin/SettcCmd.kt @@ -80,7 +80,7 @@ class SettcCmd(bot: Bot?) : AdminCommand() { val channelId = event.getOption("channel")!!.asLong val tc = event.guild!!.getTextChannelById(channelId) s.setTextChannel(tc) - event.reply( "${event.client.success}読み上げるチャンネルを<#${tc!!.id}>に設定しました。").queue() + event.reply("${event.client.success}読み上げるチャンネルを<#${tc!!.id}>に設定しました。").queue() } } @@ -92,7 +92,7 @@ class SettcCmd(bot: Bot?) : AdminCommand() { override fun execute(event: SlashCommandEvent) { if (!checkAdminPermission(event.client, event)) { - event.reply( "${event.client.warning}権限がないため実行できません。").queue() + event.reply("${event.client.warning}権限がないため実行できません。").queue() return } val s = event.client.getSettingsFor(event.guild) diff --git a/src/main/java/dev/cosgy/textToSpeak/commands/general/JoinCmd.kt b/src/main/java/dev/cosgy/textToSpeak/commands/general/JoinCmd.kt index 92cebce..c95366b 100644 --- a/src/main/java/dev/cosgy/textToSpeak/commands/general/JoinCmd.kt +++ b/src/main/java/dev/cosgy/textToSpeak/commands/general/JoinCmd.kt @@ -60,7 +60,7 @@ class JoinCmd(private var bot: Bot) : SlashCommand() { builder.addField( "設定", "ユーザー名読み上げ:${if (settings.isReadName()) "有効" else "無効"}\n" + - "参加、退出読み上げ:${if (settings.isJoinAndLeaveRead()) "有効" else "無効"}", true + "参加、退出読み上げ:${if (settings.isJoinAndLeaveRead()) "有効" else "無効"}", true ) event.hook.sendMessageEmbeds(builder.build()).queue() ReadChannel.setChannel(event.guild!!.idLong, event.textChannel.idLong)