-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathcommands.ts
73 lines (69 loc) · 1.73 KB
/
commands.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
import {
ApplicationCommandOptionType,
ApplicationCommandType,
ApplicationIntegrationType,
InteractionContextType,
} from "discord-api-types/v10";
export const SLAP_COMMAND = {
name: "slap",
type: ApplicationCommandType.ChatInput,
description: "Sometimes you gotta slap a person with a large trout",
options: [
{
name: "user",
description: "The user to slap",
type: ApplicationCommandOptionType.User,
required: true,
},
],
contexts: [
InteractionContextType.Guild,
InteractionContextType.BotDM,
InteractionContextType.PrivateChannel,
],
integration_types: [
ApplicationIntegrationType.GuildInstall,
ApplicationIntegrationType.UserInstall,
],
};
export const SLAP_COMMAND_CONTEXT_MENU = {
name: "Slap",
type: ApplicationCommandType.User,
contexts: [
InteractionContextType.Guild,
InteractionContextType.BotDM,
InteractionContextType.PrivateChannel,
],
integration_types: [
ApplicationIntegrationType.GuildInstall,
ApplicationIntegrationType.UserInstall,
],
};
export const INVITE_COMMAND = {
name: "invite",
type: ApplicationCommandType.ChatInput,
description: "Get an invite link to add the bot",
contexts: [
InteractionContextType.Guild,
InteractionContextType.BotDM,
InteractionContextType.PrivateChannel,
],
integration_types: [
ApplicationIntegrationType.GuildInstall,
ApplicationIntegrationType.UserInstall,
],
};
export const SUPPORT_COMMAND = {
name: "support",
type: ApplicationCommandType.ChatInput,
description: "Like this bot? Support me!",
contexts: [
InteractionContextType.Guild,
InteractionContextType.BotDM,
InteractionContextType.PrivateChannel,
],
integration_types: [
ApplicationIntegrationType.GuildInstall,
ApplicationIntegrationType.UserInstall,
],
};