disgroove 1.3.2 → 1.3.3-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/Client.d.ts +234 -0
- package/dist/lib/Client.js +256 -0
- package/dist/lib/Client.js.map +1 -0
- package/dist/lib/constants.d.ts +1084 -0
- package/dist/lib/constants.js +1163 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/gateway/Shard.d.ts +25 -0
- package/dist/lib/gateway/Shard.js +522 -0
- package/dist/lib/gateway/Shard.js.map +1 -0
- package/dist/lib/gateway/ShardsManager.d.ts +5 -0
- package/dist/lib/gateway/ShardsManager.js +13 -0
- package/dist/lib/gateway/ShardsManager.js.map +1 -0
- package/dist/lib/gateway/index.d.ts +2 -0
- package/dist/lib/gateway/index.js +19 -0
- package/dist/lib/gateway/index.js.map +1 -0
- package/dist/lib/index.d.ts +7 -0
- package/dist/lib/index.js +24 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/rest/CDN.d.ts +21 -0
- package/dist/lib/rest/CDN.js +46 -0
- package/dist/lib/rest/CDN.js.map +1 -0
- package/dist/lib/rest/Endpoints.d.ts +94 -0
- package/dist/lib/rest/Endpoints.js +211 -0
- package/dist/lib/rest/Endpoints.js.map +1 -0
- package/dist/lib/rest/REST.d.ts +22 -0
- package/dist/lib/rest/REST.js +35 -0
- package/dist/lib/rest/REST.js.map +1 -0
- package/dist/lib/rest/RequestsManager.d.ts +17 -0
- package/dist/lib/rest/RequestsManager.js +124 -0
- package/dist/lib/rest/RequestsManager.js.map +1 -0
- package/dist/lib/rest/index.d.ts +4 -0
- package/dist/lib/rest/index.js +34 -0
- package/dist/lib/rest/index.js.map +1 -0
- package/dist/lib/structures/Application.d.ts +174 -0
- package/dist/lib/structures/Application.js +328 -0
- package/dist/lib/structures/Application.js.map +1 -0
- package/dist/lib/structures/ApplicationCommand.d.ts +45 -0
- package/dist/lib/structures/ApplicationCommand.js +127 -0
- package/dist/lib/structures/ApplicationCommand.js.map +1 -0
- package/dist/lib/structures/AuditLog.d.ts +20 -0
- package/dist/lib/structures/AuditLog.js +76 -0
- package/dist/lib/structures/AuditLog.js.map +1 -0
- package/dist/lib/structures/AutoModerationRule.d.ts +34 -0
- package/dist/lib/structures/AutoModerationRule.js +96 -0
- package/dist/lib/structures/AutoModerationRule.js.map +1 -0
- package/dist/lib/structures/Base.d.ts +17 -0
- package/dist/lib/structures/Base.js +31 -0
- package/dist/lib/structures/Base.js.map +1 -0
- package/dist/lib/structures/Channel.d.ts +253 -0
- package/dist/lib/structures/Channel.js +591 -0
- package/dist/lib/structures/Channel.js.map +1 -0
- package/dist/lib/structures/ClientApplication.d.ts +150 -0
- package/dist/lib/structures/ClientApplication.js +241 -0
- package/dist/lib/structures/ClientApplication.js.map +1 -0
- package/dist/lib/structures/Emoji.d.ts +28 -0
- package/dist/lib/structures/Emoji.js +79 -0
- package/dist/lib/structures/Emoji.js.map +1 -0
- package/dist/lib/structures/Entitlement.d.ts +24 -0
- package/dist/lib/structures/Entitlement.js +68 -0
- package/dist/lib/structures/Entitlement.js.map +1 -0
- package/dist/lib/structures/Guild.d.ts +462 -0
- package/dist/lib/structures/Guild.js +1095 -0
- package/dist/lib/structures/Guild.js.map +1 -0
- package/dist/lib/structures/GuildMember.d.ts +50 -0
- package/dist/lib/structures/GuildMember.js +149 -0
- package/dist/lib/structures/GuildMember.js.map +1 -0
- package/dist/lib/structures/GuildScheduledEvent.d.ts +49 -0
- package/dist/lib/structures/GuildScheduledEvent.js +118 -0
- package/dist/lib/structures/GuildScheduledEvent.js.map +1 -0
- package/dist/lib/structures/GuildTemplate.d.ts +32 -0
- package/dist/lib/structures/GuildTemplate.js +76 -0
- package/dist/lib/structures/GuildTemplate.js.map +1 -0
- package/dist/lib/structures/Integration.d.ts +30 -0
- package/dist/lib/structures/Integration.js +102 -0
- package/dist/lib/structures/Integration.js.map +1 -0
- package/dist/lib/structures/Interaction.d.ts +76 -0
- package/dist/lib/structures/Interaction.js +345 -0
- package/dist/lib/structures/Interaction.js.map +1 -0
- package/dist/lib/structures/Invite.d.ts +28 -0
- package/dist/lib/structures/Invite.js +86 -0
- package/dist/lib/structures/Invite.js.map +1 -0
- package/dist/lib/structures/Message.d.ts +84 -0
- package/dist/lib/structures/Message.js +300 -0
- package/dist/lib/structures/Message.js.map +1 -0
- package/dist/lib/structures/Role.d.ts +37 -0
- package/dist/lib/structures/Role.js +90 -0
- package/dist/lib/structures/Role.js.map +1 -0
- package/dist/lib/structures/SKU.d.ts +23 -0
- package/dist/lib/structures/SKU.js +63 -0
- package/dist/lib/structures/SKU.js.map +1 -0
- package/dist/lib/structures/StageInstance.d.ts +24 -0
- package/dist/lib/structures/StageInstance.js +57 -0
- package/dist/lib/structures/StageInstance.js.map +1 -0
- package/dist/lib/structures/Sticker.d.ts +31 -0
- package/dist/lib/structures/Sticker.js +86 -0
- package/dist/lib/structures/Sticker.js.map +1 -0
- package/dist/lib/structures/Team.d.ts +14 -0
- package/dist/lib/structures/Team.js +39 -0
- package/dist/lib/structures/Team.js.map +1 -0
- package/dist/lib/structures/TestEntitlement.d.ts +23 -0
- package/dist/lib/structures/TestEntitlement.js +61 -0
- package/dist/lib/structures/TestEntitlement.js.map +1 -0
- package/dist/lib/structures/UnavailableGuild.d.ts +11 -0
- package/dist/lib/structures/UnavailableGuild.js +25 -0
- package/dist/lib/structures/UnavailableGuild.js.map +1 -0
- package/dist/lib/structures/User.d.ts +63 -0
- package/dist/lib/structures/User.js +177 -0
- package/dist/lib/structures/User.js.map +1 -0
- package/dist/lib/structures/VoiceState.d.ts +26 -0
- package/dist/lib/structures/VoiceState.js +70 -0
- package/dist/lib/structures/VoiceState.js.map +1 -0
- package/dist/lib/structures/Webhook.d.ts +84 -0
- package/dist/lib/structures/Webhook.js +239 -0
- package/dist/lib/structures/Webhook.js.map +1 -0
- package/dist/lib/structures/index.d.ts +27 -0
- package/dist/lib/structures/index.js +44 -0
- package/dist/lib/structures/index.js.map +1 -0
- package/dist/lib/types/application-command.d.ts +102 -0
- package/dist/lib/types/application-command.js +3 -0
- package/dist/lib/types/application-command.js.map +1 -0
- package/dist/lib/types/application-role-connection-metadata.d.ts +18 -0
- package/dist/lib/types/application-role-connection-metadata.js +3 -0
- package/dist/lib/types/application-role-connection-metadata.js.map +1 -0
- package/dist/lib/types/application.d.ts +66 -0
- package/dist/lib/types/application.js +3 -0
- package/dist/lib/types/application.js.map +1 -0
- package/dist/lib/types/audit-log.d.ts +82 -0
- package/dist/lib/types/audit-log.js +3 -0
- package/dist/lib/types/audit-log.js.map +1 -0
- package/dist/lib/types/auto-moderation.d.ts +65 -0
- package/dist/lib/types/auto-moderation.js +3 -0
- package/dist/lib/types/auto-moderation.js.map +1 -0
- package/dist/lib/types/channel.d.ts +456 -0
- package/dist/lib/types/channel.js +3 -0
- package/dist/lib/types/channel.js.map +1 -0
- package/dist/lib/types/emoji.d.ts +22 -0
- package/dist/lib/types/emoji.js +3 -0
- package/dist/lib/types/emoji.js.map +1 -0
- package/dist/lib/types/entitlements.d.ts +32 -0
- package/dist/lib/types/entitlements.js +3 -0
- package/dist/lib/types/entitlements.js.map +1 -0
- package/dist/lib/types/gateway-events.d.ts +805 -0
- package/dist/lib/types/gateway-events.js +3 -0
- package/dist/lib/types/gateway-events.js.map +1 -0
- package/dist/lib/types/guild-scheduled-event.d.ts +57 -0
- package/dist/lib/types/guild-scheduled-event.js +3 -0
- package/dist/lib/types/guild-scheduled-event.js.map +1 -0
- package/dist/lib/types/guild-template.d.ts +28 -0
- package/dist/lib/types/guild-template.js +3 -0
- package/dist/lib/types/guild-template.js.map +1 -0
- package/dist/lib/types/guild.d.ts +333 -0
- package/dist/lib/types/guild.js +3 -0
- package/dist/lib/types/guild.js.map +1 -0
- package/dist/lib/types/index.d.ts +23 -0
- package/dist/lib/types/index.js +40 -0
- package/dist/lib/types/index.js.map +1 -0
- package/dist/lib/types/interaction.d.ts +170 -0
- package/dist/lib/types/interaction.js +3 -0
- package/dist/lib/types/interaction.js.map +1 -0
- package/dist/lib/types/invite.d.ts +59 -0
- package/dist/lib/types/invite.js +3 -0
- package/dist/lib/types/invite.js.map +1 -0
- package/dist/lib/types/message-components.d.ts +100 -0
- package/dist/lib/types/message-components.js +3 -0
- package/dist/lib/types/message-components.js.map +1 -0
- package/dist/lib/types/role.d.ts +47 -0
- package/dist/lib/types/role.js +3 -0
- package/dist/lib/types/role.js.map +1 -0
- package/dist/lib/types/sku.d.ts +30 -0
- package/dist/lib/types/sku.js +3 -0
- package/dist/lib/types/sku.js.map +1 -0
- package/dist/lib/types/stage-instance.d.ts +20 -0
- package/dist/lib/types/stage-instance.js +3 -0
- package/dist/lib/types/stage-instance.js.map +1 -0
- package/dist/lib/types/sticker.d.ts +61 -0
- package/dist/lib/types/sticker.js +3 -0
- package/dist/lib/types/sticker.js.map +1 -0
- package/dist/lib/types/team.d.ts +30 -0
- package/dist/lib/types/team.js +3 -0
- package/dist/lib/types/team.js.map +1 -0
- package/dist/lib/types/user.d.ts +77 -0
- package/dist/lib/types/user.js +3 -0
- package/dist/lib/types/user.js.map +1 -0
- package/dist/lib/types/voice.d.ts +47 -0
- package/dist/lib/types/voice.js +3 -0
- package/dist/lib/types/voice.js.map +1 -0
- package/dist/lib/types/webhook.d.ts +31 -0
- package/dist/lib/types/webhook.js +3 -0
- package/dist/lib/types/webhook.js.map +1 -0
- package/dist/lib/utils/Util.d.ts +15 -0
- package/dist/lib/utils/Util.js +543 -0
- package/dist/lib/utils/Util.js.map +1 -0
- package/dist/lib/utils/errors.d.ts +12 -0
- package/dist/lib/utils/errors.js +25 -0
- package/dist/lib/utils/errors.js.map +1 -0
- package/dist/lib/utils/index.d.ts +2 -0
- package/dist/lib/utils/index.js +19 -0
- package/dist/lib/utils/index.js.map +1 -0
- package/dist/package.json +1 -1
- package/examples/applicationCommands.js +43 -0
- package/examples/buttons.js +70 -0
- package/examples/embeds.js +36 -0
- package/examples/ephemeralMessages.js +32 -0
- package/examples/files.js +36 -0
- package/examples/modalSubmit.js +62 -0
- package/examples/permissions.js +41 -0
- package/examples/selectMenus.js +160 -0
- package/examples/text.txt +1 -0
- package/lib/Client.ts +616 -0
- package/lib/constants.ts +1173 -0
- package/lib/gateway/Shard.ts +704 -0
- package/lib/gateway/ShardsManager.ts +11 -0
- package/lib/gateway/index.ts +2 -0
- package/lib/index.ts +7 -0
- package/lib/rest/CDN.ts +56 -0
- package/lib/rest/Endpoints.ts +241 -0
- package/lib/rest/REST.ts +45 -0
- package/lib/rest/RequestsManager.ts +134 -0
- package/lib/rest/index.ts +4 -0
- package/lib/structures/Application.ts +599 -0
- package/lib/structures/ApplicationCommand.ts +187 -0
- package/lib/structures/AuditLog.ts +112 -0
- package/lib/structures/AutoModerationRule.ts +127 -0
- package/lib/structures/Base.ts +39 -0
- package/lib/structures/Channel.ts +921 -0
- package/lib/structures/ClientApplication.ts +515 -0
- package/lib/structures/Emoji.ts +95 -0
- package/lib/structures/Entitlement.ts +65 -0
- package/lib/structures/Guild.ts +1842 -0
- package/lib/structures/GuildMember.ts +193 -0
- package/lib/structures/GuildScheduledEvent.ts +164 -0
- package/lib/structures/GuildTemplate.ts +103 -0
- package/lib/structures/Integration.ts +136 -0
- package/lib/structures/Interaction.ts +506 -0
- package/lib/structures/Invite.ts +108 -0
- package/lib/structures/Message.ts +421 -0
- package/lib/structures/Role.ts +116 -0
- package/lib/structures/SKU.ts +63 -0
- package/lib/structures/StageInstance.ts +74 -0
- package/lib/structures/Sticker.ts +100 -0
- package/lib/structures/Team.ts +41 -0
- package/lib/structures/TestEntitlement.ts +78 -0
- package/lib/structures/UnavailableGuild.ts +27 -0
- package/lib/structures/User.ts +233 -0
- package/lib/structures/VoiceState.ts +72 -0
- package/lib/structures/Webhook.ts +341 -0
- package/lib/structures/index.ts +27 -0
- package/lib/types/application-command.ts +118 -0
- package/lib/types/application-role-connection-metadata.ts +23 -0
- package/lib/types/application.ts +77 -0
- package/lib/types/audit-log.ts +105 -0
- package/lib/types/auto-moderation.ts +78 -0
- package/lib/types/channel.ts +534 -0
- package/lib/types/emoji.ts +24 -0
- package/lib/types/entitlements.ts +34 -0
- package/lib/types/gateway-events.ts +970 -0
- package/lib/types/guild-scheduled-event.ts +67 -0
- package/lib/types/guild-template.ts +30 -0
- package/lib/types/guild.ts +388 -0
- package/lib/types/index.ts +23 -0
- package/lib/types/interaction.ts +224 -0
- package/lib/types/invite.ts +78 -0
- package/lib/types/message-components.ts +127 -0
- package/lib/types/role.ts +51 -0
- package/lib/types/sku.ts +32 -0
- package/lib/types/stage-instance.ts +22 -0
- package/lib/types/sticker.ts +67 -0
- package/lib/types/team.ts +34 -0
- package/lib/types/user.ts +93 -0
- package/lib/types/voice.ts +51 -0
- package/lib/types/webhook.ts +40 -0
- package/lib/utils/Util.ts +600 -0
- package/lib/utils/errors.ts +23 -0
- package/lib/utils/index.ts +2 -0
- package/package.json +1 -1
- package/test/basic.js +8 -0
- package/tsconfig.json +107 -0
@@ -0,0 +1,1084 @@
|
|
1
|
+
/** https://discord.com/developers/docs/reference#image-formatting-image-formats */
|
2
|
+
export declare enum ImageFormats {
|
3
|
+
JPG = "JPG",
|
4
|
+
JPEG = "jpeg",
|
5
|
+
PNG = "png",
|
6
|
+
WebP = "webp",
|
7
|
+
GIF = "gif",
|
8
|
+
Lottie = "json"
|
9
|
+
}
|
10
|
+
/** https://discord.com/developers/docs/reference#locales */
|
11
|
+
export declare enum Locale {
|
12
|
+
Indonesian = "id",
|
13
|
+
Danish = "da",
|
14
|
+
German = "de",
|
15
|
+
EnglishGB = "en-GB",
|
16
|
+
EnglishUS = "en-US",
|
17
|
+
SpanishES = "es-ES",
|
18
|
+
SpanishLatam = "es-419",
|
19
|
+
French = "fr",
|
20
|
+
Croatian = "hr",
|
21
|
+
Italian = "it",
|
22
|
+
Lithuanian = "lt",
|
23
|
+
Hungarian = "hu",
|
24
|
+
Dutch = "nl",
|
25
|
+
Norwegian = "no",
|
26
|
+
Polish = "pl",
|
27
|
+
PortugueseBR = "pt-BR",
|
28
|
+
Romanian = "ro",
|
29
|
+
Finnish = "fi",
|
30
|
+
Swedish = "sv-SE",
|
31
|
+
Vietnamese = "vi",
|
32
|
+
Turkish = "tr",
|
33
|
+
Czech = "cs",
|
34
|
+
Greek = "el",
|
35
|
+
Bulgarian = "bg",
|
36
|
+
Russian = "ru",
|
37
|
+
Ukrainian = "uk",
|
38
|
+
Hindi = "hi",
|
39
|
+
Thai = "th",
|
40
|
+
ChineseCN = "zh-CN",
|
41
|
+
Japanese = "ja",
|
42
|
+
ChineseTW = "zh-TW",
|
43
|
+
Korean = "ko"
|
44
|
+
}
|
45
|
+
/** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-types */
|
46
|
+
export declare enum ApplicationCommandTypes {
|
47
|
+
ChatInput = 1,
|
48
|
+
User = 2,
|
49
|
+
Message = 3
|
50
|
+
}
|
51
|
+
/** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-type */
|
52
|
+
export declare enum ApplicationCommandOptionType {
|
53
|
+
SubCommand = 1,
|
54
|
+
SubCommandGroup = 2,
|
55
|
+
String = 3,
|
56
|
+
Integer = 4,
|
57
|
+
Boolean = 5,
|
58
|
+
User = 6,
|
59
|
+
Channel = 7,
|
60
|
+
Role = 8,
|
61
|
+
Mentionable = 9,
|
62
|
+
Number = 10,
|
63
|
+
Attachment = 11
|
64
|
+
}
|
65
|
+
/** https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-application-command-permission-type */
|
66
|
+
export declare enum ApplicationCommandPermissionType {
|
67
|
+
Role = 1,
|
68
|
+
User = 2,
|
69
|
+
Channel = 3
|
70
|
+
}
|
71
|
+
/** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-type */
|
72
|
+
export declare enum InteractionType {
|
73
|
+
Ping = 1,
|
74
|
+
ApplicationCommand = 2,
|
75
|
+
MessageComponent = 3,
|
76
|
+
ApplicationCommandAutocomplete = 4,
|
77
|
+
ModalSubmit = 5
|
78
|
+
}
|
79
|
+
/** https://discord.com/developers/docs/interactions/message-components#component-object-component-types */
|
80
|
+
export declare enum ComponentTypes {
|
81
|
+
ActionRow = 1,
|
82
|
+
Button = 2,
|
83
|
+
StringSelect = 3,
|
84
|
+
TextInput = 4,
|
85
|
+
UserSelect = 5,
|
86
|
+
RoleSelect = 6,
|
87
|
+
MentionableSelect = 7,
|
88
|
+
ChannelSelect = 8
|
89
|
+
}
|
90
|
+
/** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-type */
|
91
|
+
export declare enum InteractionCallbackType {
|
92
|
+
Pong = 1,
|
93
|
+
ChannelMessageWithSource = 4,
|
94
|
+
DeferredChannelMessageWithSource = 5,
|
95
|
+
DeferredUpdateMessage = 6,
|
96
|
+
UpdateMessage = 7,
|
97
|
+
ApplicationCommandAutocompleteResult = 8,
|
98
|
+
Modal = 9,
|
99
|
+
PremiumRequired = 10
|
100
|
+
}
|
101
|
+
/** https://discord.com/developers/docs/interactions/message-components#button-object-button-styles */
|
102
|
+
export declare enum ButtonStyles {
|
103
|
+
Primary = 1,
|
104
|
+
Secondary = 2,
|
105
|
+
Success = 3,
|
106
|
+
Danger = 4,
|
107
|
+
Link = 5
|
108
|
+
}
|
109
|
+
/** https://discord.com/developers/docs/interactions/message-components#text-inputs-text-input-styles */
|
110
|
+
export declare enum TextInputStyles {
|
111
|
+
Short = 1,
|
112
|
+
Paragraph = 2
|
113
|
+
}
|
114
|
+
/** https://discord.com/developers/docs/resources/application#application-object-application-flags */
|
115
|
+
export declare enum ApplicationFlags {
|
116
|
+
ApplicationAutoModerationRuleCreateBadge = 64,
|
117
|
+
GatewayPresence = 4096,
|
118
|
+
GatewayPresenceLimited = 8192,
|
119
|
+
GatewayGuildMembers = 16384,
|
120
|
+
GatewayGuildMembersLimited = 32768,
|
121
|
+
VerificationPendingGuildLimit = 65536,
|
122
|
+
Embedded = 131072,
|
123
|
+
GatewayMessageContent = 262144,
|
124
|
+
GatewayMessageContentLimited = 524288,
|
125
|
+
ApplicationCommandBadge = 8388608
|
126
|
+
}
|
127
|
+
/** https://discord.com/developers/docs/resources/application-role-connection-metadata#application-role-connection-metadata-object-application-role-connection-metadata-type */
|
128
|
+
export declare enum ApplicationRoleConnectionMetadataType {
|
129
|
+
IntegerLessThanOrEqual = 1,
|
130
|
+
IntegerGreaterThanOrEqual = 2,
|
131
|
+
IntegerEqual = 3,
|
132
|
+
IntegerNotEqual = 4,
|
133
|
+
DatetimeLessThanOrEqual = 5,
|
134
|
+
DatetimeGreaterThanOrEqual = 6,
|
135
|
+
BooleanEqual = 7,
|
136
|
+
BooleanNotEqual = 8
|
137
|
+
}
|
138
|
+
/** https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-audit-log-events */
|
139
|
+
export declare enum AuditLogEvents {
|
140
|
+
GuildUpdate = 1,
|
141
|
+
ChannelCreate = 10,
|
142
|
+
ChannelUpdate = 11,
|
143
|
+
ChannelDelete = 12,
|
144
|
+
ChannelOverwriteCreate = 13,
|
145
|
+
ChannelOverwriteUpdate = 14,
|
146
|
+
ChannelOverwriteDelete = 15,
|
147
|
+
MemberKick = 20,
|
148
|
+
MemberPrune = 21,
|
149
|
+
MemberBanAdd = 22,
|
150
|
+
MemberBanRemove = 23,
|
151
|
+
MemberUpdate = 24,
|
152
|
+
MemberRoleUpdate = 25,
|
153
|
+
MemberMove = 26,
|
154
|
+
MemberDisconnect = 27,
|
155
|
+
BotAdd = 28,
|
156
|
+
RoleCreate = 30,
|
157
|
+
RoleUpdate = 31,
|
158
|
+
RoleDelete = 32,
|
159
|
+
InviteCreate = 40,
|
160
|
+
InviteUpdate = 41,
|
161
|
+
InviteDelete = 42,
|
162
|
+
WebhookCreate = 50,
|
163
|
+
WebhookUpdate = 51,
|
164
|
+
WebhookDelete = 52,
|
165
|
+
EmojiCreate = 60,
|
166
|
+
EmojiUpdate = 61,
|
167
|
+
EmojiDelete = 62,
|
168
|
+
MessageDelete = 72,
|
169
|
+
MessageBulkDelete = 73,
|
170
|
+
MessagePin = 74,
|
171
|
+
MessageUnpin = 75,
|
172
|
+
IntegrationCreate = 80,
|
173
|
+
IntegrationUpdate = 81,
|
174
|
+
IntegrationDelete = 82,
|
175
|
+
StageInstanceCreate = 83,
|
176
|
+
StageInstanceUpdate = 84,
|
177
|
+
StageInstanceDelete = 85,
|
178
|
+
StickerCreate = 90,
|
179
|
+
StickerUpdate = 91,
|
180
|
+
StickerDelete = 92,
|
181
|
+
GuildScheduledEventCreate = 100,
|
182
|
+
GuildScheduledEventUpdate = 101,
|
183
|
+
GuildScheduledEventDelete = 102,
|
184
|
+
ThreadCreate = 110,
|
185
|
+
ThreadUpdate = 111,
|
186
|
+
ThreadDelete = 112,
|
187
|
+
ApplicationCommandPermissionUpdate = 121,
|
188
|
+
AutoModerationRuleCreate = 140,
|
189
|
+
AutoModerationRuleUpdate = 141,
|
190
|
+
AutoModerationRuleDelete = 142,
|
191
|
+
AutoModerationBlockMessage = 143,
|
192
|
+
AutoModerationFlagToChannel = 144,
|
193
|
+
AutoModerationUserCommunicationDisabled = 145,
|
194
|
+
CreatorMonetizationRequestCreated = 150,
|
195
|
+
CreatorMonetizationTermsAccepted = 151
|
196
|
+
}
|
197
|
+
/** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-trigger-types */
|
198
|
+
export declare enum TriggerTypes {
|
199
|
+
Keyword = 1,
|
200
|
+
Spam = 3,
|
201
|
+
KeywordPreset = 4,
|
202
|
+
MentionSpam = 5
|
203
|
+
}
|
204
|
+
/** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-keyword-preset-types */
|
205
|
+
export declare enum KeywordPresetTypes {
|
206
|
+
Profanity = 1,
|
207
|
+
SexualContent = 2,
|
208
|
+
Slurs = 3
|
209
|
+
}
|
210
|
+
/** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-event-types */
|
211
|
+
export declare enum EventTypes {
|
212
|
+
MessageSend = 1
|
213
|
+
}
|
214
|
+
/** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-action-object-action-types */
|
215
|
+
export declare enum ActionTypes {
|
216
|
+
BlockMessage = 1,
|
217
|
+
SendAlertMessage = 2,
|
218
|
+
Timeout = 3
|
219
|
+
}
|
220
|
+
/** https://discord.com/developers/docs/resources/channel#channel-object-channel-types */
|
221
|
+
export declare enum ChannelTypes {
|
222
|
+
GuildText = 0,
|
223
|
+
DM = 1,
|
224
|
+
GuildVoice = 2,
|
225
|
+
GroupDM = 3,
|
226
|
+
GuildCategory = 4,
|
227
|
+
GuildAnnouncement = 5,
|
228
|
+
AnnouncementThread = 10,
|
229
|
+
PublicThread = 11,
|
230
|
+
PrivateThread = 12,
|
231
|
+
GuildStageVoice = 13,
|
232
|
+
GuildDirectory = 14,
|
233
|
+
GuildForum = 15,
|
234
|
+
GuildMedia = 16
|
235
|
+
}
|
236
|
+
/** https://discord.com/developers/docs/resources/channel#channel-object-video-quality-modes */
|
237
|
+
export declare enum VideoQualityModes {
|
238
|
+
Auto = 1,
|
239
|
+
Full = 2
|
240
|
+
}
|
241
|
+
/** https://discord.com/developers/docs/resources/channel#channel-object-channel-flags */
|
242
|
+
export declare enum ChannelFlags {
|
243
|
+
Pinned = 2,
|
244
|
+
RequiredTag = 16,
|
245
|
+
HideMediaDownloadOptions = 32768
|
246
|
+
}
|
247
|
+
/** https://discord.com/developers/docs/resources/channel#channel-object-sort-order-types */
|
248
|
+
export declare enum SortOrderTypes {
|
249
|
+
LatestActivity = 0,
|
250
|
+
CreationDate = 1
|
251
|
+
}
|
252
|
+
/** https://discord.com/developers/docs/resources/channel#channel-object-forum-layout-types */
|
253
|
+
export declare enum ForumLayoutTypes {
|
254
|
+
NotSet = 0,
|
255
|
+
ListView = 1,
|
256
|
+
GalleryView = 2
|
257
|
+
}
|
258
|
+
/** https://discord.com/developers/docs/resources/channel#message-object-message-types */
|
259
|
+
export declare enum MessageTypes {
|
260
|
+
Default = 0,
|
261
|
+
RecipientAdd = 1,
|
262
|
+
RecipientRemove = 2,
|
263
|
+
Call = 3,
|
264
|
+
ChannelNameChange = 4,
|
265
|
+
ChannelIconChange = 5,
|
266
|
+
ChannelPinnedMessage = 6,
|
267
|
+
UserJoin = 7,
|
268
|
+
GuildBoost = 8,
|
269
|
+
GuildBoostTier1 = 9,
|
270
|
+
GuildBoostTier2 = 10,
|
271
|
+
GuildBoostTier3 = 11,
|
272
|
+
ChannelFollowAdd = 12,
|
273
|
+
GuildDiscoveryDisqualified = 14,
|
274
|
+
GuildDiscoveryRequalified = 15,
|
275
|
+
GuildDiscoveryGracePeriodInitialWarning = 16,
|
276
|
+
GuildDiscoveryGracePeriodFinalWarning = 17,
|
277
|
+
ThreadCreated = 18,
|
278
|
+
Reply = 19,
|
279
|
+
ChatInputCommand = 20,
|
280
|
+
ThreadStarterMessage = 21,
|
281
|
+
GuildInviteReminder = 22,
|
282
|
+
ContextMenuCommand = 23,
|
283
|
+
AutoModerationAction = 24,
|
284
|
+
RoleSubscriptionPurchase = 25,
|
285
|
+
InteractionPremiumUpsell = 26,
|
286
|
+
StageStart = 27,
|
287
|
+
StageEnd = 28,
|
288
|
+
StageSpeaker = 29,
|
289
|
+
StageTopic = 31,
|
290
|
+
GuildApplicationPremiumSubscription = 32
|
291
|
+
}
|
292
|
+
/** https://discord.com/developers/docs/resources/channel#message-object-message-activity-types */
|
293
|
+
export declare enum MessageActivityTypes {
|
294
|
+
Join = 1,
|
295
|
+
Spectate = 2,
|
296
|
+
Listen = 3,
|
297
|
+
JoinRequest = 5
|
298
|
+
}
|
299
|
+
/** https://discord.com/developers/docs/resources/channel#message-object-message-flags */
|
300
|
+
export declare enum MessageFlags {
|
301
|
+
Crossposted = 1,
|
302
|
+
IsCrosspost = 2,
|
303
|
+
SuppressEmbeds = 4,
|
304
|
+
SourceMessageDeleted = 8,
|
305
|
+
Urgent = 16,
|
306
|
+
HasThread = 32,
|
307
|
+
Ephemeral = 64,
|
308
|
+
Loading = 128,
|
309
|
+
FailedToMentionSomeRolesInThread = 256,
|
310
|
+
SuppressNotifications = 4096,
|
311
|
+
IsVoiceMessage = 8192
|
312
|
+
}
|
313
|
+
/** https://discord.com/developers/docs/resources/channel#attachment-object-attachment-flags */
|
314
|
+
export declare enum AttachmentFlags {
|
315
|
+
IsRemix = 4
|
316
|
+
}
|
317
|
+
/** https://discord.com/developers/docs/resources/channel#allowed-mentions-object-allowed-mention-types */
|
318
|
+
export declare enum AllowedMentionTypes {
|
319
|
+
RoleMentions = "roles",
|
320
|
+
UserMentions = "users",
|
321
|
+
EveryoneMentions = "everyone"
|
322
|
+
}
|
323
|
+
/** https://discord.com/developers/docs/resources/guild#guild-object-default-message-notification-level */
|
324
|
+
export declare enum DefaultMessageNotificationLevel {
|
325
|
+
AllMessages = 0,
|
326
|
+
OnlyMentions = 1
|
327
|
+
}
|
328
|
+
/** https://discord.com/developers/docs/resources/guild#guild-object-explicit-content-filter-level */
|
329
|
+
export declare enum ExplicitContentFilterLevel {
|
330
|
+
Disabled = 0,
|
331
|
+
MembersWithoutRoles = 1,
|
332
|
+
AllMembers = 2
|
333
|
+
}
|
334
|
+
/** https://discord.com/developers/docs/resources/guild#guild-object-mfa-level */
|
335
|
+
export declare enum MFALevel {
|
336
|
+
None = 0,
|
337
|
+
Elevated = 1
|
338
|
+
}
|
339
|
+
/** https://discord.com/developers/docs/resources/guild#guild-object-verification-level */
|
340
|
+
export declare enum VerificationLevel {
|
341
|
+
None = 0,
|
342
|
+
Low = 1,
|
343
|
+
Medium = 2,
|
344
|
+
High = 3,
|
345
|
+
VeryHigh = 4
|
346
|
+
}
|
347
|
+
/** https://discord.com/developers/docs/resources/guild#guild-object-guild-nsfw-level */
|
348
|
+
export declare enum GuildNSFWLevel {
|
349
|
+
Default = 0,
|
350
|
+
Explicit = 1,
|
351
|
+
Safe = 2,
|
352
|
+
AgeRestricted = 3
|
353
|
+
}
|
354
|
+
/** https://discord.com/developers/docs/resources/guild#guild-object-premium-tier */
|
355
|
+
export declare enum PremiumTier {
|
356
|
+
None = 0,
|
357
|
+
Tier1 = 1,
|
358
|
+
Tier2 = 2,
|
359
|
+
Tier3 = 3
|
360
|
+
}
|
361
|
+
/** https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags */
|
362
|
+
export declare enum SystemChannelFlags {
|
363
|
+
SuppressJoinNotifications = 1,
|
364
|
+
SuppressPremiumSubscriptions = 2,
|
365
|
+
SuppressGuildReminderNotifications = 4,
|
366
|
+
SuppressJoinNotificationReplies = 8,
|
367
|
+
SuppressRoleSubscriptionPurchaseNotifications = 16,
|
368
|
+
SuppressRoleSubscriptionPurchaseNotificationReplies = 32
|
369
|
+
}
|
370
|
+
/** https://discord.com/developers/docs/resources/guild#guild-object-guild-features */
|
371
|
+
export declare enum GuildFeatures {
|
372
|
+
AnimatedBanner = "ANIMATED_BANNER",
|
373
|
+
AnimatedIcon = "ANIMATED_ICON",
|
374
|
+
ApplicationCommandPermissionsV2 = "APPLICATION_COMMAND_PERMISSIONS_V2",
|
375
|
+
AutoModeration = "AUTO_MODERATION",
|
376
|
+
Banner = "BANNER",
|
377
|
+
Community = "COMMUNITY",
|
378
|
+
CreatorMonetizableProvisional = "CREATOR_MONETIZABLE_PROVISIONAL",
|
379
|
+
CreatorStorePage = "CREATOR_STORE_PAGE",
|
380
|
+
DeveloperSupportServer = "DEVELOPER_SUPPORT_SERVER",
|
381
|
+
Discoverable = "DISCOVERABLE",
|
382
|
+
Featurable = "FEATURABLE",
|
383
|
+
InvitesDisabled = "INVITES_DISABLED",
|
384
|
+
InviteSplash = "INVITE_SPLASH",
|
385
|
+
MemberVerificationGateEnabled = "MEMBER_VERIFICATION_GATE_ENABLED",
|
386
|
+
MoreStickers = "MORE_STICKERS",
|
387
|
+
News = "NEWS",
|
388
|
+
Partnered = "PARTNERED",
|
389
|
+
PreviewEnabled = "PREVIEW_ENABLED",
|
390
|
+
RaidAlertsDisabled = "RAID_ALERTS_DISABLED",
|
391
|
+
RoleIcons = "ROLE_ICONS",
|
392
|
+
RoleSubscriptionsAvailableForPurchase = "ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE",
|
393
|
+
RoleSubscriptionsEnabled = "ROLE_SUBSCRIPTIONS_ENABLED",
|
394
|
+
TicketedEventsEnabled = "TICKETED_EVENTS_ENABLED",
|
395
|
+
VanityURL = "VANITY_URL",
|
396
|
+
Verified = "VERIFIED",
|
397
|
+
VipRegions = "VIP_REGIONS",
|
398
|
+
WelcomeScreenEnabled = "WELCOME_SCREEN_ENABLED"
|
399
|
+
}
|
400
|
+
/** https://discord.com/developers/docs/resources/guild#guild-object-mutable-guild-features */
|
401
|
+
export declare enum MutableGuildFeatures {
|
402
|
+
Community = "COMMUNITY",
|
403
|
+
InvitesDisabled = "INVITES_DISABLED",
|
404
|
+
Discoverable = "DISCOVERABLE",
|
405
|
+
RaidAlertsDisabled = "RAID_ALERTS_DISABLED"
|
406
|
+
}
|
407
|
+
/** https://discord.com/developers/docs/resources/guild#guild-member-object-guild-member-flags */
|
408
|
+
export declare enum GuildMemberFlags {
|
409
|
+
DidRejoin = 1,
|
410
|
+
CompletedOnboarding = 2,
|
411
|
+
BypassesVerification = 4,
|
412
|
+
StartedOnboarding = 8
|
413
|
+
}
|
414
|
+
/** https://discord.com/developers/docs/resources/guild#integration-object-integration-expire-behaviors */
|
415
|
+
export declare enum IntegrationExpireBehaviors {
|
416
|
+
RemoveRole = 0,
|
417
|
+
Kick = 1
|
418
|
+
}
|
419
|
+
/** https://discord.com/developers/docs/resources/guild#guild-onboarding-object-onboarding-mode */
|
420
|
+
export declare enum OnboardingMode {
|
421
|
+
OnboardingDefault = 0,
|
422
|
+
OnboardingAdvanced = 1
|
423
|
+
}
|
424
|
+
/** https://discord.com/developers/docs/resources/guild#guild-onboarding-object-prompt-types */
|
425
|
+
export declare enum PromptTypes {
|
426
|
+
MultipleChoice = 0,
|
427
|
+
Dropdown = 1
|
428
|
+
}
|
429
|
+
/** https://discord.com/developers/docs/resources/guild#get-guild-widget-image-widget-style-options */
|
430
|
+
export declare enum ImageWidgetStyleOptions {
|
431
|
+
Shield = "shield",
|
432
|
+
Banner1 = "banner1",
|
433
|
+
Banner2 = "banner2",
|
434
|
+
Banner3 = "banner3",
|
435
|
+
Banner4 = "banner4"
|
436
|
+
}
|
437
|
+
/** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-privacy-level */
|
438
|
+
export declare enum GuildScheduledEventPrivacyLevel {
|
439
|
+
GuildOnly = 2
|
440
|
+
}
|
441
|
+
/** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-entity-types */
|
442
|
+
export declare enum GuildScheduledEventEntityTypes {
|
443
|
+
StageIstance = 1,
|
444
|
+
Voice = 2,
|
445
|
+
External = 3
|
446
|
+
}
|
447
|
+
/** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-status */
|
448
|
+
export declare enum GuildScheduledEventStatus {
|
449
|
+
Scheduled = 1,
|
450
|
+
Active = 2,
|
451
|
+
Completed = 3,
|
452
|
+
Canceled = 4
|
453
|
+
}
|
454
|
+
/** https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types */
|
455
|
+
export declare enum InviteTargetTypes {
|
456
|
+
Stream = 1,
|
457
|
+
EmbeddedApplication = 2
|
458
|
+
}
|
459
|
+
/** https://discord.com/developers/docs/resources/stage-instance#stage-instance-object-privacy-level */
|
460
|
+
export declare enum PrivacyLevel {
|
461
|
+
Public = 1,
|
462
|
+
GuildOnly = 2
|
463
|
+
}
|
464
|
+
/** https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-types */
|
465
|
+
export declare enum StickerTypes {
|
466
|
+
Standard = 1,
|
467
|
+
Guild = 2
|
468
|
+
}
|
469
|
+
/** https://discord.com/developers/docs/resources/sticker#sticker-object-sticker-format-types */
|
470
|
+
export declare enum StickerFormatTypes {
|
471
|
+
PNG = 1,
|
472
|
+
APNG = 2,
|
473
|
+
LOTTIE = 3,
|
474
|
+
GIF = 4
|
475
|
+
}
|
476
|
+
/** https://discord.com/developers/docs/resources/user#user-object-user-flags */
|
477
|
+
export declare enum UserFlags {
|
478
|
+
Staff = 1,
|
479
|
+
Partner = 2,
|
480
|
+
Hypesquad = 4,
|
481
|
+
BugHunterLevel1 = 8,
|
482
|
+
HypesquadOnlineHouse1 = 64,
|
483
|
+
HypesquadOnlineHouse2 = 128,
|
484
|
+
HypesquadOnlineHouse3 = 256,
|
485
|
+
PremiumEarlySupporter = 512,
|
486
|
+
TeamPseudoUser = 1024,
|
487
|
+
BugHunterLevel2 = 16384,
|
488
|
+
VerifiedBot = 65536,
|
489
|
+
VerifiedDeveloper = 131072,
|
490
|
+
CertifiedModerator = 262144,
|
491
|
+
BotHTTPInteractions = 524288,
|
492
|
+
ActiveDeveloper = 4194304
|
493
|
+
}
|
494
|
+
/** https://discord.com/developers/docs/resources/user#user-object-premium-types */
|
495
|
+
export declare enum PremiumTypes {
|
496
|
+
None = 0,
|
497
|
+
NitroClassic = 1,
|
498
|
+
Nitro = 2,
|
499
|
+
NitroBasic = 3
|
500
|
+
}
|
501
|
+
/** https://discord.com/developers/docs/resources/user#connection-object-services */
|
502
|
+
export declare enum Services {
|
503
|
+
BattleNet = "battlenet",
|
504
|
+
Ebay = "ebay",
|
505
|
+
EpicGames = "epicgames",
|
506
|
+
Facebook = "facebook",
|
507
|
+
GitHub = "github",
|
508
|
+
Instagram = "instagram",
|
509
|
+
LeagueOfLegends = "leagueoflegends",
|
510
|
+
PayPal = "paypal",
|
511
|
+
Playstation = "playstation",
|
512
|
+
Reddit = "reddit",
|
513
|
+
RiotGames = "riotgames",
|
514
|
+
Spotify = "spotify",
|
515
|
+
Skype = "skype",
|
516
|
+
Steam = "steam",
|
517
|
+
TikTok = "tiktok",
|
518
|
+
Twitch = "twitch",
|
519
|
+
Twitter = "twitter",
|
520
|
+
Xbox = "xbox",
|
521
|
+
YouTube = "youtube"
|
522
|
+
}
|
523
|
+
/** https://discord.com/developers/docs/resources/user#connection-object-visibility-types */
|
524
|
+
export declare enum VisibilityTypes {
|
525
|
+
None = 0,
|
526
|
+
Everyone = 1
|
527
|
+
}
|
528
|
+
/** https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-types */
|
529
|
+
export declare enum WebhookTypes {
|
530
|
+
Incoming = 1,
|
531
|
+
ChannelFollower = 2,
|
532
|
+
Application = 3
|
533
|
+
}
|
534
|
+
/** https://discord.com/developers/docs/topics/certified-devices#models-device-type */
|
535
|
+
export declare enum DeviceType {
|
536
|
+
AudioInput = "audioinput",
|
537
|
+
AudioOutput = "audiooutput",
|
538
|
+
VideoInput = "videoinput"
|
539
|
+
}
|
540
|
+
/** https://discord.com/developers/docs/topics/gateway#list-of-intents */
|
541
|
+
export declare enum GatewayIntents {
|
542
|
+
Guilds = 1,
|
543
|
+
GuildMembers = 2,
|
544
|
+
GuildModeration = 4,
|
545
|
+
GuildEmojisAndStickers = 8,
|
546
|
+
GuildIntegrations = 16,
|
547
|
+
GuildWebhooks = 32,
|
548
|
+
GuildInvites = 64,
|
549
|
+
GuildVoiceStates = 128,
|
550
|
+
GuildPresences = 256,
|
551
|
+
GuildMessages = 512,
|
552
|
+
GuildMessageReactions = 1024,
|
553
|
+
GuildMessageTyping = 2048,
|
554
|
+
DirectMessages = 4096,
|
555
|
+
DirectMessageReactions = 8192,
|
556
|
+
DirectMessageTyping = 16384,
|
557
|
+
MessageContent = 32768,
|
558
|
+
GuildScheduledEvents = 65536,
|
559
|
+
AutoModerationConfiguration = 1048576,
|
560
|
+
AutoModerationActionExecution = 2097152,
|
561
|
+
AllNonPrivileged = 3243773,
|
562
|
+
AllPrivileged = 33026,
|
563
|
+
All = 3276799
|
564
|
+
}
|
565
|
+
/** https://discord.com/developers/docs/topics/gateway-events#update-presence-status-types */
|
566
|
+
export declare enum StatusTypes {
|
567
|
+
Online = "online",
|
568
|
+
DoNotDisturb = "dnd",
|
569
|
+
Idle = "idle",
|
570
|
+
Invisible = "invisible",
|
571
|
+
Offline = "offline"
|
572
|
+
}
|
573
|
+
/** https://discord.com/developers/docs/topics/gateway-events#receive-events */
|
574
|
+
export declare enum GatewayEvents {
|
575
|
+
Hello = "hello",
|
576
|
+
Ready = "ready",
|
577
|
+
Resumed = "resumed",
|
578
|
+
Reconnect = "reconnect",
|
579
|
+
InvalidSession = "invalidSession",
|
580
|
+
ApplicationCommandPermissionsUpdate = "applicationCommandPermissionsUpdate",
|
581
|
+
AutoModerationRuleCreate = "autoModerationRuleCreate",
|
582
|
+
AutoModerationRuleUpdate = "autoModerationRuleUpdate",
|
583
|
+
AutoModerationRuleDelete = "autoModerationRuleDelete",
|
584
|
+
AutoModerationActionExecution = "autoModerationActionExecution",
|
585
|
+
ChannelCreate = "channelCreate",
|
586
|
+
ChannelUpdate = "channelUpdate",
|
587
|
+
ChannelDelete = "channelDelete",
|
588
|
+
ChannelPinsUpdate = "channelPinsUpdate",
|
589
|
+
ThreadCreate = "threadCreate",
|
590
|
+
ThreadUpdate = "threadUpdate",
|
591
|
+
ThreadDelete = "threadDelete",
|
592
|
+
ThreadListSync = "threadListSync",
|
593
|
+
ThreadMemberUpdate = "threadMemberUpdate",
|
594
|
+
ThreadMembersUpdate = "threadMembersUpdate",
|
595
|
+
EntitlementCreate = "entitlementCreate",
|
596
|
+
EntitlementUpdate = "entitlementUpdate",
|
597
|
+
EntitlementDelete = "entitlementDelete",
|
598
|
+
GuildCreate = "guildCreate",
|
599
|
+
GuildUpdate = "guildUpdate",
|
600
|
+
GuildDelete = "guildDelete",
|
601
|
+
GuildAuditLogEntryCreate = "guildAuditLogEntryCreate",
|
602
|
+
GuildBanAdd = "guildBanAdd",
|
603
|
+
GuildBanRemove = "guildBanRemove",
|
604
|
+
GuildEmojisUpdate = "guildEmojisUpdate",
|
605
|
+
GuildStickersUpdate = "guildStickersUpdate",
|
606
|
+
GuildIntegrationsUpdate = "guildIntegrationsUpdate",
|
607
|
+
GuildMemberAdd = "guildMemberAdd",
|
608
|
+
GuildMemberRemove = "guildMemberRemove",
|
609
|
+
GuildMemberUpdate = "guildMemberUpdate",
|
610
|
+
GuildMembersChunk = "guildMembersChunk",
|
611
|
+
GuildRoleCreate = "guildRoleCreate",
|
612
|
+
GuildRoleUpdate = "guildRoleUpdate",
|
613
|
+
GuildRoleDelete = "guildRoleDelete",
|
614
|
+
GuildScheduledEventCreate = "guildScheduledEventCreate",
|
615
|
+
GuildScheduledEventUpdate = "guildScheduledEventUpdate",
|
616
|
+
GuildScheduledEventDelete = "guildScheduledEventDelete",
|
617
|
+
GuildScheduledEventUserAdd = "guildScheduledEventUserAdd",
|
618
|
+
GuildScheduledEventUserRemove = "guildScheduledEventUserRemove",
|
619
|
+
IntegrationCreate = "integrationCreate",
|
620
|
+
IntegrationUpdate = "integrationUpdate",
|
621
|
+
IntegrationDelete = "integrationDelete",
|
622
|
+
InteractionCreate = "interactionCreate",
|
623
|
+
InviteCreate = "inviteCreate",
|
624
|
+
InviteDelete = "inviteDelete",
|
625
|
+
MessageCreate = "messageCreate",
|
626
|
+
MessageUpdate = "messageUpdate",
|
627
|
+
MessageDelete = "messageDelete",
|
628
|
+
MessageDeleteBulk = "messageDeleteBulk",
|
629
|
+
MessageReactionAdd = "messageReactionAdd",
|
630
|
+
MessageReactionRemove = "messageReactionRemove",
|
631
|
+
MessageReactionRemoveAll = "messageReactionRemoveAll",
|
632
|
+
MessageReactionRemoveEmoji = "messageReactionRemoveEmoji",
|
633
|
+
PresenceUpdate = "presenceUpdate",
|
634
|
+
StageInstanceCreate = "stageInstanceCreate",
|
635
|
+
StageInstanceUpdate = "stageInstanceUpdate",
|
636
|
+
StageInstanceDelete = "stageInstanceDelete",
|
637
|
+
TypingStart = "typingStart",
|
638
|
+
UserUpdate = "userUpdate",
|
639
|
+
VoiceStateUpdate = "voiceStateUpdate",
|
640
|
+
VoiceServerUpdate = "voiceServerUpdate",
|
641
|
+
WebhooksUpdate = "webhooksUpdate"
|
642
|
+
}
|
643
|
+
/** https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-types */
|
644
|
+
export declare enum ActivityType {
|
645
|
+
Game = 0,
|
646
|
+
Streaming = 1,
|
647
|
+
Listening = 2,
|
648
|
+
Watching = 3,
|
649
|
+
Custom = 4,
|
650
|
+
Competing = 5
|
651
|
+
}
|
652
|
+
/** https://discord.com/developers/docs/topics/gateway-events#activity-object-activity-flags */
|
653
|
+
export declare enum ActivityFlags {
|
654
|
+
Instance = 1,
|
655
|
+
Join = 2,
|
656
|
+
Spectate = 4,
|
657
|
+
JoinRequest = 8,
|
658
|
+
Sync = 16,
|
659
|
+
Play = 32,
|
660
|
+
PartyPrivacyFriends = 64,
|
661
|
+
PartyPrivacyVoiceChannel = 128,
|
662
|
+
Embedded = 256
|
663
|
+
}
|
664
|
+
/** https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes */
|
665
|
+
export declare enum OAuth2Scopes {
|
666
|
+
ActivitiesRead = "activities.read",
|
667
|
+
ActivitiesWrite = "activities.write",
|
668
|
+
ApplicationsBuildsRead = "applications.builds.read",
|
669
|
+
ApplicationsBuildsUpload = "applications.builds.upload",
|
670
|
+
ApplicationsCommands = "applications.commands",
|
671
|
+
ApplicationsCommandsUpdate = "applications.commands.update",
|
672
|
+
ApplicationsCommandsPermissionsUpdate = "applications.commands.permissions.update",
|
673
|
+
ApplicationsEntitlements = "applications.entitlements",
|
674
|
+
ApplicationsStoreUpdate = "applications.store.update",
|
675
|
+
Bot = "bot",
|
676
|
+
Connections = "connections",
|
677
|
+
DMChannelsRead = "dm_channels.read",
|
678
|
+
Email = "email",
|
679
|
+
GDMJoin = "gdm.join",
|
680
|
+
Guilds = "guilds",
|
681
|
+
GuildsJoin = "guilds.join",
|
682
|
+
GuildsMembersRead = "guilds.members.read",
|
683
|
+
Identify = "identify",
|
684
|
+
MessagesRead = "messages.read",
|
685
|
+
RelationShipsRead = "relationships.read",
|
686
|
+
RoleConnectionsWrite = "role_connections.write",
|
687
|
+
RPC = "rpc",
|
688
|
+
RPCActivitiesWrite = "rpc.activities.write",
|
689
|
+
RPCNotificationsRead = "rpc.notifications.read",
|
690
|
+
RPCVoiceRead = "rpc.voice.read",
|
691
|
+
RPCVoiceWrite = "rpc.voice.write",
|
692
|
+
Voice = "voice",
|
693
|
+
WebhookIncoming = "webhook.incoming"
|
694
|
+
}
|
695
|
+
/** https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-opcodes */
|
696
|
+
export declare enum GatewayOPCodes {
|
697
|
+
Dispatch = 0,
|
698
|
+
Heartbeat = 1,
|
699
|
+
Identify = 2,
|
700
|
+
PresenceUpdate = 3,
|
701
|
+
VoiceStateUpdate = 4,
|
702
|
+
Resume = 6,
|
703
|
+
Reconnect = 7,
|
704
|
+
RequestGuildMembers = 8,
|
705
|
+
InvalidSession = 9,
|
706
|
+
Hello = 10,
|
707
|
+
HeartbeatACK = 11
|
708
|
+
}
|
709
|
+
/** https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes */
|
710
|
+
export declare enum GatewayCloseEventCodes {
|
711
|
+
UnknownError = 4000,
|
712
|
+
UnknownOPCode = 4001,
|
713
|
+
DecodeError = 4002,
|
714
|
+
NotAuthenticated = 4003,
|
715
|
+
AuthenticationFailed = 4004,
|
716
|
+
AlreadyAuthenticated = 4005,
|
717
|
+
InvalidSequence = 4007,
|
718
|
+
RateLimited = 4008,
|
719
|
+
SessionTimedOut = 4009,
|
720
|
+
InvalidShard = 4010,
|
721
|
+
ShardingRequired = 4011,
|
722
|
+
InvalidAPIVersion = 4012,
|
723
|
+
InvalidIntents = 4013,
|
724
|
+
DisallowedIntents = 4014
|
725
|
+
}
|
726
|
+
/** https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice-voice-opcodes */
|
727
|
+
export declare enum VoiceOPCodes {
|
728
|
+
Identify = 0,
|
729
|
+
SelectProtocol = 1,
|
730
|
+
Ready = 2,
|
731
|
+
Heartbeat = 3,
|
732
|
+
SessionDescription = 4,
|
733
|
+
Speaking = 5,
|
734
|
+
HeartbeatACK = 6,
|
735
|
+
Resume = 7,
|
736
|
+
Hello = 8,
|
737
|
+
Resumed = 9,
|
738
|
+
ClientDisconnect = 13
|
739
|
+
}
|
740
|
+
/** https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice-voice-close-event-codes */
|
741
|
+
export declare enum VoiceCloseEventCodes {
|
742
|
+
UnknownOPCode = 4001,
|
743
|
+
FailedToDecodePayload = 4002,
|
744
|
+
NotAuthenticated = 4003,
|
745
|
+
AuthenticationFailed = 4004,
|
746
|
+
AlreadyAuthenticated = 4005,
|
747
|
+
SessionNoLongerValid = 4006,
|
748
|
+
SessionTimeout = 4009,
|
749
|
+
ServerNotFound = 4011,
|
750
|
+
UnknownProtocol = 4012,
|
751
|
+
Disconnect = 4014,
|
752
|
+
VoiceServerCrashed = 4015,
|
753
|
+
UnknownEncryptionMode = 4016
|
754
|
+
}
|
755
|
+
/** https://discord.com/developers/docs/topics/opcodes-and-status-codes#http-http-response-codes */
|
756
|
+
export declare enum HTTPResponseCodes {
|
757
|
+
Ok = 200,
|
758
|
+
Created = 201,
|
759
|
+
NoContent = 204,
|
760
|
+
NotModified = 304,
|
761
|
+
BadRequest = 400,
|
762
|
+
Unathorized = 401,
|
763
|
+
Forbidden = 403,
|
764
|
+
NotFound = 404,
|
765
|
+
MethodNotAllowed = 405,
|
766
|
+
TooManyRequests = 429,
|
767
|
+
GatewayUnavailable = 502,
|
768
|
+
ServerError = "5xx"
|
769
|
+
}
|
770
|
+
/** https://discord.com/developers/docs/topics/opcodes-and-status-codes#json-json-error-codes */
|
771
|
+
export declare enum JSONErrorCodes {
|
772
|
+
GeneralError = 0,
|
773
|
+
UnknownAccount = 10001,
|
774
|
+
UnknownApplication = 10002,
|
775
|
+
UnknownChannel = 10003,
|
776
|
+
UnknownGuild = 10004,
|
777
|
+
UnknownIntegration = 10005,
|
778
|
+
UnknownInvite = 10006,
|
779
|
+
UnknownMember = 10007,
|
780
|
+
UnknownMessage = 10008,
|
781
|
+
UnknownPermissionOverwrite = 10009,
|
782
|
+
UnknownProvider = 10010,
|
783
|
+
UnknownRole = 10011,
|
784
|
+
UnknownToken = 10012,
|
785
|
+
UnknownUser = 10013,
|
786
|
+
UnknownEmoji = 10014,
|
787
|
+
UnknownWebhook = 10015,
|
788
|
+
UnknownWebhookService = 10016,
|
789
|
+
UnknownSession = 10020,
|
790
|
+
UnknownBan = 10026,
|
791
|
+
UnknownSKU = 10027,
|
792
|
+
UnknownStoreListing = 10028,
|
793
|
+
UnknownEntitlement = 10029,
|
794
|
+
UnknownBuild = 10030,
|
795
|
+
UnknownLobby = 10031,
|
796
|
+
UnknownBranch = 10032,
|
797
|
+
UnknownStoreDirectoryLayout = 10033,
|
798
|
+
UnknownRedistributable = 10036,
|
799
|
+
UnknownGiftCode = 10038,
|
800
|
+
UnknownStream = 10049,
|
801
|
+
UnknownPremiumServerSubscribeCooldown = 10050,
|
802
|
+
UnknownGuildTemplate = 10057,
|
803
|
+
UnknownDiscoverableServerCategory = 10059,
|
804
|
+
UnknownSticker = 10060,
|
805
|
+
UnknownInteraction = 10062,
|
806
|
+
UnknownApplicationCommand = 10063,
|
807
|
+
UnknownVoiceState = 10065,
|
808
|
+
UnknownApplicationCommandPermissions = 10066,
|
809
|
+
UnknownStageInstance = 10067,
|
810
|
+
UnknownGuildMemberVerificationForm = 10068,
|
811
|
+
UnknownGuildWelcomeScreen = 10069,
|
812
|
+
UnknownGuildScheduledEvent = 10070,
|
813
|
+
UnknownGuildScheduledEventUser = 10071,
|
814
|
+
UnknownTag = 10087,
|
815
|
+
BotsCannotUseThisEndpoint = 20001,
|
816
|
+
OnlyBotsCanUseThisEndpoint = 20002,
|
817
|
+
ExplicitContentCannotBeSentToTheDesiredRecipient = 20009,
|
818
|
+
NotAuthorizedToPerformThisActionOnThisApplication = 20012,
|
819
|
+
ActionCannotBePerformedDueToSlowmodeRateLimit = 20016,
|
820
|
+
TheMazeIsntMeantForYou = 20017,
|
821
|
+
OnlyTheOwnerOfThisAccountCanPerformThisAction = 20018,
|
822
|
+
AnnouncementEditLimitExceeded = 20022,
|
823
|
+
UnderMinimumAge = 20024,
|
824
|
+
ChannelSendRateLimit = 20028,
|
825
|
+
ServerSendRateLimit = 20029,
|
826
|
+
StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords = 20031,
|
827
|
+
GuildPremiumSubscriptionLevelTooLow = 20035,
|
828
|
+
MaximumNumberOfGuildsReached = 30001,
|
829
|
+
MaximumNumberOfFriendsReached = 30002,
|
830
|
+
MaximumNumberOfPinsReachedForTheChannel = 30003,
|
831
|
+
MaximumNumberOfRecipientsReached = 30004,
|
832
|
+
MaximumNumberOfGuildRolesReached = 30005,
|
833
|
+
MaximumNumberOfWebhooksReached = 30007,
|
834
|
+
MaximumNumberOfEmojisReached = 30008,
|
835
|
+
MaximumNumberOfReactionsReached = 30010,
|
836
|
+
MaximumNumberOfGroupDMsReached = 30011,
|
837
|
+
MaximumNumberOfGuildChannelsReached = 30013,
|
838
|
+
MaximumNumberOfAttachmentsInAMessageReached = 30015,
|
839
|
+
MaximumNumberOfInvitesReached = 30016,
|
840
|
+
MaximumNumberOfAnimatedEmojisReached = 30018,
|
841
|
+
MaximumNumberOfServerMembersReached = 30019,
|
842
|
+
MaximumNumberOfServerCategoriesReached = 30030,
|
843
|
+
GuildAlreadyHasTemplate = 30031,
|
844
|
+
MaximumNumberOfApplicationCommandsReached = 30032,
|
845
|
+
MaximumThreadParticipantsReached = 30033,
|
846
|
+
MaximumDailyApplicationCommandCreatesReached = 30034,
|
847
|
+
MaximumNumberOfNonGuildMemberBansHasBeenExceeded = 30035,
|
848
|
+
MaximumNumberOfBanFetchesHasBeenReached = 30037,
|
849
|
+
MaximumNumberOfUncompletedGuildScheduledEventsReached = 30038,
|
850
|
+
MaximumNumberOfStickersReached = 30039,
|
851
|
+
MaximumNumberOfPruneRequestsHasBeenReached = 30040,
|
852
|
+
MaximumNumberOfGuildWidgetSettingsUpdatesHasBeenReached = 30042,
|
853
|
+
MaximumNumberOfEditsToMessagesOlderThanOneHourReached = 30046,
|
854
|
+
MaximumNumberOfPinnedThreadsInForumHasBeenReached = 30047,
|
855
|
+
MaximumNumberOfTagsInForumHasBeenReached = 30048,
|
856
|
+
BitrateIsTooHighForChannelOfThisType = 30052,
|
857
|
+
MaximumNumberOfPremiumEmojisReached = 30056,
|
858
|
+
MaximumNumberOfWebhooksPerGuildReached = 30058,
|
859
|
+
MaximumNumberOfChannelPermissionOverwritesReached = 30060,
|
860
|
+
TheChannelsForThisGuildAreTooLarge = 30061,
|
861
|
+
Unauthorized = 40001,
|
862
|
+
VerifyYourAccount = 40002,
|
863
|
+
OpeningDirectMessagesTooFast = 40003,
|
864
|
+
SendMessagesHasBeenTemporarilyDisabled = 40004,
|
865
|
+
RequestEntityTooLarge = 40005,
|
866
|
+
FeatureTemporarilyDisabledServerSide = 40006,
|
867
|
+
UserBannedFromThisGuild = 40007,
|
868
|
+
ConnectionHasBeenRevoked = 40012,
|
869
|
+
TargetUserIsNotConnectedToVoice = 40032,
|
870
|
+
ThisMessageWasAlreadyCrossposted = 40033,
|
871
|
+
ApplicationCommandWithThatNameAlreadyExists = 40041,
|
872
|
+
ApplicationInteractionFailedToSend = 40043,
|
873
|
+
CannotSendAMessageInAForumChannel = 40058,
|
874
|
+
InteractionHasAlreadyBeenAcknowledged = 40060,
|
875
|
+
TagNamesMustBeUnique = 40061,
|
876
|
+
ServiceResourceIsBeingRateLimited = 40062,
|
877
|
+
ThereAreNoTagsAvailableThatCanBeSetByNonModerators = 40066,
|
878
|
+
TagRequiredToCreateAForumPostInThisChannel = 40067,
|
879
|
+
AnEntitlementHasAlreadyBeenGrantedForThisResource = 40074,
|
880
|
+
MissingAccess = 50001,
|
881
|
+
InvalidAccountType = 50002,
|
882
|
+
CannotExecuteActionOnDMChannel = 50003,
|
883
|
+
GuildWidgetDisabled = 50004,
|
884
|
+
CannotEditMessageAuthoredByAnotherUser = 50005,
|
885
|
+
CannotSendAnEmptyMessage = 50006,
|
886
|
+
CannotSendMessagesToThisUser = 50007,
|
887
|
+
CannotSendMessagesInNonTextChannel = 50008,
|
888
|
+
ChannelVerificationLevelTooHighForYouToGainAccess = 50009,
|
889
|
+
OAuth2ApplicationDoesNotHaveBot = 50010,
|
890
|
+
OAuth2ApplicationLimitReached = 50011,
|
891
|
+
InvalidOAuth2State = 50012,
|
892
|
+
MissingPermissions = 50013,
|
893
|
+
InvalidToken = 50014,
|
894
|
+
NoteWasTooLong = 50015,
|
895
|
+
ProvidedTooFewOrTooManyMessagesToDelete = 50016,
|
896
|
+
InvalidMFALevel = 50017,
|
897
|
+
MessageCanOnlyBePinnedInTheChannelItWasSentIn = 50019,
|
898
|
+
InviteCodeInvalidOrTaken = 50020,
|
899
|
+
CannotExecuteActionOnSystemMessage = 50021,
|
900
|
+
CannotExecuteActionOnThisChannelType = 50024,
|
901
|
+
InvalidOAuth2AccessToken = 50025,
|
902
|
+
MissingRequiredOAuth2Scope = 50026,
|
903
|
+
InvalidWebhookToken = 50027,
|
904
|
+
InvalidRole = 50028,
|
905
|
+
InvalidRecipients = 50033,
|
906
|
+
OneOfTheMessagesProvidedWasTooOldForBulkDelete = 50034,
|
907
|
+
InvalidFormBodyOrContentType = 50035,
|
908
|
+
InviteAcceptedToGuildWithoutTheBotBeingIn = 50036,
|
909
|
+
InvalidActivityAction = 50039,
|
910
|
+
InvalidAPIVersion = 50041,
|
911
|
+
FileUploadedExceedsMaximumSize = 50045,
|
912
|
+
InvalidFileUploaded = 50046,
|
913
|
+
CannotSelfRedeemThisGift = 50054,
|
914
|
+
InvalidGuild = 50055,
|
915
|
+
InvalidSKU = 50057,
|
916
|
+
InvalidRequestOrigin = 50067,
|
917
|
+
InvalidMessageType = 50068,
|
918
|
+
PaymentSourceRequiredToRedeemGift = 50070,
|
919
|
+
CannotModifyASystemWebhook = 50073,
|
920
|
+
CannotDeleteChannelRequiredForCommunityGuilds = 50074,
|
921
|
+
CannotEditStickersWithinMessage = 50080,
|
922
|
+
InvalidStickerSent = 50081,
|
923
|
+
InvalidActionOnArchivedThread = 50083,
|
924
|
+
InvalidThreadNotificationSettings = 50084,
|
925
|
+
ParameterEarlierThanCreation = 50085,
|
926
|
+
CommunityServerChannelsMustBeTextChannels = 50086,
|
927
|
+
TheEntityTypeOfTheEventIsDifferentFromTheEntityYouAreTryingToStartTheEventFor = 50091,
|
928
|
+
ServerNotAvailableInYourLocation = 50095,
|
929
|
+
ServerNeedsMonetizationEnabledToPerformThisAction = 50097,
|
930
|
+
ServerNeedsMoreBoostsToPerformThisAction = 50101,
|
931
|
+
RequestBodyContainsInvalidJSON = 50109,
|
932
|
+
OwnerCannotBePendingMember = 50131,
|
933
|
+
OwnershipCannotBeMovedToABotUser = 50132,
|
934
|
+
FailedToResizeAssetBelowTheMinimumSize = 50138,
|
935
|
+
CannotMixSubscriptionAndNonSubscriptionRolesForAnEmoji = 50144,
|
936
|
+
CannotConvertBetweenPremiumEmojiAndNormalEmoji = 50145,
|
937
|
+
UploadedFileNotFound = 50146,
|
938
|
+
VoiceMessagesDoNotSupportAdditionalContent = 50159,
|
939
|
+
VoiceMessagesMustHaveASingleAudioAttachment = 50160,
|
940
|
+
VoiceMessagesMustHaveSupportingMetadata = 50161,
|
941
|
+
VoiceMessagesCannotBeEdited = 50162,
|
942
|
+
CannotDeleteGuildSubscriptionIntegration = 50163,
|
943
|
+
YouCannotSendVoiceMessagesInThisChannel = 50173,
|
944
|
+
TheUserAccountMustFirstBeVerified = 50178,
|
945
|
+
YouDoNotHavePermissionToSendThisSticker = 50600,
|
946
|
+
TwoFactorAuthenticationIsRequired = 60003,
|
947
|
+
NoUsersWithDiscordTagExist = 80004,
|
948
|
+
ReactionWasBlocked = 90001,
|
949
|
+
ApplicationNotYetAvailable = 110001,
|
950
|
+
APIResourceOverloaded = 130000,
|
951
|
+
TheStageIsAlreadyOpen = 150006,
|
952
|
+
CannotReplyWithoutPermissionToReadMessageHistory = 160002,
|
953
|
+
ThreadAlreadyCreatedForMessage = 160004,
|
954
|
+
ThreadLocked = 160005,
|
955
|
+
MaximumActiveThreads = 160006,
|
956
|
+
MaximumActiveAnnouncementThreads = 160007,
|
957
|
+
InvalidJSONForUploadedLottieFile = 170001,
|
958
|
+
UploadedLottiesCannotContainRasterizedImages = 170002,
|
959
|
+
StickerMaximumFramerateExceeded = 170003,
|
960
|
+
StickerFrameCountExceedsMaximumOf1000Frames = 170004,
|
961
|
+
LottieAnimationMaximumDimensionsExceeded = 170005,
|
962
|
+
StickerFramerateIsTooSmallOrTooLarge = 170006,
|
963
|
+
StickerAnimationDurationExceedsMaximumOf5Seconds = 170007,
|
964
|
+
CannotUpdateAFinishedEvent = 180000,
|
965
|
+
FailedToCreateStageNeededForStageEvent = 180002,
|
966
|
+
MessageWasBlockedByAutomaticModeration = 200000,
|
967
|
+
TitleWasBlockedByAutomaticModeration = 200001,
|
968
|
+
WebhooksPostedToForumChannelsMustHaveAThreadNameOrThreadId = 220001,
|
969
|
+
WebhooksPostedToForumChannelsCannotHaveBothAThreadNameAndThreadId = 220002,
|
970
|
+
WebhooksCanOnlyCreateThreadsInForumChannels = 220003,
|
971
|
+
WebhookServicesCannotBeUsedInForumChannels = 220004,
|
972
|
+
MessageBlockedByHarmfulLinksFilter = 240000,
|
973
|
+
CannotEnableOnboardingRequirementsAreNotMet = 350000,
|
974
|
+
CannotUpdateOnboardingWhileBelowRequirements = 350001
|
975
|
+
}
|
976
|
+
/** https://discord.com/developers/docs/topics/opcodes-and-status-codes#rpc-rpc-error-codes */
|
977
|
+
export declare enum RPCErrorCodes {
|
978
|
+
UnknownError = 1000,
|
979
|
+
InvalidPayload = 4000,
|
980
|
+
InvalidCommand = 4002,
|
981
|
+
InvalidGuild = 4003,
|
982
|
+
InvalidEvent = 4004,
|
983
|
+
InvalidChannel = 4005,
|
984
|
+
InvalidPermissions = 4006,
|
985
|
+
InvalidClientId = 4007,
|
986
|
+
InvalidOrigin = 4008,
|
987
|
+
InvalidToken = 4009,
|
988
|
+
InvalidUser = 4010,
|
989
|
+
OAuth2Error = 5000,
|
990
|
+
SelectChannelTimedOut = 5001,
|
991
|
+
GetGuildTimedOut = 5002,
|
992
|
+
SelectVoiceForceRequired = 5003,
|
993
|
+
CaptureShortcutAlreadyListening = 5004
|
994
|
+
}
|
995
|
+
/** https://discord.com/developers/docs/topics/opcodes-and-status-codes#rpc-rpc-close-event-codes */
|
996
|
+
export declare enum RPCCloseEventCodes {
|
997
|
+
InvalidClientId = 4000,
|
998
|
+
InvalidOrigin = 4001,
|
999
|
+
RateLimited = 4002,
|
1000
|
+
TokenRevoked = 4003,
|
1001
|
+
InvalidVersion = 4004,
|
1002
|
+
InvalidEncoding = 4005
|
1003
|
+
}
|
1004
|
+
/** https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags */
|
1005
|
+
export declare const BitwisePermissionFlags: {
|
1006
|
+
readonly CreateInstantInvite: bigint;
|
1007
|
+
readonly KickMembers: bigint;
|
1008
|
+
readonly BanMembers: bigint;
|
1009
|
+
readonly Administrator: bigint;
|
1010
|
+
readonly ManageChannels: bigint;
|
1011
|
+
readonly ManageGuild: bigint;
|
1012
|
+
readonly AddReactions: bigint;
|
1013
|
+
readonly ViewAuditLog: bigint;
|
1014
|
+
readonly PrioritySpeaker: bigint;
|
1015
|
+
readonly Stream: bigint;
|
1016
|
+
readonly ViewChannel: bigint;
|
1017
|
+
readonly SendMessages: bigint;
|
1018
|
+
readonly SendTTSMessages: bigint;
|
1019
|
+
readonly ManageMessages: bigint;
|
1020
|
+
readonly EmbedLinks: bigint;
|
1021
|
+
readonly AttachFiles: bigint;
|
1022
|
+
readonly ReadMessageHistory: bigint;
|
1023
|
+
readonly MentionEveryone: bigint;
|
1024
|
+
readonly UseExternalEmojis: bigint;
|
1025
|
+
readonly ViewGuildInsights: bigint;
|
1026
|
+
readonly Connect: bigint;
|
1027
|
+
readonly Speak: bigint;
|
1028
|
+
readonly MuteMembers: bigint;
|
1029
|
+
readonly DeafenMembers: bigint;
|
1030
|
+
readonly MoveMembers: bigint;
|
1031
|
+
readonly UseVAD: bigint;
|
1032
|
+
readonly ChangeNickname: bigint;
|
1033
|
+
readonly ManageNicknames: bigint;
|
1034
|
+
readonly ManageRoles: bigint;
|
1035
|
+
readonly ManageWebhooks: bigint;
|
1036
|
+
readonly ManageGuildExpressions: bigint;
|
1037
|
+
readonly UseApplicationCommands: bigint;
|
1038
|
+
readonly RequestToSpeak: bigint;
|
1039
|
+
readonly ManageEvents: bigint;
|
1040
|
+
readonly ManageThreads: bigint;
|
1041
|
+
readonly CreatePublicThreads: bigint;
|
1042
|
+
readonly CreatePrivateThreads: bigint;
|
1043
|
+
readonly UseExternalStickers: bigint;
|
1044
|
+
readonly SendMessagesInThreads: bigint;
|
1045
|
+
readonly UseEmbeddedActivities: bigint;
|
1046
|
+
readonly ModerateMembers: bigint;
|
1047
|
+
readonly ViewCreatorMonetizationAnalytics: bigint;
|
1048
|
+
readonly UseSoundboard: bigint;
|
1049
|
+
readonly CreateGuildExpressions: bigint;
|
1050
|
+
readonly CreateEvents: bigint;
|
1051
|
+
readonly UseExternalSounds: bigint;
|
1052
|
+
readonly SendVoiceMessages: bigint;
|
1053
|
+
};
|
1054
|
+
/** https://discord.com/developers/docs/topics/permissions#role-object-role-flags */
|
1055
|
+
export declare enum RoleFlags {
|
1056
|
+
InPrompt = 1
|
1057
|
+
}
|
1058
|
+
/** https://discord.com/developers/docs/topics/teams#team-member-roles-team-member-role-types */
|
1059
|
+
export declare enum TeamMemberRoleTypes {
|
1060
|
+
Owner = "",
|
1061
|
+
Admin = "admin",
|
1062
|
+
Developer = "developer",
|
1063
|
+
ReadOnly = "read_only"
|
1064
|
+
}
|
1065
|
+
/** https://discord.com/developers/docs/topics/teams#data-models-membership-state-enum */
|
1066
|
+
export declare enum MembershipState {
|
1067
|
+
Invited = 1,
|
1068
|
+
Accepted = 2
|
1069
|
+
}
|
1070
|
+
/** https://discord.com/developers/docs/monetization/skus#sku-object-sku-types */
|
1071
|
+
export declare enum SKUTypes {
|
1072
|
+
Subscription = 5,
|
1073
|
+
SubscriptionGroup = 6
|
1074
|
+
}
|
1075
|
+
/** https://discord.com/developers/docs/monetization/skus#sku-object-sku-flags */
|
1076
|
+
export declare enum SKUFlags {
|
1077
|
+
Available = 4,
|
1078
|
+
GuildSubscription = 128,
|
1079
|
+
UserSubscription = 256
|
1080
|
+
}
|
1081
|
+
/** https://discord.com/developers/docs/monetization/entitlements#entitlement-object-entitlement-types */
|
1082
|
+
export declare enum EntitlementTypes {
|
1083
|
+
ApplicationSubscription = 8
|
1084
|
+
}
|