Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@ import {
} from "discord.js";

const commands: RESTPostAPIApplicationCommandsJSONBody[] = [
new SlashCommandBuilder().setName("밥").setDescription("현재 시간대 급식을 확인합니다").toJSON(),
new SlashCommandBuilder()
.setName("밥")
.setDescription("현재 시간대 급식을 확인합니다")
.addStringOption((opt) =>
opt
.setName("설정")
.setDescription("급식 기능 on/off (관리자 전용)")
.setRequired(false)
.addChoices({ name: "on", value: "on" }, { name: "off", value: "off" }),
)
.toJSON(),

new SlashCommandBuilder()
.setName("급식")
Expand Down
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const HELP_EMBED = new EmbedBuilder()
"`!아침` / `!점심` / `!저녁` — 오늘 해당 끼니",
"`!오늘아침` / `!오늘점심` / `!오늘저녁`",
"`!내일아침` / `!내일점심` / `!내일저녁`",
"`!밥 on` / `!밥 off` / `/밥 설정:on|off` — 급식 기능 켜기/끄기 (관리자)",
].join("\n"),
},
{
Expand Down
Loading
Loading