-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.ts
75 lines (67 loc) · 2.25 KB
/
app.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import { discord } from "../../deps.ts";
export const BOARDD = "boardd";
export const BOARDD_DESCRIPTION = "Manage acmcsuf.com board data.";
export const BOARDD_FULL_NAME = "full_name";
export const BOARDD_FULL_NAME_DESCRIPTION =
"The full name of the board member.";
export const BOARDD_PICTURE = "picture";
export const BOARDD_PICTURE_DESCRIPTION =
"The URL of the board member's picture.";
export const BOARDD_GITHUB_TAG = "github_tag";
export const BOARDD_GITHUB_TAG_DESCRIPTION =
"The GitHub tag of the board member.";
export const BOARDD_DISCORD_TAG = "discord_tag";
export const BOARDD_DISCORD_TAG_DESCRIPTION =
"The Discord tag of the board member.";
export const BOARDD_LINKEDIN_TAG = "linkedin_tag";
export const BOARDD_LINKEDIN_TAG_DESCRIPTION =
"The LinkedIn tag of the board member.";
export const BOARDD_BOARD_MEMBER = "board_member";
export const BOARDD_BOARD_MEMBER_DESCRIPTION =
"The targeted board member to update by Discord username.";
/**
* APP_BOARDD is the top-level command for the Boardd Application Command.
*/
export const APP_BOARDD: discord.RESTPostAPIApplicationCommandsJSONBody = {
type: discord.ApplicationCommandType.ChatInput,
name: BOARDD,
description: BOARDD_DESCRIPTION,
options: [
{
type: discord.ApplicationCommandOptionType.String,
name: BOARDD_FULL_NAME,
description: BOARDD_FULL_NAME_DESCRIPTION,
required: false,
},
{
type: discord.ApplicationCommandOptionType.String,
name: BOARDD_PICTURE,
description: BOARDD_PICTURE_DESCRIPTION,
required: false,
},
{
type: discord.ApplicationCommandOptionType.String,
name: BOARDD_GITHUB_TAG,
description: BOARDD_GITHUB_TAG_DESCRIPTION,
required: false,
},
{
type: discord.ApplicationCommandOptionType.String,
name: BOARDD_DISCORD_TAG,
description: BOARDD_DISCORD_TAG_DESCRIPTION,
required: false,
},
{
type: discord.ApplicationCommandOptionType.String,
name: BOARDD_LINKEDIN_TAG,
description: BOARDD_LINKEDIN_TAG_DESCRIPTION,
required: false,
},
{
type: discord.ApplicationCommandOptionType.String,
name: BOARDD_BOARD_MEMBER,
description: BOARDD_BOARD_MEMBER_DESCRIPTION,
required: false,
},
],
};