dfx 0.61.5 → 0.61.6
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/Cache/memoryTTL.d.ts.map +1 -1
- package/Cache/memoryTTL.js.map +1 -1
- package/Cache/prelude.d.ts +3 -3
- package/Cache/prelude.d.ts.map +1 -1
- package/Cache/prelude.js.map +1 -1
- package/Cache.d.ts.map +1 -1
- package/Cache.js.map +1 -1
- package/DiscordGateway/DiscordWS.d.ts.map +1 -1
- package/DiscordGateway/DiscordWS.js.map +1 -1
- package/DiscordGateway/Shard/heartbeats.d.ts.map +1 -1
- package/DiscordGateway/Shard/heartbeats.js.map +1 -1
- package/DiscordGateway/Shard/sendEvents.js +9 -6
- package/DiscordGateway/Shard/sendEvents.js.map +1 -1
- package/DiscordGateway/Shard/utils.d.ts.map +1 -1
- package/DiscordGateway/Shard/utils.js.map +1 -1
- package/DiscordGateway/Shard.d.ts.map +1 -1
- package/DiscordGateway/Shard.js +8 -7
- package/DiscordGateway/Shard.js.map +1 -1
- package/DiscordGateway/Sharder.d.ts +2 -2
- package/DiscordGateway/Sharder.js.map +1 -1
- package/DiscordGateway/WS.d.ts.map +1 -1
- package/DiscordGateway/WS.js.map +1 -1
- package/DiscordGateway.d.ts +1 -1
- package/DiscordGateway.d.ts.map +1 -1
- package/DiscordGateway.js.map +1 -1
- package/DiscordREST/utils.d.ts.map +1 -1
- package/DiscordREST/utils.js.map +1 -1
- package/DiscordREST.d.ts +1 -1
- package/DiscordREST.d.ts.map +1 -1
- package/DiscordREST.js.map +1 -1
- package/Helpers/flags.d.ts.map +1 -1
- package/Helpers/flags.js.map +1 -1
- package/Helpers/intents.d.ts.map +1 -1
- package/Helpers/intents.js.map +1 -1
- package/Helpers/interactions.d.ts.map +1 -1
- package/Helpers/interactions.js +3 -2
- package/Helpers/interactions.js.map +1 -1
- package/Helpers/members.d.ts.map +1 -1
- package/Helpers/members.js.map +1 -1
- package/Helpers/permissions.js.map +1 -1
- package/Helpers/ui.js +12 -11
- package/Helpers/ui.js.map +1 -1
- package/Interactions/builder.d.ts.map +1 -1
- package/Interactions/builder.js.map +1 -1
- package/Interactions/context.d.ts.map +1 -1
- package/Interactions/context.js.map +1 -1
- package/Interactions/definitions.d.ts.map +1 -1
- package/Interactions/definitions.js.map +1 -1
- package/Interactions/gateway.d.ts +1 -1
- package/Interactions/gateway.d.ts.map +1 -1
- package/Interactions/gateway.js.map +1 -1
- package/Interactions/handlers.d.ts.map +1 -1
- package/Interactions/handlers.js +7 -7
- package/Interactions/handlers.js.map +1 -1
- package/Interactions/index.d.ts.map +1 -1
- package/Interactions/index.js.map +1 -1
- package/Interactions/utils.d.ts.map +1 -1
- package/Interactions/utils.js.map +1 -1
- package/Interactions/webhook.d.ts.map +1 -1
- package/Interactions/webhook.js.map +1 -1
- package/Log.js.map +1 -1
- package/RateLimit.d.ts.map +1 -1
- package/RateLimit.js.map +1 -1
- package/gateway.d.ts +1 -1
- package/mjs/Cache/memoryTTL.mjs.map +1 -1
- package/mjs/Cache/prelude.mjs.map +1 -1
- package/mjs/Cache.mjs.map +1 -1
- package/mjs/DiscordGateway/DiscordWS.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/heartbeats.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/sendEvents.mjs +7 -6
- package/mjs/DiscordGateway/Shard/sendEvents.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard/utils.mjs.map +1 -1
- package/mjs/DiscordGateway/Shard.mjs +8 -7
- package/mjs/DiscordGateway/Shard.mjs.map +1 -1
- package/mjs/DiscordGateway/Sharder.mjs.map +1 -1
- package/mjs/DiscordGateway/WS.mjs.map +1 -1
- package/mjs/DiscordGateway.mjs.map +1 -1
- package/mjs/DiscordREST/utils.mjs.map +1 -1
- package/mjs/DiscordREST.mjs.map +1 -1
- package/mjs/Helpers/flags.mjs.map +1 -1
- package/mjs/Helpers/intents.mjs.map +1 -1
- package/mjs/Helpers/interactions.mjs +3 -2
- package/mjs/Helpers/interactions.mjs.map +1 -1
- package/mjs/Helpers/members.mjs.map +1 -1
- package/mjs/Helpers/permissions.mjs.map +1 -1
- package/mjs/Helpers/ui.mjs +12 -11
- package/mjs/Helpers/ui.mjs.map +1 -1
- package/mjs/Interactions/builder.mjs.map +1 -1
- package/mjs/Interactions/context.mjs.map +1 -1
- package/mjs/Interactions/definitions.mjs.map +1 -1
- package/mjs/Interactions/gateway.mjs.map +1 -1
- package/mjs/Interactions/handlers.mjs +7 -7
- package/mjs/Interactions/handlers.mjs.map +1 -1
- package/mjs/Interactions/index.mjs.map +1 -1
- package/mjs/Interactions/utils.mjs.map +1 -1
- package/mjs/Interactions/webhook.mjs.map +1 -1
- package/mjs/Log.mjs.map +1 -1
- package/mjs/RateLimit.mjs.map +1 -1
- package/mjs/types.mjs +733 -9
- package/mjs/types.mjs.map +1 -1
- package/mjs/utils/Effect.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/mjs/webhooks.mjs.map +1 -1
- package/package.json +2 -2
- package/src/Cache/memoryTTL.ts +4 -6
- package/src/Cache/prelude.ts +13 -15
- package/src/Cache.ts +5 -2
- package/src/DiscordGateway/DiscordWS.ts +6 -5
- package/src/DiscordGateway/Shard/heartbeats.ts +2 -3
- package/src/DiscordGateway/Shard/utils.ts +10 -9
- package/src/DiscordGateway/Shard.ts +13 -12
- package/src/DiscordGateway/Sharder.ts +8 -8
- package/src/DiscordGateway/WS.ts +9 -6
- package/src/DiscordGateway.ts +9 -8
- package/src/DiscordREST/utils.ts +2 -4
- package/src/DiscordREST.ts +24 -26
- package/src/Helpers/flags.ts +4 -2
- package/src/Helpers/intents.ts +4 -3
- package/src/Helpers/interactions.ts +54 -51
- package/src/Helpers/members.ts +2 -2
- package/src/Helpers/permissions.ts +2 -2
- package/src/Interactions/builder.ts +18 -20
- package/src/Interactions/context.ts +31 -18
- package/src/Interactions/definitions.ts +36 -27
- package/src/Interactions/gateway.ts +85 -82
- package/src/Interactions/handlers.ts +35 -34
- package/src/Interactions/index.ts +20 -16
- package/src/Interactions/utils.ts +17 -13
- package/src/Interactions/webhook.ts +15 -19
- package/src/Log.ts +2 -2
- package/src/RateLimit.ts +4 -5
- package/src/types.ts +172 -188
- package/src/utils/Effect.ts +19 -21
- package/src/version.ts +1 -1
- package/src/webhooks.ts +1 -4
- package/types.d.ts +140 -132
- package/types.d.ts.map +1 -1
- package/types.js +784 -10
- package/types.js.map +1 -1
- package/utils/Effect.d.ts.map +1 -1
- package/utils/Effect.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/webhooks.d.ts +1 -1
- package/webhooks.d.ts.map +1 -1
- package/webhooks.js.map +1 -1
- package/tsconfig.tsbuildinfo +0 -1
package/mjs/types.mjs
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export var ActionType;
|
|
2
|
+
(function (ActionType) {
|
|
3
|
+
/** blocks a member's message and prevents it from being posted. A custom explanation can be specified and shown to members whenever their message is blocked. */
|
|
4
|
+
ActionType[ActionType["BLOCK_MESSAGE"] = 1] = "BLOCK_MESSAGE";
|
|
5
|
+
/** logs user content to a specified channel */
|
|
6
|
+
ActionType[ActionType["SEND_ALERT_MESSAGE"] = 2] = "SEND_ALERT_MESSAGE";
|
|
7
|
+
/** timeout user for a specified duration * */
|
|
8
|
+
ActionType[ActionType["TIMEOUT"] = 3] = "TIMEOUT";
|
|
9
|
+
})(ActionType || (ActionType = {}));
|
|
1
10
|
export const ActivityFlag = {
|
|
2
11
|
INSTANCE: 1 << 0,
|
|
3
12
|
JOIN: 1 << 1,
|
|
@@ -9,6 +18,53 @@ export const ActivityFlag = {
|
|
|
9
18
|
PARTY_PRIVACY_VOICE_CHANNEL: 1 << 7,
|
|
10
19
|
EMBEDDED: 1 << 8
|
|
11
20
|
};
|
|
21
|
+
export var ActivityType;
|
|
22
|
+
(function (ActivityType) {
|
|
23
|
+
ActivityType[ActivityType["GAME"] = 0] = "GAME";
|
|
24
|
+
ActivityType[ActivityType["STREAMING"] = 1] = "STREAMING";
|
|
25
|
+
ActivityType[ActivityType["LISTENING"] = 2] = "LISTENING";
|
|
26
|
+
ActivityType[ActivityType["WATCHING"] = 3] = "WATCHING";
|
|
27
|
+
ActivityType[ActivityType["CUSTOM"] = 4] = "CUSTOM";
|
|
28
|
+
ActivityType[ActivityType["COMPETING"] = 5] = "COMPETING";
|
|
29
|
+
})(ActivityType || (ActivityType = {}));
|
|
30
|
+
export var AllowedMentionType;
|
|
31
|
+
(function (AllowedMentionType) {
|
|
32
|
+
/** Controls role mentions */
|
|
33
|
+
AllowedMentionType["ROLE_MENTIONS"] = "roles";
|
|
34
|
+
/** Controls user mentions */
|
|
35
|
+
AllowedMentionType["USER_MENTIONS"] = "users";
|
|
36
|
+
/** Controls @everyone and @here mentions */
|
|
37
|
+
AllowedMentionType["EVERYONE_MENTIONS"] = "everyone";
|
|
38
|
+
})(AllowedMentionType || (AllowedMentionType = {}));
|
|
39
|
+
export var ApplicationCommandOptionType;
|
|
40
|
+
(function (ApplicationCommandOptionType) {
|
|
41
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["SUB_COMMAND"] = 1] = "SUB_COMMAND";
|
|
42
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["SUB_COMMAND_GROUP"] = 2] = "SUB_COMMAND_GROUP";
|
|
43
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["STRING"] = 3] = "STRING";
|
|
44
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["INTEGER"] = 4] = "INTEGER";
|
|
45
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["BOOLEAN"] = 5] = "BOOLEAN";
|
|
46
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["USER"] = 6] = "USER";
|
|
47
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["CHANNEL"] = 7] = "CHANNEL";
|
|
48
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["ROLE"] = 8] = "ROLE";
|
|
49
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["MENTIONABLE"] = 9] = "MENTIONABLE";
|
|
50
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["NUMBER"] = 10] = "NUMBER";
|
|
51
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["ATTACHMENT"] = 11] = "ATTACHMENT";
|
|
52
|
+
})(ApplicationCommandOptionType || (ApplicationCommandOptionType = {}));
|
|
53
|
+
export var ApplicationCommandPermissionType;
|
|
54
|
+
(function (ApplicationCommandPermissionType) {
|
|
55
|
+
ApplicationCommandPermissionType[ApplicationCommandPermissionType["ROLE"] = 1] = "ROLE";
|
|
56
|
+
ApplicationCommandPermissionType[ApplicationCommandPermissionType["USER"] = 2] = "USER";
|
|
57
|
+
ApplicationCommandPermissionType[ApplicationCommandPermissionType["CHANNEL"] = 3] = "CHANNEL";
|
|
58
|
+
})(ApplicationCommandPermissionType || (ApplicationCommandPermissionType = {}));
|
|
59
|
+
export var ApplicationCommandType;
|
|
60
|
+
(function (ApplicationCommandType) {
|
|
61
|
+
/** Slash commands; a text-based command that shows up when a user types / */
|
|
62
|
+
ApplicationCommandType[ApplicationCommandType["CHAT_INPUT"] = 1] = "CHAT_INPUT";
|
|
63
|
+
/** A UI-based command that shows up when you right click or tap on a user */
|
|
64
|
+
ApplicationCommandType[ApplicationCommandType["USER"] = 2] = "USER";
|
|
65
|
+
/** A UI-based command that shows up when you right click or tap on a message */
|
|
66
|
+
ApplicationCommandType[ApplicationCommandType["MESSAGE"] = 3] = "MESSAGE";
|
|
67
|
+
})(ApplicationCommandType || (ApplicationCommandType = {}));
|
|
12
68
|
export const ApplicationFlag = {
|
|
13
69
|
/** Indicates if an app uses the Auto Moderation API */
|
|
14
70
|
APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE: 1 << 6,
|
|
@@ -31,16 +87,208 @@ export const ApplicationFlag = {
|
|
|
31
87
|
/** Indicates if an app has registered global application commands */
|
|
32
88
|
APPLICATION_COMMAND_BADGE: 1 << 23
|
|
33
89
|
};
|
|
90
|
+
export var ApplicationRoleConnectionMetadataType;
|
|
91
|
+
(function (ApplicationRoleConnectionMetadataType) {
|
|
92
|
+
/** the metadata value (integer) is less than or equal to the guild's configured value (integer) */
|
|
93
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["INTEGER_LESS_THAN_OR_EQUAL"] = 1] = "INTEGER_LESS_THAN_OR_EQUAL";
|
|
94
|
+
/** the metadata value (integer) is greater than or equal to the guild's configured value (integer) */
|
|
95
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["INTEGER_GREATER_THAN_OR_EQUAL"] = 2] = "INTEGER_GREATER_THAN_OR_EQUAL";
|
|
96
|
+
/** the metadata value (integer) is equal to the guild's configured value (integer) */
|
|
97
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["INTEGER_EQUAL"] = 3] = "INTEGER_EQUAL";
|
|
98
|
+
/** the metadata value (integer) is not equal to the guild's configured value (integer) */
|
|
99
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["INTEGER_NOT_EQUAL"] = 4] = "INTEGER_NOT_EQUAL";
|
|
100
|
+
/** the metadata value (ISO8601 string) is less than or equal to the guild's configured value (integer; days before current date) */
|
|
101
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["DATETIME_LESS_THAN_OR_EQUAL"] = 5] = "DATETIME_LESS_THAN_OR_EQUAL";
|
|
102
|
+
/** the metadata value (ISO8601 string) is greater than or equal to the guild's configured value (integer; days before current date) */
|
|
103
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["DATETIME_GREATER_THAN_OR_EQUAL"] = 6] = "DATETIME_GREATER_THAN_OR_EQUAL";
|
|
104
|
+
/** the metadata value (integer) is equal to the guild's configured value (integer; 1) */
|
|
105
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["BOOLEAN_EQUAL"] = 7] = "BOOLEAN_EQUAL";
|
|
106
|
+
/** the metadata value (integer) is not equal to the guild's configured value (integer; 1) */
|
|
107
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["BOOLEAN_NOT_EQUAL"] = 8] = "BOOLEAN_NOT_EQUAL";
|
|
108
|
+
})(ApplicationRoleConnectionMetadataType || (ApplicationRoleConnectionMetadataType = {}));
|
|
34
109
|
export const AttachmentFlag = {
|
|
35
110
|
/** this attachment has been edited using the remix feature on mobile */
|
|
36
111
|
IS_REMIX: 1 << 2
|
|
37
112
|
};
|
|
113
|
+
export var AuditLogEvent;
|
|
114
|
+
(function (AuditLogEvent) {
|
|
115
|
+
/** Server settings were updated */
|
|
116
|
+
AuditLogEvent[AuditLogEvent["GUILD_UPDATE"] = 1] = "GUILD_UPDATE";
|
|
117
|
+
/** Channel was created */
|
|
118
|
+
AuditLogEvent[AuditLogEvent["CHANNEL_CREATE"] = 10] = "CHANNEL_CREATE";
|
|
119
|
+
/** Channel settings were updated */
|
|
120
|
+
AuditLogEvent[AuditLogEvent["CHANNEL_UPDATE"] = 11] = "CHANNEL_UPDATE";
|
|
121
|
+
/** Channel was deleted */
|
|
122
|
+
AuditLogEvent[AuditLogEvent["CHANNEL_DELETE"] = 12] = "CHANNEL_DELETE";
|
|
123
|
+
/** Permission overwrite was added to a channel */
|
|
124
|
+
AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_CREATE"] = 13] = "CHANNEL_OVERWRITE_CREATE";
|
|
125
|
+
/** Permission overwrite was updated for a channel */
|
|
126
|
+
AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_UPDATE"] = 14] = "CHANNEL_OVERWRITE_UPDATE";
|
|
127
|
+
/** Permission overwrite was deleted from a channel */
|
|
128
|
+
AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_DELETE"] = 15] = "CHANNEL_OVERWRITE_DELETE";
|
|
129
|
+
/** Member was removed from server */
|
|
130
|
+
AuditLogEvent[AuditLogEvent["MEMBER_KICK"] = 20] = "MEMBER_KICK";
|
|
131
|
+
/** Members were pruned from server */
|
|
132
|
+
AuditLogEvent[AuditLogEvent["MEMBER_PRUNE"] = 21] = "MEMBER_PRUNE";
|
|
133
|
+
/** Member was banned from server */
|
|
134
|
+
AuditLogEvent[AuditLogEvent["MEMBER_BAN_ADD"] = 22] = "MEMBER_BAN_ADD";
|
|
135
|
+
/** Server ban was lifted for a member */
|
|
136
|
+
AuditLogEvent[AuditLogEvent["MEMBER_BAN_REMOVE"] = 23] = "MEMBER_BAN_REMOVE";
|
|
137
|
+
/** Member was updated in server */
|
|
138
|
+
AuditLogEvent[AuditLogEvent["MEMBER_UPDATE"] = 24] = "MEMBER_UPDATE";
|
|
139
|
+
/** Member was added or removed from a role */
|
|
140
|
+
AuditLogEvent[AuditLogEvent["MEMBER_ROLE_UPDATE"] = 25] = "MEMBER_ROLE_UPDATE";
|
|
141
|
+
/** Member was moved to a different voice channel */
|
|
142
|
+
AuditLogEvent[AuditLogEvent["MEMBER_MOVE"] = 26] = "MEMBER_MOVE";
|
|
143
|
+
/** Member was disconnected from a voice channel */
|
|
144
|
+
AuditLogEvent[AuditLogEvent["MEMBER_DISCONNECT"] = 27] = "MEMBER_DISCONNECT";
|
|
145
|
+
/** Bot user was added to server */
|
|
146
|
+
AuditLogEvent[AuditLogEvent["BOT_ADD"] = 28] = "BOT_ADD";
|
|
147
|
+
/** Role was created */
|
|
148
|
+
AuditLogEvent[AuditLogEvent["ROLE_CREATE"] = 30] = "ROLE_CREATE";
|
|
149
|
+
/** Role was edited */
|
|
150
|
+
AuditLogEvent[AuditLogEvent["ROLE_UPDATE"] = 31] = "ROLE_UPDATE";
|
|
151
|
+
/** Role was deleted */
|
|
152
|
+
AuditLogEvent[AuditLogEvent["ROLE_DELETE"] = 32] = "ROLE_DELETE";
|
|
153
|
+
/** Server invite was created */
|
|
154
|
+
AuditLogEvent[AuditLogEvent["INVITE_CREATE"] = 40] = "INVITE_CREATE";
|
|
155
|
+
/** Server invite was updated */
|
|
156
|
+
AuditLogEvent[AuditLogEvent["INVITE_UPDATE"] = 41] = "INVITE_UPDATE";
|
|
157
|
+
/** Server invite was deleted */
|
|
158
|
+
AuditLogEvent[AuditLogEvent["INVITE_DELETE"] = 42] = "INVITE_DELETE";
|
|
159
|
+
/** Webhook was created */
|
|
160
|
+
AuditLogEvent[AuditLogEvent["WEBHOOK_CREATE"] = 50] = "WEBHOOK_CREATE";
|
|
161
|
+
/** Webhook properties or channel were updated */
|
|
162
|
+
AuditLogEvent[AuditLogEvent["WEBHOOK_UPDATE"] = 51] = "WEBHOOK_UPDATE";
|
|
163
|
+
/** Webhook was deleted */
|
|
164
|
+
AuditLogEvent[AuditLogEvent["WEBHOOK_DELETE"] = 52] = "WEBHOOK_DELETE";
|
|
165
|
+
/** Emoji was created */
|
|
166
|
+
AuditLogEvent[AuditLogEvent["EMOJI_CREATE"] = 60] = "EMOJI_CREATE";
|
|
167
|
+
/** Emoji name was updated */
|
|
168
|
+
AuditLogEvent[AuditLogEvent["EMOJI_UPDATE"] = 61] = "EMOJI_UPDATE";
|
|
169
|
+
/** Emoji was deleted */
|
|
170
|
+
AuditLogEvent[AuditLogEvent["EMOJI_DELETE"] = 62] = "EMOJI_DELETE";
|
|
171
|
+
/** Single message was deleted */
|
|
172
|
+
AuditLogEvent[AuditLogEvent["MESSAGE_DELETE"] = 72] = "MESSAGE_DELETE";
|
|
173
|
+
/** Multiple messages were deleted */
|
|
174
|
+
AuditLogEvent[AuditLogEvent["MESSAGE_BULK_DELETE"] = 73] = "MESSAGE_BULK_DELETE";
|
|
175
|
+
/** Message was pinned to a channel */
|
|
176
|
+
AuditLogEvent[AuditLogEvent["MESSAGE_PIN"] = 74] = "MESSAGE_PIN";
|
|
177
|
+
/** Message was unpinned from a channel */
|
|
178
|
+
AuditLogEvent[AuditLogEvent["MESSAGE_UNPIN"] = 75] = "MESSAGE_UNPIN";
|
|
179
|
+
/** App was added to server */
|
|
180
|
+
AuditLogEvent[AuditLogEvent["INTEGRATION_CREATE"] = 80] = "INTEGRATION_CREATE";
|
|
181
|
+
/** App was updated (as an example, its scopes were updated) */
|
|
182
|
+
AuditLogEvent[AuditLogEvent["INTEGRATION_UPDATE"] = 81] = "INTEGRATION_UPDATE";
|
|
183
|
+
/** App was removed from server */
|
|
184
|
+
AuditLogEvent[AuditLogEvent["INTEGRATION_DELETE"] = 82] = "INTEGRATION_DELETE";
|
|
185
|
+
/** Stage instance was created (stage channel becomes live) */
|
|
186
|
+
AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_CREATE"] = 83] = "STAGE_INSTANCE_CREATE";
|
|
187
|
+
/** Stage instance details were updated */
|
|
188
|
+
AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_UPDATE"] = 84] = "STAGE_INSTANCE_UPDATE";
|
|
189
|
+
/** Stage instance was deleted (stage channel no longer live) */
|
|
190
|
+
AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_DELETE"] = 85] = "STAGE_INSTANCE_DELETE";
|
|
191
|
+
/** Sticker was created */
|
|
192
|
+
AuditLogEvent[AuditLogEvent["STICKER_CREATE"] = 90] = "STICKER_CREATE";
|
|
193
|
+
/** Sticker details were updated */
|
|
194
|
+
AuditLogEvent[AuditLogEvent["STICKER_UPDATE"] = 91] = "STICKER_UPDATE";
|
|
195
|
+
/** Sticker was deleted */
|
|
196
|
+
AuditLogEvent[AuditLogEvent["STICKER_DELETE"] = 92] = "STICKER_DELETE";
|
|
197
|
+
/** Event was created */
|
|
198
|
+
AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_CREATE"] = 100] = "GUILD_SCHEDULED_EVENT_CREATE";
|
|
199
|
+
/** Event was updated */
|
|
200
|
+
AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_UPDATE"] = 101] = "GUILD_SCHEDULED_EVENT_UPDATE";
|
|
201
|
+
/** Event was cancelled */
|
|
202
|
+
AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_DELETE"] = 102] = "GUILD_SCHEDULED_EVENT_DELETE";
|
|
203
|
+
/** Thread was created in a channel */
|
|
204
|
+
AuditLogEvent[AuditLogEvent["THREAD_CREATE"] = 110] = "THREAD_CREATE";
|
|
205
|
+
/** Thread was updated */
|
|
206
|
+
AuditLogEvent[AuditLogEvent["THREAD_UPDATE"] = 111] = "THREAD_UPDATE";
|
|
207
|
+
/** Thread was deleted */
|
|
208
|
+
AuditLogEvent[AuditLogEvent["THREAD_DELETE"] = 112] = "THREAD_DELETE";
|
|
209
|
+
/** Permissions were updated for a command */
|
|
210
|
+
AuditLogEvent[AuditLogEvent["APPLICATION_COMMAND_PERMISSION_UPDATE"] = 121] = "APPLICATION_COMMAND_PERMISSION_UPDATE";
|
|
211
|
+
/** Auto Moderation rule was created */
|
|
212
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_CREATE"] = 140] = "AUTO_MODERATION_RULE_CREATE";
|
|
213
|
+
/** Auto Moderation rule was updated */
|
|
214
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_UPDATE"] = 141] = "AUTO_MODERATION_RULE_UPDATE";
|
|
215
|
+
/** Auto Moderation rule was deleted */
|
|
216
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_DELETE"] = 142] = "AUTO_MODERATION_RULE_DELETE";
|
|
217
|
+
/** Message was blocked by Auto Moderation */
|
|
218
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_BLOCK_MESSAGE"] = 143] = "AUTO_MODERATION_BLOCK_MESSAGE";
|
|
219
|
+
/** Message was flagged by Auto Moderation */
|
|
220
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_FLAG_TO_CHANNEL"] = 144] = "AUTO_MODERATION_FLAG_TO_CHANNEL";
|
|
221
|
+
/** Member was timed out by Auto Moderation */
|
|
222
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_USER_COMMUNICATION_DISABLED"] = 145] = "AUTO_MODERATION_USER_COMMUNICATION_DISABLED";
|
|
223
|
+
/** Creator monetization request was created */
|
|
224
|
+
AuditLogEvent[AuditLogEvent["CREATOR_MONETIZATION_REQUEST_CREATED"] = 150] = "CREATOR_MONETIZATION_REQUEST_CREATED";
|
|
225
|
+
/** Creator monetization terms were accepted */
|
|
226
|
+
AuditLogEvent[AuditLogEvent["CREATOR_MONETIZATION_TERMS_ACCEPTED"] = 151] = "CREATOR_MONETIZATION_TERMS_ACCEPTED";
|
|
227
|
+
})(AuditLogEvent || (AuditLogEvent = {}));
|
|
228
|
+
export var ButtonStyle;
|
|
229
|
+
(function (ButtonStyle) {
|
|
230
|
+
ButtonStyle[ButtonStyle["PRIMARY"] = 1] = "PRIMARY";
|
|
231
|
+
ButtonStyle[ButtonStyle["SECONDARY"] = 2] = "SECONDARY";
|
|
232
|
+
ButtonStyle[ButtonStyle["SUCCESS"] = 3] = "SUCCESS";
|
|
233
|
+
ButtonStyle[ButtonStyle["DANGER"] = 4] = "DANGER";
|
|
234
|
+
ButtonStyle[ButtonStyle["LINK"] = 5] = "LINK";
|
|
235
|
+
})(ButtonStyle || (ButtonStyle = {}));
|
|
38
236
|
export const ChannelFlag = {
|
|
39
|
-
/** this thread is pinned to the top of its parent GUILD_FORUM channel */
|
|
237
|
+
/** this thread is pinned to the top of its parent GUILD_FORUM or GUILD_MEDIA channel */
|
|
40
238
|
PINNED: 1 << 1,
|
|
41
|
-
/** whether a tag is required to be specified when creating a thread in a GUILD_FORUM channel. Tags are specified in the applied_tags field. */
|
|
42
|
-
REQUIRE_TAG: 1 << 4
|
|
239
|
+
/** whether a tag is required to be specified when creating a thread in a GUILD_FORUM or a GUILD_MEDIA channel. Tags are specified in the applied_tags field. */
|
|
240
|
+
REQUIRE_TAG: 1 << 4,
|
|
241
|
+
/** when set hides the embedded media download options. Available only for media channels */
|
|
242
|
+
HIDE_MEDIA_DOWNLOAD_OPTIONS: 1 << 15
|
|
43
243
|
};
|
|
244
|
+
export var ChannelType;
|
|
245
|
+
(function (ChannelType) {
|
|
246
|
+
/** a text channel within a server */
|
|
247
|
+
ChannelType[ChannelType["GUILD_TEXT"] = 0] = "GUILD_TEXT";
|
|
248
|
+
/** a direct message between users */
|
|
249
|
+
ChannelType[ChannelType["DM"] = 1] = "DM";
|
|
250
|
+
/** a voice channel within a server */
|
|
251
|
+
ChannelType[ChannelType["GUILD_VOICE"] = 2] = "GUILD_VOICE";
|
|
252
|
+
/** a direct message between multiple users */
|
|
253
|
+
ChannelType[ChannelType["GROUP_DM"] = 3] = "GROUP_DM";
|
|
254
|
+
/** an organizational category that contains up to 50 channels */
|
|
255
|
+
ChannelType[ChannelType["GUILD_CATEGORY"] = 4] = "GUILD_CATEGORY";
|
|
256
|
+
/** a channel that users can follow and crosspost into their own server (formerly news channels) */
|
|
257
|
+
ChannelType[ChannelType["GUILD_ANNOUNCEMENT"] = 5] = "GUILD_ANNOUNCEMENT";
|
|
258
|
+
/** a temporary sub-channel within a GUILD_ANNOUNCEMENT channel */
|
|
259
|
+
ChannelType[ChannelType["ANNOUNCEMENT_THREAD"] = 10] = "ANNOUNCEMENT_THREAD";
|
|
260
|
+
/** a temporary sub-channel within a GUILD_TEXT or GUILD_FORUM channel */
|
|
261
|
+
ChannelType[ChannelType["PUBLIC_THREAD"] = 11] = "PUBLIC_THREAD";
|
|
262
|
+
/** a temporary sub-channel within a GUILD_TEXT channel that is only viewable by those invited and those with the MANAGE_THREADS permission */
|
|
263
|
+
ChannelType[ChannelType["PRIVATE_THREAD"] = 12] = "PRIVATE_THREAD";
|
|
264
|
+
/** a voice channel for hosting events with an audience */
|
|
265
|
+
ChannelType[ChannelType["GUILD_STAGE_VOICE"] = 13] = "GUILD_STAGE_VOICE";
|
|
266
|
+
/** the channel in a hub containing the listed servers */
|
|
267
|
+
ChannelType[ChannelType["GUILD_DIRECTORY"] = 14] = "GUILD_DIRECTORY";
|
|
268
|
+
/** Channel that can only contain threads */
|
|
269
|
+
ChannelType[ChannelType["GUILD_FORUM"] = 15] = "GUILD_FORUM";
|
|
270
|
+
/** Channel that can only contain threads, similar to GUILD_FORUM channels */
|
|
271
|
+
ChannelType[ChannelType["GUILD_MEDIA"] = 16] = "GUILD_MEDIA";
|
|
272
|
+
})(ChannelType || (ChannelType = {}));
|
|
273
|
+
export var ComponentType;
|
|
274
|
+
(function (ComponentType) {
|
|
275
|
+
/** Container for other components */
|
|
276
|
+
ComponentType[ComponentType["ACTION_ROW"] = 1] = "ACTION_ROW";
|
|
277
|
+
/** Button object */
|
|
278
|
+
ComponentType[ComponentType["BUTTON"] = 2] = "BUTTON";
|
|
279
|
+
/** Select menu for picking from defined text options */
|
|
280
|
+
ComponentType[ComponentType["STRING_SELECT"] = 3] = "STRING_SELECT";
|
|
281
|
+
/** Text input object */
|
|
282
|
+
ComponentType[ComponentType["TEXT_INPUT"] = 4] = "TEXT_INPUT";
|
|
283
|
+
/** Select menu for users */
|
|
284
|
+
ComponentType[ComponentType["USER_SELECT"] = 5] = "USER_SELECT";
|
|
285
|
+
/** Select menu for roles */
|
|
286
|
+
ComponentType[ComponentType["ROLE_SELECT"] = 6] = "ROLE_SELECT";
|
|
287
|
+
/** Select menu for mentionables (users and roles) */
|
|
288
|
+
ComponentType[ComponentType["MENTIONABLE_SELECT"] = 7] = "MENTIONABLE_SELECT";
|
|
289
|
+
/** Select menu for channels */
|
|
290
|
+
ComponentType[ComponentType["CHANNEL_SELECT"] = 8] = "CHANNEL_SELECT";
|
|
291
|
+
})(ComponentType || (ComponentType = {}));
|
|
44
292
|
export function createRoutes(fetch) {
|
|
45
293
|
return {
|
|
46
294
|
addGuildMember: (guildId, userId, params, options) => fetch({
|
|
@@ -783,11 +1031,6 @@ export function createRoutes(fetch) {
|
|
|
783
1031
|
params,
|
|
784
1032
|
options
|
|
785
1033
|
}),
|
|
786
|
-
listNitroStickerPacks: options => fetch({
|
|
787
|
-
method: "GET",
|
|
788
|
-
url: `/sticker-packs`,
|
|
789
|
-
options
|
|
790
|
-
}),
|
|
791
1034
|
listPrivateArchivedThreads: (channelId, params, options) => fetch({
|
|
792
1035
|
method: "GET",
|
|
793
1036
|
url: `/channels/${channelId}/threads/archived/private`,
|
|
@@ -806,6 +1049,11 @@ export function createRoutes(fetch) {
|
|
|
806
1049
|
params,
|
|
807
1050
|
options
|
|
808
1051
|
}),
|
|
1052
|
+
listStickerPacks: options => fetch({
|
|
1053
|
+
method: "GET",
|
|
1054
|
+
url: `/sticker-packs`,
|
|
1055
|
+
options
|
|
1056
|
+
}),
|
|
809
1057
|
listThreadMembers: (channelId, params, options) => fetch({
|
|
810
1058
|
method: "GET",
|
|
811
1059
|
url: `/channels/${channelId}/thread-members`,
|
|
@@ -990,7 +1238,7 @@ export function createRoutes(fetch) {
|
|
|
990
1238
|
params,
|
|
991
1239
|
options
|
|
992
1240
|
}),
|
|
993
|
-
|
|
1241
|
+
startThreadInForumOrMediaChannel: (channelId, params, options) => fetch({
|
|
994
1242
|
method: "POST",
|
|
995
1243
|
url: `/channels/${channelId}/threads`,
|
|
996
1244
|
params,
|
|
@@ -1030,6 +1278,51 @@ export function createRoutes(fetch) {
|
|
|
1030
1278
|
})
|
|
1031
1279
|
};
|
|
1032
1280
|
}
|
|
1281
|
+
export var DefaultMessageNotificationLevel;
|
|
1282
|
+
(function (DefaultMessageNotificationLevel) {
|
|
1283
|
+
/** members will receive notifications for all messages by default */
|
|
1284
|
+
DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["ALL_MESSAGES"] = 0] = "ALL_MESSAGES";
|
|
1285
|
+
/** members will receive notifications only for messages that @mention them by default */
|
|
1286
|
+
DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["ONLY_MENTIONS"] = 1] = "ONLY_MENTIONS";
|
|
1287
|
+
})(DefaultMessageNotificationLevel || (DefaultMessageNotificationLevel = {}));
|
|
1288
|
+
export var EmbedType;
|
|
1289
|
+
(function (EmbedType) {
|
|
1290
|
+
/** generic embed rendered from embed attributes */
|
|
1291
|
+
EmbedType["RICH"] = "rich";
|
|
1292
|
+
/** image embed */
|
|
1293
|
+
EmbedType["IMAGE"] = "image";
|
|
1294
|
+
/** video embed */
|
|
1295
|
+
EmbedType["VIDEO"] = "video";
|
|
1296
|
+
/** animated gif image embed rendered as a video embed */
|
|
1297
|
+
EmbedType["GIFV"] = "gifv";
|
|
1298
|
+
/** article embed */
|
|
1299
|
+
EmbedType["ARTICLE"] = "article";
|
|
1300
|
+
/** link embed */
|
|
1301
|
+
EmbedType["LINK"] = "link";
|
|
1302
|
+
})(EmbedType || (EmbedType = {}));
|
|
1303
|
+
export var EventType;
|
|
1304
|
+
(function (EventType) {
|
|
1305
|
+
/** when a member sends or edits a message in the guild */
|
|
1306
|
+
EventType[EventType["MESSAGE_SEND"] = 1] = "MESSAGE_SEND";
|
|
1307
|
+
})(EventType || (EventType = {}));
|
|
1308
|
+
export var ExplicitContentFilterLevel;
|
|
1309
|
+
(function (ExplicitContentFilterLevel) {
|
|
1310
|
+
/** media content will not be scanned */
|
|
1311
|
+
ExplicitContentFilterLevel[ExplicitContentFilterLevel["DISABLED"] = 0] = "DISABLED";
|
|
1312
|
+
/** media content sent by members without roles will be scanned */
|
|
1313
|
+
ExplicitContentFilterLevel[ExplicitContentFilterLevel["MEMBERS_WITHOUT_ROLES"] = 1] = "MEMBERS_WITHOUT_ROLES";
|
|
1314
|
+
/** media content sent by all members will be scanned */
|
|
1315
|
+
ExplicitContentFilterLevel[ExplicitContentFilterLevel["ALL_MEMBERS"] = 2] = "ALL_MEMBERS";
|
|
1316
|
+
})(ExplicitContentFilterLevel || (ExplicitContentFilterLevel = {}));
|
|
1317
|
+
export var ForumLayoutType;
|
|
1318
|
+
(function (ForumLayoutType) {
|
|
1319
|
+
/** No default has been set for forum channel */
|
|
1320
|
+
ForumLayoutType[ForumLayoutType["NOT_SET"] = 0] = "NOT_SET";
|
|
1321
|
+
/** Display posts as a list */
|
|
1322
|
+
ForumLayoutType[ForumLayoutType["LIST_VIEW"] = 1] = "LIST_VIEW";
|
|
1323
|
+
/** Display posts as a collection of tiles */
|
|
1324
|
+
ForumLayoutType[ForumLayoutType["GALLERY_VIEW"] = 2] = "GALLERY_VIEW";
|
|
1325
|
+
})(ForumLayoutType || (ForumLayoutType = {}));
|
|
1033
1326
|
export const GatewayIntents = {
|
|
1034
1327
|
GUILDS: 1 << 0,
|
|
1035
1328
|
GUILD_MEMBERS: 1 << 1,
|
|
@@ -1051,6 +1344,88 @@ export const GatewayIntents = {
|
|
|
1051
1344
|
AUTO_MODERATION_CONFIGURATION: 1 << 20,
|
|
1052
1345
|
AUTO_MODERATION_EXECUTION: 1 << 21
|
|
1053
1346
|
};
|
|
1347
|
+
export var GatewayOpcode;
|
|
1348
|
+
(function (GatewayOpcode) {
|
|
1349
|
+
/** An event was dispatched. */
|
|
1350
|
+
GatewayOpcode[GatewayOpcode["DISPATCH"] = 0] = "DISPATCH";
|
|
1351
|
+
/** Fired periodically by the client to keep the connection alive. */
|
|
1352
|
+
GatewayOpcode[GatewayOpcode["HEARTBEAT"] = 1] = "HEARTBEAT";
|
|
1353
|
+
/** Starts a new session during the initial handshake. */
|
|
1354
|
+
GatewayOpcode[GatewayOpcode["IDENTIFY"] = 2] = "IDENTIFY";
|
|
1355
|
+
/** Update the client's presence. */
|
|
1356
|
+
GatewayOpcode[GatewayOpcode["PRESENCE_UPDATE"] = 3] = "PRESENCE_UPDATE";
|
|
1357
|
+
/** Used to join/leave or move between voice channels. */
|
|
1358
|
+
GatewayOpcode[GatewayOpcode["VOICE_STATE_UPDATE"] = 4] = "VOICE_STATE_UPDATE";
|
|
1359
|
+
/** Resume a previous session that was disconnected. */
|
|
1360
|
+
GatewayOpcode[GatewayOpcode["RESUME"] = 6] = "RESUME";
|
|
1361
|
+
/** You should attempt to reconnect and resume immediately. */
|
|
1362
|
+
GatewayOpcode[GatewayOpcode["RECONNECT"] = 7] = "RECONNECT";
|
|
1363
|
+
/** Request information about offline guild members in a large guild. */
|
|
1364
|
+
GatewayOpcode[GatewayOpcode["REQUEST_GUILD_MEMBERS"] = 8] = "REQUEST_GUILD_MEMBERS";
|
|
1365
|
+
/** The session has been invalidated. You should reconnect and identify/resume accordingly. */
|
|
1366
|
+
GatewayOpcode[GatewayOpcode["INVALID_SESSION"] = 9] = "INVALID_SESSION";
|
|
1367
|
+
/** Sent immediately after connecting, contains the heartbeat_interval to use. */
|
|
1368
|
+
GatewayOpcode[GatewayOpcode["HELLO"] = 10] = "HELLO";
|
|
1369
|
+
/** Sent in response to receiving a heartbeat to acknowledge that it has been received. */
|
|
1370
|
+
GatewayOpcode[GatewayOpcode["HEARTBEAT_ACK"] = 11] = "HEARTBEAT_ACK";
|
|
1371
|
+
})(GatewayOpcode || (GatewayOpcode = {}));
|
|
1372
|
+
export var GuildFeature;
|
|
1373
|
+
(function (GuildFeature) {
|
|
1374
|
+
/** guild has access to set an animated guild banner image */
|
|
1375
|
+
GuildFeature["ANIMATED_BANNER"] = "ANIMATED_BANNER";
|
|
1376
|
+
/** guild has access to set an animated guild icon */
|
|
1377
|
+
GuildFeature["ANIMATED_ICON"] = "ANIMATED_ICON";
|
|
1378
|
+
/** guild is using the old permissions configuration behavior */
|
|
1379
|
+
GuildFeature["APPLICATION_COMMAND_PERMISSIONS_V2"] = "APPLICATION_COMMAND_PERMISSIONS_V2";
|
|
1380
|
+
/** guild has set up auto moderation rules */
|
|
1381
|
+
GuildFeature["AUTO_MODERATION"] = "AUTO_MODERATION";
|
|
1382
|
+
/** guild has access to set a guild banner image */
|
|
1383
|
+
GuildFeature["BANNER"] = "BANNER";
|
|
1384
|
+
/** guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates */
|
|
1385
|
+
GuildFeature["COMMUNITY"] = "COMMUNITY";
|
|
1386
|
+
/** guild has enabled monetization */
|
|
1387
|
+
GuildFeature["CREATOR_MONETIZABLE_PROVISIONAL"] = "CREATOR_MONETIZABLE_PROVISIONAL";
|
|
1388
|
+
/** guild has enabled the role subscription promo page */
|
|
1389
|
+
GuildFeature["CREATOR_STORE_PAGE"] = "CREATOR_STORE_PAGE";
|
|
1390
|
+
/** guild has been set as a support server on the App Directory */
|
|
1391
|
+
GuildFeature["DEVELOPER_SUPPORT_SERVER"] = "DEVELOPER_SUPPORT_SERVER";
|
|
1392
|
+
/** guild is able to be discovered in the directory */
|
|
1393
|
+
GuildFeature["DISCOVERABLE"] = "DISCOVERABLE";
|
|
1394
|
+
/** guild is able to be featured in the directory */
|
|
1395
|
+
GuildFeature["FEATURABLE"] = "FEATURABLE";
|
|
1396
|
+
/** guild has paused invites, preventing new users from joining */
|
|
1397
|
+
GuildFeature["INVITES_DISABLED"] = "INVITES_DISABLED";
|
|
1398
|
+
/** guild has access to set an invite splash background */
|
|
1399
|
+
GuildFeature["INVITE_SPLASH"] = "INVITE_SPLASH";
|
|
1400
|
+
/** guild has enabled Membership Screening */
|
|
1401
|
+
GuildFeature["MEMBER_VERIFICATION_GATE_ENABLED"] = "MEMBER_VERIFICATION_GATE_ENABLED";
|
|
1402
|
+
/** guild has increased custom sticker slots */
|
|
1403
|
+
GuildFeature["MORE_STICKERS"] = "MORE_STICKERS";
|
|
1404
|
+
/** guild has access to create announcement channels */
|
|
1405
|
+
GuildFeature["NEWS"] = "NEWS";
|
|
1406
|
+
/** guild is partnered */
|
|
1407
|
+
GuildFeature["PARTNERED"] = "PARTNERED";
|
|
1408
|
+
/** guild can be previewed before joining via Membership Screening or the directory */
|
|
1409
|
+
GuildFeature["PREVIEW_ENABLED"] = "PREVIEW_ENABLED";
|
|
1410
|
+
/** guild has disabled alerts for join raids in the configured safety alerts channel */
|
|
1411
|
+
GuildFeature["RAID_ALERTS_DISABLED"] = "RAID_ALERTS_DISABLED";
|
|
1412
|
+
/** guild is able to set role icons */
|
|
1413
|
+
GuildFeature["ROLE_ICONS"] = "ROLE_ICONS";
|
|
1414
|
+
/** guild has role subscriptions that can be purchased */
|
|
1415
|
+
GuildFeature["ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE"] = "ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE";
|
|
1416
|
+
/** guild has enabled role subscriptions */
|
|
1417
|
+
GuildFeature["ROLE_SUBSCRIPTIONS_ENABLED"] = "ROLE_SUBSCRIPTIONS_ENABLED";
|
|
1418
|
+
/** guild has enabled ticketed events */
|
|
1419
|
+
GuildFeature["TICKETED_EVENTS_ENABLED"] = "TICKETED_EVENTS_ENABLED";
|
|
1420
|
+
/** guild has access to set a vanity URL */
|
|
1421
|
+
GuildFeature["VANITY_URL"] = "VANITY_URL";
|
|
1422
|
+
/** guild is verified */
|
|
1423
|
+
GuildFeature["VERIFIED"] = "VERIFIED";
|
|
1424
|
+
/** guild has access to set 384kbps bitrate in voice (previously VIP voice servers) */
|
|
1425
|
+
GuildFeature["VIP_REGIONS"] = "VIP_REGIONS";
|
|
1426
|
+
/** guild has enabled the welcome screen */
|
|
1427
|
+
GuildFeature["WELCOME_SCREEN_ENABLED"] = "WELCOME_SCREEN_ENABLED";
|
|
1428
|
+
})(GuildFeature || (GuildFeature = {}));
|
|
1054
1429
|
export const GuildMemberFlag = {
|
|
1055
1430
|
/** Member has left and rejoined the guild */
|
|
1056
1431
|
DID_REJOIN: 1 << 0,
|
|
@@ -1061,6 +1436,87 @@ export const GuildMemberFlag = {
|
|
|
1061
1436
|
/** Member has started onboarding */
|
|
1062
1437
|
STARTED_ONBOARDING: 1 << 3
|
|
1063
1438
|
};
|
|
1439
|
+
export var GuildNsfwLevel;
|
|
1440
|
+
(function (GuildNsfwLevel) {
|
|
1441
|
+
GuildNsfwLevel[GuildNsfwLevel["DEFAULT"] = 0] = "DEFAULT";
|
|
1442
|
+
GuildNsfwLevel[GuildNsfwLevel["EXPLICIT"] = 1] = "EXPLICIT";
|
|
1443
|
+
GuildNsfwLevel[GuildNsfwLevel["SAFE"] = 2] = "SAFE";
|
|
1444
|
+
GuildNsfwLevel[GuildNsfwLevel["AGE_RESTRICTED"] = 3] = "AGE_RESTRICTED";
|
|
1445
|
+
})(GuildNsfwLevel || (GuildNsfwLevel = {}));
|
|
1446
|
+
export var GuildScheduledEventEntityType;
|
|
1447
|
+
(function (GuildScheduledEventEntityType) {
|
|
1448
|
+
GuildScheduledEventEntityType[GuildScheduledEventEntityType["STAGE_INSTANCE"] = 1] = "STAGE_INSTANCE";
|
|
1449
|
+
GuildScheduledEventEntityType[GuildScheduledEventEntityType["VOICE"] = 2] = "VOICE";
|
|
1450
|
+
GuildScheduledEventEntityType[GuildScheduledEventEntityType["EXTERNAL"] = 3] = "EXTERNAL";
|
|
1451
|
+
})(GuildScheduledEventEntityType || (GuildScheduledEventEntityType = {}));
|
|
1452
|
+
export var GuildScheduledEventPrivacyLevel;
|
|
1453
|
+
(function (GuildScheduledEventPrivacyLevel) {
|
|
1454
|
+
/** the scheduled event is only accessible to guild members */
|
|
1455
|
+
GuildScheduledEventPrivacyLevel[GuildScheduledEventPrivacyLevel["GUILD_ONLY"] = 2] = "GUILD_ONLY";
|
|
1456
|
+
})(GuildScheduledEventPrivacyLevel || (GuildScheduledEventPrivacyLevel = {}));
|
|
1457
|
+
export var GuildScheduledEventStatus;
|
|
1458
|
+
(function (GuildScheduledEventStatus) {
|
|
1459
|
+
GuildScheduledEventStatus[GuildScheduledEventStatus["SCHEDULED"] = 1] = "SCHEDULED";
|
|
1460
|
+
GuildScheduledEventStatus[GuildScheduledEventStatus["ACTIVE"] = 2] = "ACTIVE";
|
|
1461
|
+
GuildScheduledEventStatus[GuildScheduledEventStatus["COMPLETED"] = 3] = "COMPLETED";
|
|
1462
|
+
GuildScheduledEventStatus[GuildScheduledEventStatus["CANCELED"] = 4] = "CANCELED";
|
|
1463
|
+
})(GuildScheduledEventStatus || (GuildScheduledEventStatus = {}));
|
|
1464
|
+
export var IntegrationExpireBehavior;
|
|
1465
|
+
(function (IntegrationExpireBehavior) {
|
|
1466
|
+
IntegrationExpireBehavior[IntegrationExpireBehavior["REMOVE_ROLE"] = 0] = "REMOVE_ROLE";
|
|
1467
|
+
IntegrationExpireBehavior[IntegrationExpireBehavior["KICK"] = 1] = "KICK";
|
|
1468
|
+
})(IntegrationExpireBehavior || (IntegrationExpireBehavior = {}));
|
|
1469
|
+
export var InteractionCallbackType;
|
|
1470
|
+
(function (InteractionCallbackType) {
|
|
1471
|
+
/** ACK a Ping */
|
|
1472
|
+
InteractionCallbackType[InteractionCallbackType["PONG"] = 1] = "PONG";
|
|
1473
|
+
/** respond to an interaction with a message */
|
|
1474
|
+
InteractionCallbackType[InteractionCallbackType["CHANNEL_MESSAGE_WITH_SOURCE"] = 4] = "CHANNEL_MESSAGE_WITH_SOURCE";
|
|
1475
|
+
/** ACK an interaction and edit a response later, the user sees a loading state */
|
|
1476
|
+
InteractionCallbackType[InteractionCallbackType["DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE"] = 5] = "DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE";
|
|
1477
|
+
/** for components, ACK an interaction and edit the original message later; the user does not see a loading state */
|
|
1478
|
+
InteractionCallbackType[InteractionCallbackType["DEFERRED_UPDATE_MESSAGE"] = 6] = "DEFERRED_UPDATE_MESSAGE";
|
|
1479
|
+
/** for components, edit the message the component was attached to */
|
|
1480
|
+
InteractionCallbackType[InteractionCallbackType["UPDATE_MESSAGE"] = 7] = "UPDATE_MESSAGE";
|
|
1481
|
+
/** respond to an autocomplete interaction with suggested choices */
|
|
1482
|
+
InteractionCallbackType[InteractionCallbackType["APPLICATION_COMMAND_AUTOCOMPLETE_RESULT"] = 8] = "APPLICATION_COMMAND_AUTOCOMPLETE_RESULT";
|
|
1483
|
+
/** respond to an interaction with a popup modal */
|
|
1484
|
+
InteractionCallbackType[InteractionCallbackType["MODAL"] = 9] = "MODAL";
|
|
1485
|
+
})(InteractionCallbackType || (InteractionCallbackType = {}));
|
|
1486
|
+
export var InteractionType;
|
|
1487
|
+
(function (InteractionType) {
|
|
1488
|
+
InteractionType[InteractionType["PING"] = 1] = "PING";
|
|
1489
|
+
InteractionType[InteractionType["APPLICATION_COMMAND"] = 2] = "APPLICATION_COMMAND";
|
|
1490
|
+
InteractionType[InteractionType["MESSAGE_COMPONENT"] = 3] = "MESSAGE_COMPONENT";
|
|
1491
|
+
InteractionType[InteractionType["APPLICATION_COMMAND_AUTOCOMPLETE"] = 4] = "APPLICATION_COMMAND_AUTOCOMPLETE";
|
|
1492
|
+
InteractionType[InteractionType["MODAL_SUBMIT"] = 5] = "MODAL_SUBMIT";
|
|
1493
|
+
})(InteractionType || (InteractionType = {}));
|
|
1494
|
+
export var InviteTargetType;
|
|
1495
|
+
(function (InviteTargetType) {
|
|
1496
|
+
InviteTargetType[InviteTargetType["STREAM"] = 1] = "STREAM";
|
|
1497
|
+
InviteTargetType[InviteTargetType["EMBEDDED_APPLICATION"] = 2] = "EMBEDDED_APPLICATION";
|
|
1498
|
+
})(InviteTargetType || (InviteTargetType = {}));
|
|
1499
|
+
export var KeywordPresetType;
|
|
1500
|
+
(function (KeywordPresetType) {
|
|
1501
|
+
/** words that may be considered forms of swearing or cursing */
|
|
1502
|
+
KeywordPresetType[KeywordPresetType["PROFANITY"] = 1] = "PROFANITY";
|
|
1503
|
+
/** words that refer to sexually explicit behavior or activity */
|
|
1504
|
+
KeywordPresetType[KeywordPresetType["SEXUAL_CONTENT"] = 2] = "SEXUAL_CONTENT";
|
|
1505
|
+
/** personal insults or words that may be considered hate speech */
|
|
1506
|
+
KeywordPresetType[KeywordPresetType["SLURS"] = 3] = "SLURS";
|
|
1507
|
+
})(KeywordPresetType || (KeywordPresetType = {}));
|
|
1508
|
+
export var MembershipState;
|
|
1509
|
+
(function (MembershipState) {
|
|
1510
|
+
MembershipState[MembershipState["INVITED"] = 1] = "INVITED";
|
|
1511
|
+
MembershipState[MembershipState["ACCEPTED"] = 2] = "ACCEPTED";
|
|
1512
|
+
})(MembershipState || (MembershipState = {}));
|
|
1513
|
+
export var MessageActivityType;
|
|
1514
|
+
(function (MessageActivityType) {
|
|
1515
|
+
MessageActivityType[MessageActivityType["JOIN"] = 1] = "JOIN";
|
|
1516
|
+
MessageActivityType[MessageActivityType["SPECTATE"] = 2] = "SPECTATE";
|
|
1517
|
+
MessageActivityType[MessageActivityType["LISTEN"] = 3] = "LISTEN";
|
|
1518
|
+
MessageActivityType[MessageActivityType["JOIN_REQUEST"] = 5] = "JOIN_REQUEST";
|
|
1519
|
+
})(MessageActivityType || (MessageActivityType = {}));
|
|
1064
1520
|
export const MessageFlag = {
|
|
1065
1521
|
/** this message has been published to subscribed channels (via Channel Following) */
|
|
1066
1522
|
CROSSPOSTED: 1 << 0,
|
|
@@ -1085,6 +1541,120 @@ export const MessageFlag = {
|
|
|
1085
1541
|
/** this message is a voice message */
|
|
1086
1542
|
IS_VOICE_MESSAGE: 1 << 13
|
|
1087
1543
|
};
|
|
1544
|
+
export var MessageType;
|
|
1545
|
+
(function (MessageType) {
|
|
1546
|
+
MessageType[MessageType["DEFAULT"] = 0] = "DEFAULT";
|
|
1547
|
+
MessageType[MessageType["RECIPIENT_ADD"] = 1] = "RECIPIENT_ADD";
|
|
1548
|
+
MessageType[MessageType["RECIPIENT_REMOVE"] = 2] = "RECIPIENT_REMOVE";
|
|
1549
|
+
MessageType[MessageType["CALL"] = 3] = "CALL";
|
|
1550
|
+
MessageType[MessageType["CHANNEL_NAME_CHANGE"] = 4] = "CHANNEL_NAME_CHANGE";
|
|
1551
|
+
MessageType[MessageType["CHANNEL_ICON_CHANGE"] = 5] = "CHANNEL_ICON_CHANGE";
|
|
1552
|
+
MessageType[MessageType["CHANNEL_PINNED_MESSAGE"] = 6] = "CHANNEL_PINNED_MESSAGE";
|
|
1553
|
+
MessageType[MessageType["USER_JOIN"] = 7] = "USER_JOIN";
|
|
1554
|
+
MessageType[MessageType["GUILD_BOOST"] = 8] = "GUILD_BOOST";
|
|
1555
|
+
MessageType[MessageType["GUILD_BOOST_TIER_1"] = 9] = "GUILD_BOOST_TIER_1";
|
|
1556
|
+
MessageType[MessageType["GUILD_BOOST_TIER_2"] = 10] = "GUILD_BOOST_TIER_2";
|
|
1557
|
+
MessageType[MessageType["GUILD_BOOST_TIER_3"] = 11] = "GUILD_BOOST_TIER_3";
|
|
1558
|
+
MessageType[MessageType["CHANNEL_FOLLOW_ADD"] = 12] = "CHANNEL_FOLLOW_ADD";
|
|
1559
|
+
MessageType[MessageType["GUILD_DISCOVERY_DISQUALIFIED"] = 14] = "GUILD_DISCOVERY_DISQUALIFIED";
|
|
1560
|
+
MessageType[MessageType["GUILD_DISCOVERY_REQUALIFIED"] = 15] = "GUILD_DISCOVERY_REQUALIFIED";
|
|
1561
|
+
MessageType[MessageType["GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING"] = 16] = "GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING";
|
|
1562
|
+
MessageType[MessageType["GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING"] = 17] = "GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING";
|
|
1563
|
+
MessageType[MessageType["THREAD_CREATED"] = 18] = "THREAD_CREATED";
|
|
1564
|
+
MessageType[MessageType["REPLY"] = 19] = "REPLY";
|
|
1565
|
+
MessageType[MessageType["CHAT_INPUT_COMMAND"] = 20] = "CHAT_INPUT_COMMAND";
|
|
1566
|
+
MessageType[MessageType["THREAD_STARTER_MESSAGE"] = 21] = "THREAD_STARTER_MESSAGE";
|
|
1567
|
+
MessageType[MessageType["GUILD_INVITE_REMINDER"] = 22] = "GUILD_INVITE_REMINDER";
|
|
1568
|
+
MessageType[MessageType["CONTEXT_MENU_COMMAND"] = 23] = "CONTEXT_MENU_COMMAND";
|
|
1569
|
+
MessageType[MessageType["AUTO_MODERATION_ACTION"] = 24] = "AUTO_MODERATION_ACTION";
|
|
1570
|
+
MessageType[MessageType["ROLE_SUBSCRIPTION_PURCHASE"] = 25] = "ROLE_SUBSCRIPTION_PURCHASE";
|
|
1571
|
+
MessageType[MessageType["INTERACTION_PREMIUM_UPSELL"] = 26] = "INTERACTION_PREMIUM_UPSELL";
|
|
1572
|
+
MessageType[MessageType["STAGE_START"] = 27] = "STAGE_START";
|
|
1573
|
+
MessageType[MessageType["STAGE_END"] = 28] = "STAGE_END";
|
|
1574
|
+
MessageType[MessageType["STAGE_SPEAKER"] = 29] = "STAGE_SPEAKER";
|
|
1575
|
+
MessageType[MessageType["STAGE_TOPIC"] = 31] = "STAGE_TOPIC";
|
|
1576
|
+
MessageType[MessageType["GUILD_APPLICATION_PREMIUM_SUBSCRIPTION"] = 32] = "GUILD_APPLICATION_PREMIUM_SUBSCRIPTION";
|
|
1577
|
+
})(MessageType || (MessageType = {}));
|
|
1578
|
+
export var MfaLevel;
|
|
1579
|
+
(function (MfaLevel) {
|
|
1580
|
+
/** guild has no MFA/2FA requirement for moderation actions */
|
|
1581
|
+
MfaLevel[MfaLevel["NONE"] = 0] = "NONE";
|
|
1582
|
+
/** guild has a 2FA requirement for moderation actions */
|
|
1583
|
+
MfaLevel[MfaLevel["ELEVATED"] = 1] = "ELEVATED";
|
|
1584
|
+
})(MfaLevel || (MfaLevel = {}));
|
|
1585
|
+
export var MutableGuildFeature;
|
|
1586
|
+
(function (MutableGuildFeature) {
|
|
1587
|
+
MutableGuildFeature["COMMUNITY"] = "COMMUNITY";
|
|
1588
|
+
MutableGuildFeature["DISCOVERABLE"] = "DISCOVERABLE";
|
|
1589
|
+
MutableGuildFeature["INVITES_DISABLED"] = "INVITES_DISABLED";
|
|
1590
|
+
MutableGuildFeature["RAID_ALERTS_DISABLED"] = "RAID_ALERTS_DISABLED";
|
|
1591
|
+
})(MutableGuildFeature || (MutableGuildFeature = {}));
|
|
1592
|
+
export var OAuth2Scope;
|
|
1593
|
+
(function (OAuth2Scope) {
|
|
1594
|
+
/** allows your app to fetch data from a user's "Now Playing/Recently Played" list — not currently available for apps */
|
|
1595
|
+
OAuth2Scope["ACTIVITIES_READ"] = "activities.read";
|
|
1596
|
+
/** allows your app to update a user's activity - requires Discord approval (NOT REQUIRED FOR GAMESDK ACTIVITY MANAGER) */
|
|
1597
|
+
OAuth2Scope["ACTIVITIES_WRITE"] = "activities.write";
|
|
1598
|
+
/** allows your app to read build data for a user's applications */
|
|
1599
|
+
OAuth2Scope["APPLICATIONS_BUILDS_READ"] = "applications.builds.read";
|
|
1600
|
+
/** allows your app to upload/update builds for a user's applications - requires Discord approval */
|
|
1601
|
+
OAuth2Scope["APPLICATIONS_BUILDS_UPLOAD"] = "applications.builds.upload";
|
|
1602
|
+
/** allows your app to use commands in a guild */
|
|
1603
|
+
OAuth2Scope["APPLICATIONS_COMMANDS"] = "applications.commands";
|
|
1604
|
+
/** allows your app to update its commands using a Bearer token - client credentials grant only */
|
|
1605
|
+
OAuth2Scope["APPLICATIONS_COMMANDS_UPDATE"] = "applications.commands.update";
|
|
1606
|
+
/** allows your app to update permissions for its commands in a guild a user has permissions to */
|
|
1607
|
+
OAuth2Scope["APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE"] = "applications.commands.permissions.update";
|
|
1608
|
+
/** allows your app to read entitlements for a user's applications */
|
|
1609
|
+
OAuth2Scope["APPLICATIONS_ENTITLEMENTS"] = "applications.entitlements";
|
|
1610
|
+
/** allows your app to read and update store data (SKUs, store listings, achievements, etc.) for a user's applications */
|
|
1611
|
+
OAuth2Scope["APPLICATIONS_STORE_UPDATE"] = "applications.store.update";
|
|
1612
|
+
/** for oauth2 bots, this puts the bot in the user's selected guild by default */
|
|
1613
|
+
OAuth2Scope["BOT"] = "bot";
|
|
1614
|
+
/** allows /users/@me/connections to return linked third-party accounts */
|
|
1615
|
+
OAuth2Scope["CONNECTIONS"] = "connections";
|
|
1616
|
+
/** allows your app to see information about the user's DMs and group DMs - requires Discord approval */
|
|
1617
|
+
OAuth2Scope["DM_CHANNELS_READ"] = "dm_channels.read";
|
|
1618
|
+
/** enables /users/@me to return an email */
|
|
1619
|
+
OAuth2Scope["EMAIL"] = "email";
|
|
1620
|
+
/** allows your app to join users to a group dm */
|
|
1621
|
+
OAuth2Scope["GDM_JOIN"] = "gdm.join";
|
|
1622
|
+
/** allows /users/@me/guilds to return basic information about all of a user's guilds */
|
|
1623
|
+
OAuth2Scope["GUILDS"] = "guilds";
|
|
1624
|
+
/** allows /guilds/{guild.id}/members/{user.id} to be used for joining users to a guild */
|
|
1625
|
+
OAuth2Scope["GUILDS_JOIN"] = "guilds.join";
|
|
1626
|
+
/** allows /users/@me/guilds/{guild.id}/member to return a user's member information in a guild */
|
|
1627
|
+
OAuth2Scope["GUILDS_MEMBERS_READ"] = "guilds.members.read";
|
|
1628
|
+
/** allows /users/@me without email */
|
|
1629
|
+
OAuth2Scope["IDENTIFY"] = "identify";
|
|
1630
|
+
/** for local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates) */
|
|
1631
|
+
OAuth2Scope["MESSAGES_READ"] = "messages.read";
|
|
1632
|
+
/** allows your app to know a user's friends and implicit relationships - requires Discord approval */
|
|
1633
|
+
OAuth2Scope["RELATIONSHIPS_READ"] = "relationships.read";
|
|
1634
|
+
/** allows your app to update a user's connection and metadata for the app */
|
|
1635
|
+
OAuth2Scope["ROLE_CONNECTIONS_WRITE"] = "role_connections.write";
|
|
1636
|
+
/** for local rpc server access, this allows you to control a user's local Discord client - requires Discord approval */
|
|
1637
|
+
OAuth2Scope["RPC"] = "rpc";
|
|
1638
|
+
/** for local rpc server access, this allows you to update a user's activity - requires Discord approval */
|
|
1639
|
+
OAuth2Scope["RPC_ACTIVITIES_WRITE"] = "rpc.activities.write";
|
|
1640
|
+
/** for local rpc server access, this allows you to receive notifications pushed out to the user - requires Discord approval */
|
|
1641
|
+
OAuth2Scope["RPC_NOTIFICATIONS_READ"] = "rpc.notifications.read";
|
|
1642
|
+
/** for local rpc server access, this allows you to read a user's voice settings and listen for voice events - requires Discord approval */
|
|
1643
|
+
OAuth2Scope["RPC_VOICE_READ"] = "rpc.voice.read";
|
|
1644
|
+
/** for local rpc server access, this allows you to update a user's voice settings - requires Discord approval */
|
|
1645
|
+
OAuth2Scope["RPC_VOICE_WRITE"] = "rpc.voice.write";
|
|
1646
|
+
/** allows your app to connect to voice on user's behalf and see all the voice members - requires Discord approval */
|
|
1647
|
+
OAuth2Scope["VOICE"] = "voice";
|
|
1648
|
+
/** this generates a webhook that is returned in the oauth token response for authorization code grants */
|
|
1649
|
+
OAuth2Scope["WEBHOOK_INCOMING"] = "webhook.incoming";
|
|
1650
|
+
})(OAuth2Scope || (OAuth2Scope = {}));
|
|
1651
|
+
export var OnboardingMode;
|
|
1652
|
+
(function (OnboardingMode) {
|
|
1653
|
+
/** Counts only Default Channels towards constraints */
|
|
1654
|
+
OnboardingMode[OnboardingMode["ONBOARDING_DEFAULT"] = 0] = "ONBOARDING_DEFAULT";
|
|
1655
|
+
/** Counts Default Channels and Questions towards constraints */
|
|
1656
|
+
OnboardingMode[OnboardingMode["ONBOARDING_ADVANCED"] = 1] = "ONBOARDING_ADVANCED";
|
|
1657
|
+
})(OnboardingMode || (OnboardingMode = {}));
|
|
1088
1658
|
export const PermissionFlag = {
|
|
1089
1659
|
/** Allows creation of instant invites */
|
|
1090
1660
|
CREATE_INSTANT_INVITE: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(0),
|
|
@@ -1177,10 +1747,74 @@ export const PermissionFlag = {
|
|
|
1177
1747
|
/** Allows sending voice messages */
|
|
1178
1748
|
SEND_VOICE_MESSAGES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(46)
|
|
1179
1749
|
};
|
|
1750
|
+
export var PremiumTier;
|
|
1751
|
+
(function (PremiumTier) {
|
|
1752
|
+
/** guild has not unlocked any Server Boost perks */
|
|
1753
|
+
PremiumTier[PremiumTier["NONE"] = 0] = "NONE";
|
|
1754
|
+
/** guild has unlocked Server Boost level 1 perks */
|
|
1755
|
+
PremiumTier[PremiumTier["TIER_1"] = 1] = "TIER_1";
|
|
1756
|
+
/** guild has unlocked Server Boost level 2 perks */
|
|
1757
|
+
PremiumTier[PremiumTier["TIER_2"] = 2] = "TIER_2";
|
|
1758
|
+
/** guild has unlocked Server Boost level 3 perks */
|
|
1759
|
+
PremiumTier[PremiumTier["TIER_3"] = 3] = "TIER_3";
|
|
1760
|
+
})(PremiumTier || (PremiumTier = {}));
|
|
1761
|
+
export var PremiumType;
|
|
1762
|
+
(function (PremiumType) {
|
|
1763
|
+
PremiumType[PremiumType["NONE"] = 0] = "NONE";
|
|
1764
|
+
PremiumType[PremiumType["NITRO_CLASSIC"] = 1] = "NITRO_CLASSIC";
|
|
1765
|
+
PremiumType[PremiumType["NITRO"] = 2] = "NITRO";
|
|
1766
|
+
PremiumType[PremiumType["NITRO_BASIC"] = 3] = "NITRO_BASIC";
|
|
1767
|
+
})(PremiumType || (PremiumType = {}));
|
|
1768
|
+
export var PrivacyLevel;
|
|
1769
|
+
(function (PrivacyLevel) {
|
|
1770
|
+
/** The Stage instance is visible publicly. (deprecated) */
|
|
1771
|
+
PrivacyLevel[PrivacyLevel["PUBLIC"] = 1] = "PUBLIC";
|
|
1772
|
+
/** The Stage instance is visible to only guild members. */
|
|
1773
|
+
PrivacyLevel[PrivacyLevel["GUILD_ONLY"] = 2] = "GUILD_ONLY";
|
|
1774
|
+
})(PrivacyLevel || (PrivacyLevel = {}));
|
|
1775
|
+
export var PromptType;
|
|
1776
|
+
(function (PromptType) {
|
|
1777
|
+
PromptType[PromptType["MULTIPLE_CHOICE"] = 0] = "MULTIPLE_CHOICE";
|
|
1778
|
+
PromptType[PromptType["DROPDOWN"] = 1] = "DROPDOWN";
|
|
1779
|
+
})(PromptType || (PromptType = {}));
|
|
1180
1780
|
export const RoleFlag = {
|
|
1181
1781
|
/** role can be selected by members in an onboarding prompt */
|
|
1182
1782
|
IN_PROMPT: 1 << 0
|
|
1183
1783
|
};
|
|
1784
|
+
export var SortOrderType;
|
|
1785
|
+
(function (SortOrderType) {
|
|
1786
|
+
/** Sort forum posts by activity */
|
|
1787
|
+
SortOrderType[SortOrderType["LATEST_ACTIVITY"] = 0] = "LATEST_ACTIVITY";
|
|
1788
|
+
/** Sort forum posts by creation time (from most recent to oldest) */
|
|
1789
|
+
SortOrderType[SortOrderType["CREATION_DATE"] = 1] = "CREATION_DATE";
|
|
1790
|
+
})(SortOrderType || (SortOrderType = {}));
|
|
1791
|
+
export var StatusType;
|
|
1792
|
+
(function (StatusType) {
|
|
1793
|
+
/** Online */
|
|
1794
|
+
StatusType["ONLINE"] = "online";
|
|
1795
|
+
/** Do Not Disturb */
|
|
1796
|
+
StatusType["DND"] = "dnd";
|
|
1797
|
+
/** AFK */
|
|
1798
|
+
StatusType["IDLE"] = "idle";
|
|
1799
|
+
/** Invisible and shown as offline */
|
|
1800
|
+
StatusType["INVISIBLE"] = "invisible";
|
|
1801
|
+
/** Offline */
|
|
1802
|
+
StatusType["OFFLINE"] = "offline";
|
|
1803
|
+
})(StatusType || (StatusType = {}));
|
|
1804
|
+
export var StickerFormatType;
|
|
1805
|
+
(function (StickerFormatType) {
|
|
1806
|
+
StickerFormatType[StickerFormatType["PNG"] = 1] = "PNG";
|
|
1807
|
+
StickerFormatType[StickerFormatType["APNG"] = 2] = "APNG";
|
|
1808
|
+
StickerFormatType[StickerFormatType["LOTTIE"] = 3] = "LOTTIE";
|
|
1809
|
+
StickerFormatType[StickerFormatType["GIF"] = 4] = "GIF";
|
|
1810
|
+
})(StickerFormatType || (StickerFormatType = {}));
|
|
1811
|
+
export var StickerType;
|
|
1812
|
+
(function (StickerType) {
|
|
1813
|
+
/** an official sticker in a pack */
|
|
1814
|
+
StickerType[StickerType["STANDARD"] = 1] = "STANDARD";
|
|
1815
|
+
/** a sticker uploaded to a guild for the guild's members */
|
|
1816
|
+
StickerType[StickerType["GUILD"] = 2] = "GUILD";
|
|
1817
|
+
})(StickerType || (StickerType = {}));
|
|
1184
1818
|
export const SystemChannelFlag = {
|
|
1185
1819
|
/** Suppress member join notifications */
|
|
1186
1820
|
SUPPRESS_JOIN_NOTIFICATIONS: 1 << 0,
|
|
@@ -1195,6 +1829,35 @@ export const SystemChannelFlag = {
|
|
|
1195
1829
|
/** Hide role subscription sticker reply buttons */
|
|
1196
1830
|
SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES: 1 << 5
|
|
1197
1831
|
};
|
|
1832
|
+
export var TeamMemberRoleType;
|
|
1833
|
+
(function (TeamMemberRoleType) {
|
|
1834
|
+
/** Owners are the most permissiable role, and can take destructive, irreversible actions like deleting team-owned apps or the team itself. Teams are limited to 1 owner. */
|
|
1835
|
+
TeamMemberRoleType["OWNER"] = "";
|
|
1836
|
+
/** Admins have similar access as owners, except they cannot take destructive actions on the team or team-owned apps. */
|
|
1837
|
+
TeamMemberRoleType["ADMIN"] = "admin";
|
|
1838
|
+
/** Developers can access information about team-owned apps, like the client secret or public key. They can also take limited actions on team-owned apps, like configuring interaction endpoints or resetting the bot token. Members with the Developer role cannot manage the team or its members, or take destructive actions on team-owned apps. */
|
|
1839
|
+
TeamMemberRoleType["DEVELOPER"] = "developer";
|
|
1840
|
+
/** Read-only members can access information about a team and any team-owned apps. Some examples include getting the IDs of applications and exporting payout records. */
|
|
1841
|
+
TeamMemberRoleType["READONLY"] = "read_only";
|
|
1842
|
+
})(TeamMemberRoleType || (TeamMemberRoleType = {}));
|
|
1843
|
+
export var TextInputStyle;
|
|
1844
|
+
(function (TextInputStyle) {
|
|
1845
|
+
/** Single-line input */
|
|
1846
|
+
TextInputStyle[TextInputStyle["SHORT"] = 1] = "SHORT";
|
|
1847
|
+
/** Multi-line input */
|
|
1848
|
+
TextInputStyle[TextInputStyle["PARAGRAPH"] = 2] = "PARAGRAPH";
|
|
1849
|
+
})(TextInputStyle || (TextInputStyle = {}));
|
|
1850
|
+
export var TriggerType;
|
|
1851
|
+
(function (TriggerType) {
|
|
1852
|
+
/** check if content contains words from a user defined list of keywords */
|
|
1853
|
+
TriggerType[TriggerType["KEYWORD"] = 1] = "KEYWORD";
|
|
1854
|
+
/** check if content represents generic spam */
|
|
1855
|
+
TriggerType[TriggerType["SPAM"] = 3] = "SPAM";
|
|
1856
|
+
/** check if content contains words from internal pre-defined wordsets */
|
|
1857
|
+
TriggerType[TriggerType["KEYWORD_PRESET"] = 4] = "KEYWORD_PRESET";
|
|
1858
|
+
/** check if content contains more unique mentions than allowed */
|
|
1859
|
+
TriggerType[TriggerType["MENTION_SPAM"] = 5] = "MENTION_SPAM";
|
|
1860
|
+
})(TriggerType || (TriggerType = {}));
|
|
1198
1861
|
export const UserFlag = {
|
|
1199
1862
|
/** Discord Employee */
|
|
1200
1863
|
STAFF: 1 << 0,
|
|
@@ -1227,4 +1890,65 @@ export const UserFlag = {
|
|
|
1227
1890
|
/** User is an Active Developer */
|
|
1228
1891
|
ACTIVE_DEVELOPER: 1 << 22
|
|
1229
1892
|
};
|
|
1893
|
+
export var VerificationLevel;
|
|
1894
|
+
(function (VerificationLevel) {
|
|
1895
|
+
/** unrestricted */
|
|
1896
|
+
VerificationLevel[VerificationLevel["NONE"] = 0] = "NONE";
|
|
1897
|
+
/** must have verified email on account */
|
|
1898
|
+
VerificationLevel[VerificationLevel["LOW"] = 1] = "LOW";
|
|
1899
|
+
/** must be registered on Discord for longer than 5 minutes */
|
|
1900
|
+
VerificationLevel[VerificationLevel["MEDIUM"] = 2] = "MEDIUM";
|
|
1901
|
+
/** must be a member of the server for longer than 10 minutes */
|
|
1902
|
+
VerificationLevel[VerificationLevel["HIGH"] = 3] = "HIGH";
|
|
1903
|
+
/** must have a verified phone number */
|
|
1904
|
+
VerificationLevel[VerificationLevel["VERY_HIGH"] = 4] = "VERY_HIGH";
|
|
1905
|
+
})(VerificationLevel || (VerificationLevel = {}));
|
|
1906
|
+
export var VideoQualityMode;
|
|
1907
|
+
(function (VideoQualityMode) {
|
|
1908
|
+
/** Discord chooses the quality for optimal performance */
|
|
1909
|
+
VideoQualityMode[VideoQualityMode["AUTO"] = 1] = "AUTO";
|
|
1910
|
+
/** 720p */
|
|
1911
|
+
VideoQualityMode[VideoQualityMode["FULL"] = 2] = "FULL";
|
|
1912
|
+
})(VideoQualityMode || (VideoQualityMode = {}));
|
|
1913
|
+
export var VisibilityType;
|
|
1914
|
+
(function (VisibilityType) {
|
|
1915
|
+
/** invisible to everyone except the user themselves */
|
|
1916
|
+
VisibilityType[VisibilityType["NONE"] = 0] = "NONE";
|
|
1917
|
+
/** visible to everyone */
|
|
1918
|
+
VisibilityType[VisibilityType["EVERYONE"] = 1] = "EVERYONE";
|
|
1919
|
+
})(VisibilityType || (VisibilityType = {}));
|
|
1920
|
+
export var VoiceOpcode;
|
|
1921
|
+
(function (VoiceOpcode) {
|
|
1922
|
+
/** Begin a voice websocket connection. */
|
|
1923
|
+
VoiceOpcode[VoiceOpcode["IDENTIFY"] = 0] = "IDENTIFY";
|
|
1924
|
+
/** Select the voice protocol. */
|
|
1925
|
+
VoiceOpcode[VoiceOpcode["SELECT_PROTOCOL"] = 1] = "SELECT_PROTOCOL";
|
|
1926
|
+
/** Complete the websocket handshake. */
|
|
1927
|
+
VoiceOpcode[VoiceOpcode["READY"] = 2] = "READY";
|
|
1928
|
+
/** Keep the websocket connection alive. */
|
|
1929
|
+
VoiceOpcode[VoiceOpcode["HEARTBEAT"] = 3] = "HEARTBEAT";
|
|
1930
|
+
/** Describe the session. */
|
|
1931
|
+
VoiceOpcode[VoiceOpcode["SESSION_DESCRIPTION"] = 4] = "SESSION_DESCRIPTION";
|
|
1932
|
+
/** Indicate which users are speaking. */
|
|
1933
|
+
VoiceOpcode[VoiceOpcode["SPEAKING"] = 5] = "SPEAKING";
|
|
1934
|
+
/** Sent to acknowledge a received client heartbeat. */
|
|
1935
|
+
VoiceOpcode[VoiceOpcode["HEARTBEAT_ACK"] = 6] = "HEARTBEAT_ACK";
|
|
1936
|
+
/** Resume a connection. */
|
|
1937
|
+
VoiceOpcode[VoiceOpcode["RESUME"] = 7] = "RESUME";
|
|
1938
|
+
/** Time to wait between sending heartbeats in milliseconds. */
|
|
1939
|
+
VoiceOpcode[VoiceOpcode["HELLO"] = 8] = "HELLO";
|
|
1940
|
+
/** Acknowledge a successful session resume. */
|
|
1941
|
+
VoiceOpcode[VoiceOpcode["RESUMED"] = 9] = "RESUMED";
|
|
1942
|
+
/** A client has disconnected from the voice channel */
|
|
1943
|
+
VoiceOpcode[VoiceOpcode["CLIENT_DISCONNECT"] = 13] = "CLIENT_DISCONNECT";
|
|
1944
|
+
})(VoiceOpcode || (VoiceOpcode = {}));
|
|
1945
|
+
export var WebhookType;
|
|
1946
|
+
(function (WebhookType) {
|
|
1947
|
+
/** Incoming Webhooks can post messages to channels with a generated token */
|
|
1948
|
+
WebhookType[WebhookType["INCOMING"] = 1] = "INCOMING";
|
|
1949
|
+
/** Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels */
|
|
1950
|
+
WebhookType[WebhookType["CHANNEL_FOLLOWER"] = 2] = "CHANNEL_FOLLOWER";
|
|
1951
|
+
/** Application webhooks are webhooks used with Interactions */
|
|
1952
|
+
WebhookType[WebhookType["APPLICATION"] = 3] = "APPLICATION";
|
|
1953
|
+
})(WebhookType || (WebhookType = {}));
|
|
1230
1954
|
//# sourceMappingURL=types.mjs.map
|