-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config(env関連) -> env config(discord関連) -> discord
- Loading branch information
Showing
3 changed files
with
33 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { | ||
ApplicationCommandOptionType, | ||
ApplicationCommandType, | ||
} from "discord-api-types/v10"; | ||
import type { DiscordCommand } from "~/types"; | ||
|
||
/** | ||
* Discord のコマンド一覧 | ||
* * `/roomy today` 今日の教室を確認する | ||
* * `/roomy help` 使い方・コマンド一覧を表示する | ||
*/ | ||
export const DISCORD_COMMANDS = [ | ||
{ | ||
name: "roomy", | ||
description: "予約している教室を確認する", | ||
type: ApplicationCommandType.ChatInput, | ||
options: [ | ||
{ | ||
name: "today", | ||
description: "今日の教室", | ||
type: ApplicationCommandOptionType.Subcommand, | ||
}, | ||
{ | ||
name: "help", | ||
description: "使い方・コマンド一覧", | ||
type: ApplicationCommandOptionType.Subcommand, | ||
}, | ||
], | ||
}, | ||
] as const satisfies DiscordCommand[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from "./config"; | ||
export * from "./discord"; | ||
export * from "./env"; |