-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommands.js
45 lines (40 loc) · 1.12 KB
/
commands.js
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
/**
* Share commands metadata from a common spot to be used for both runtime
* and registration.
*/
import { ApplicationCommandOptionType } from 'discord-api-types/v10';
export const REVIVE_COMMAND = {
name: 'revive',
description:
'Revival ping command, executable by members of the Promotions Team',
};
export const TEST_COMMAND = {
name: 'test',
description: 'This command serves no purpose.',
};
export const PING_COMMAND = {
name: 'ping',
description: 'Check latency stats of the bot.',
integration_types: [0, 1],
contexts: [0, 1, 2],
};
export const LOOKUP_COMMAND = {
name: 'lookup',
description: 'Get detailed information on a standard!',
integration_types: [0, 1],
contexts: [0, 1, 2],
options: [
{
type: ApplicationCommandOptionType.Integer,
name: 'standard_number',
description: 'Standard number to look up information for.',
required: true,
},
{
type: ApplicationCommandOptionType.Integer,
name: 'exam_year',
description:
'(If external) Year to link paper for - if unspecified defaults to paper from two years ago.',
},
],
};