Skip to content

Commit

Permalink
ニックネーム優先の設定をJoinコマンドとGuildSettingsに表示
Browse files Browse the repository at this point in the history
  • Loading branch information
kosugikun committed Aug 15, 2023
1 parent 1b77bd7 commit 07e9091
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ class GuildSettings(private val bot: Bot) : AdminCommand() {
if (settings.isJoinAndLeaveRead()) "有効" else "無効",
false
)
.addField(
"ニックネーム優先:",
if (settings.isReadNic()) "有効" else "無効",
false
)
.addField("読み上げるチャンネル:", text, false)
.addField("読み上げの主音量:", settings.volume.toString(), false)
event.reply(builder.build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ class JoinCmd(private var bot: Bot) : SlashCommand() {
builder.addField(
"設定",
"ユーザー名読み上げ:${if (settings.isReadName()) "有効" else "無効"}\n" +
"参加、退出読み上げ:${if (settings.isJoinAndLeaveRead()) "有効" else "無効"}", true
"参加、退出読み上げ:${if (settings.isJoinAndLeaveRead()) "有効" else "無効"}\n" +
"ニックネーム優先:${if (settings.isReadNic()) "有効" else "無効"}", true
)
event.hook.sendMessageEmbeds(builder.build()).queue()
ReadChannel.setChannel(event.guild!!.idLong, event.textChannel.idLong)
Expand Down

0 comments on commit 07e9091

Please sign in to comment.