dfx 0.61.4 → 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.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 +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 +2 -2
- package/DiscordGateway/Shard.d.ts.map +1 -1
- package/DiscordGateway/Shard.js +8 -7
- package/DiscordGateway/Shard.js.map +1 -1
- package/DiscordGateway/Sharder.js.map +1 -1
- package/DiscordGateway/WS.d.ts +1 -0
- package/DiscordGateway/WS.d.ts.map +1 -1
- package/DiscordGateway/WS.js.map +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 +3 -3
- package/DiscordREST/utils.js.map +1 -1
- package/DiscordREST.d.ts.map +1 -1
- package/DiscordREST.js +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 +1 -1
- package/Interactions/builder.js.map +1 -1
- package/Interactions/context.d.ts +1 -1
- package/Interactions/context.d.ts.map +1 -1
- package/Interactions/context.js.map +1 -1
- package/Interactions/definitions.d.ts +3 -3
- package/Interactions/definitions.d.ts.map +1 -1
- package/Interactions/definitions.js.map +1 -1
- package/Interactions/gateway.d.ts.map +1 -1
- package/Interactions/gateway.js +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 +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 +2 -2
- package/RateLimit.d.ts.map +1 -1
- package/RateLimit.js.map +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 +3 -3
- package/mjs/DiscordREST/utils.mjs.map +1 -1
- package/mjs/DiscordREST.mjs +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 +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 +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 +5 -7
- package/src/DiscordREST.ts +25 -27
- 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 +86 -79
- 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.map +1 -1
- package/webhooks.js.map +1 -1
- package/tsconfig.tsbuildinfo +0 -1
package/types.js
CHANGED
|
@@ -3,8 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.UserFlag = exports.SystemChannelFlag = exports.RoleFlag = exports.PermissionFlag = exports.MessageFlag = exports.GuildMemberFlag = exports.GatewayIntents = exports.ChannelFlag = exports.AttachmentFlag = exports.ApplicationFlag = exports.ActivityFlag = void 0;
|
|
6
|
+
exports.WebhookType = exports.VoiceOpcode = exports.VisibilityType = exports.VideoQualityMode = exports.VerificationLevel = exports.UserFlag = exports.TriggerType = exports.TextInputStyle = exports.TeamMemberRoleType = exports.SystemChannelFlag = exports.StickerType = exports.StickerFormatType = exports.StatusType = exports.SortOrderType = exports.RoleFlag = exports.PromptType = exports.PrivacyLevel = exports.PremiumType = exports.PremiumTier = exports.PermissionFlag = exports.OnboardingMode = exports.OAuth2Scope = exports.MutableGuildFeature = exports.MfaLevel = exports.MessageType = exports.MessageFlag = exports.MessageActivityType = exports.MembershipState = exports.KeywordPresetType = exports.InviteTargetType = exports.InteractionType = exports.InteractionCallbackType = exports.IntegrationExpireBehavior = exports.GuildScheduledEventStatus = exports.GuildScheduledEventPrivacyLevel = exports.GuildScheduledEventEntityType = exports.GuildNsfwLevel = exports.GuildMemberFlag = exports.GuildFeature = exports.GatewayOpcode = exports.GatewayIntents = exports.ForumLayoutType = exports.ExplicitContentFilterLevel = exports.EventType = exports.EmbedType = exports.DefaultMessageNotificationLevel = exports.ComponentType = exports.ChannelType = exports.ChannelFlag = exports.ButtonStyle = exports.AuditLogEvent = exports.AttachmentFlag = exports.ApplicationRoleConnectionMetadataType = exports.ApplicationFlag = exports.ApplicationCommandType = exports.ApplicationCommandPermissionType = exports.ApplicationCommandOptionType = exports.AllowedMentionType = exports.ActivityType = exports.ActivityFlag = exports.ActionType = void 0;
|
|
7
7
|
exports.createRoutes = createRoutes;
|
|
8
|
+
var ActionType;
|
|
9
|
+
exports.ActionType = ActionType;
|
|
10
|
+
(function (ActionType) {
|
|
11
|
+
/** 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. */
|
|
12
|
+
ActionType[ActionType["BLOCK_MESSAGE"] = 1] = "BLOCK_MESSAGE";
|
|
13
|
+
/** logs user content to a specified channel */
|
|
14
|
+
ActionType[ActionType["SEND_ALERT_MESSAGE"] = 2] = "SEND_ALERT_MESSAGE";
|
|
15
|
+
/** timeout user for a specified duration * */
|
|
16
|
+
ActionType[ActionType["TIMEOUT"] = 3] = "TIMEOUT";
|
|
17
|
+
})(ActionType || (exports.ActionType = ActionType = {}));
|
|
8
18
|
const ActivityFlag = {
|
|
9
19
|
INSTANCE: 1 << 0,
|
|
10
20
|
JOIN: 1 << 1,
|
|
@@ -17,6 +27,58 @@ const ActivityFlag = {
|
|
|
17
27
|
EMBEDDED: 1 << 8
|
|
18
28
|
};
|
|
19
29
|
exports.ActivityFlag = ActivityFlag;
|
|
30
|
+
var ActivityType;
|
|
31
|
+
exports.ActivityType = ActivityType;
|
|
32
|
+
(function (ActivityType) {
|
|
33
|
+
ActivityType[ActivityType["GAME"] = 0] = "GAME";
|
|
34
|
+
ActivityType[ActivityType["STREAMING"] = 1] = "STREAMING";
|
|
35
|
+
ActivityType[ActivityType["LISTENING"] = 2] = "LISTENING";
|
|
36
|
+
ActivityType[ActivityType["WATCHING"] = 3] = "WATCHING";
|
|
37
|
+
ActivityType[ActivityType["CUSTOM"] = 4] = "CUSTOM";
|
|
38
|
+
ActivityType[ActivityType["COMPETING"] = 5] = "COMPETING";
|
|
39
|
+
})(ActivityType || (exports.ActivityType = ActivityType = {}));
|
|
40
|
+
var AllowedMentionType;
|
|
41
|
+
exports.AllowedMentionType = AllowedMentionType;
|
|
42
|
+
(function (AllowedMentionType) {
|
|
43
|
+
/** Controls role mentions */
|
|
44
|
+
AllowedMentionType["ROLE_MENTIONS"] = "roles";
|
|
45
|
+
/** Controls user mentions */
|
|
46
|
+
AllowedMentionType["USER_MENTIONS"] = "users";
|
|
47
|
+
/** Controls @everyone and @here mentions */
|
|
48
|
+
AllowedMentionType["EVERYONE_MENTIONS"] = "everyone";
|
|
49
|
+
})(AllowedMentionType || (exports.AllowedMentionType = AllowedMentionType = {}));
|
|
50
|
+
var ApplicationCommandOptionType;
|
|
51
|
+
exports.ApplicationCommandOptionType = ApplicationCommandOptionType;
|
|
52
|
+
(function (ApplicationCommandOptionType) {
|
|
53
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["SUB_COMMAND"] = 1] = "SUB_COMMAND";
|
|
54
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["SUB_COMMAND_GROUP"] = 2] = "SUB_COMMAND_GROUP";
|
|
55
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["STRING"] = 3] = "STRING";
|
|
56
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["INTEGER"] = 4] = "INTEGER";
|
|
57
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["BOOLEAN"] = 5] = "BOOLEAN";
|
|
58
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["USER"] = 6] = "USER";
|
|
59
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["CHANNEL"] = 7] = "CHANNEL";
|
|
60
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["ROLE"] = 8] = "ROLE";
|
|
61
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["MENTIONABLE"] = 9] = "MENTIONABLE";
|
|
62
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["NUMBER"] = 10] = "NUMBER";
|
|
63
|
+
ApplicationCommandOptionType[ApplicationCommandOptionType["ATTACHMENT"] = 11] = "ATTACHMENT";
|
|
64
|
+
})(ApplicationCommandOptionType || (exports.ApplicationCommandOptionType = ApplicationCommandOptionType = {}));
|
|
65
|
+
var ApplicationCommandPermissionType;
|
|
66
|
+
exports.ApplicationCommandPermissionType = ApplicationCommandPermissionType;
|
|
67
|
+
(function (ApplicationCommandPermissionType) {
|
|
68
|
+
ApplicationCommandPermissionType[ApplicationCommandPermissionType["ROLE"] = 1] = "ROLE";
|
|
69
|
+
ApplicationCommandPermissionType[ApplicationCommandPermissionType["USER"] = 2] = "USER";
|
|
70
|
+
ApplicationCommandPermissionType[ApplicationCommandPermissionType["CHANNEL"] = 3] = "CHANNEL";
|
|
71
|
+
})(ApplicationCommandPermissionType || (exports.ApplicationCommandPermissionType = ApplicationCommandPermissionType = {}));
|
|
72
|
+
var ApplicationCommandType;
|
|
73
|
+
exports.ApplicationCommandType = ApplicationCommandType;
|
|
74
|
+
(function (ApplicationCommandType) {
|
|
75
|
+
/** Slash commands; a text-based command that shows up when a user types / */
|
|
76
|
+
ApplicationCommandType[ApplicationCommandType["CHAT_INPUT"] = 1] = "CHAT_INPUT";
|
|
77
|
+
/** A UI-based command that shows up when you right click or tap on a user */
|
|
78
|
+
ApplicationCommandType[ApplicationCommandType["USER"] = 2] = "USER";
|
|
79
|
+
/** A UI-based command that shows up when you right click or tap on a message */
|
|
80
|
+
ApplicationCommandType[ApplicationCommandType["MESSAGE"] = 3] = "MESSAGE";
|
|
81
|
+
})(ApplicationCommandType || (exports.ApplicationCommandType = ApplicationCommandType = {}));
|
|
20
82
|
const ApplicationFlag = {
|
|
21
83
|
/** Indicates if an app uses the Auto Moderation API */
|
|
22
84
|
APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE: 1 << 6,
|
|
@@ -40,18 +102,215 @@ const ApplicationFlag = {
|
|
|
40
102
|
APPLICATION_COMMAND_BADGE: 1 << 23
|
|
41
103
|
};
|
|
42
104
|
exports.ApplicationFlag = ApplicationFlag;
|
|
105
|
+
var ApplicationRoleConnectionMetadataType;
|
|
106
|
+
exports.ApplicationRoleConnectionMetadataType = ApplicationRoleConnectionMetadataType;
|
|
107
|
+
(function (ApplicationRoleConnectionMetadataType) {
|
|
108
|
+
/** the metadata value (integer) is less than or equal to the guild's configured value (integer) */
|
|
109
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["INTEGER_LESS_THAN_OR_EQUAL"] = 1] = "INTEGER_LESS_THAN_OR_EQUAL";
|
|
110
|
+
/** the metadata value (integer) is greater than or equal to the guild's configured value (integer) */
|
|
111
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["INTEGER_GREATER_THAN_OR_EQUAL"] = 2] = "INTEGER_GREATER_THAN_OR_EQUAL";
|
|
112
|
+
/** the metadata value (integer) is equal to the guild's configured value (integer) */
|
|
113
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["INTEGER_EQUAL"] = 3] = "INTEGER_EQUAL";
|
|
114
|
+
/** the metadata value (integer) is not equal to the guild's configured value (integer) */
|
|
115
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["INTEGER_NOT_EQUAL"] = 4] = "INTEGER_NOT_EQUAL";
|
|
116
|
+
/** the metadata value (ISO8601 string) is less than or equal to the guild's configured value (integer; days before current date) */
|
|
117
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["DATETIME_LESS_THAN_OR_EQUAL"] = 5] = "DATETIME_LESS_THAN_OR_EQUAL";
|
|
118
|
+
/** the metadata value (ISO8601 string) is greater than or equal to the guild's configured value (integer; days before current date) */
|
|
119
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["DATETIME_GREATER_THAN_OR_EQUAL"] = 6] = "DATETIME_GREATER_THAN_OR_EQUAL";
|
|
120
|
+
/** the metadata value (integer) is equal to the guild's configured value (integer; 1) */
|
|
121
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["BOOLEAN_EQUAL"] = 7] = "BOOLEAN_EQUAL";
|
|
122
|
+
/** the metadata value (integer) is not equal to the guild's configured value (integer; 1) */
|
|
123
|
+
ApplicationRoleConnectionMetadataType[ApplicationRoleConnectionMetadataType["BOOLEAN_NOT_EQUAL"] = 8] = "BOOLEAN_NOT_EQUAL";
|
|
124
|
+
})(ApplicationRoleConnectionMetadataType || (exports.ApplicationRoleConnectionMetadataType = ApplicationRoleConnectionMetadataType = {}));
|
|
43
125
|
const AttachmentFlag = {
|
|
44
126
|
/** this attachment has been edited using the remix feature on mobile */
|
|
45
127
|
IS_REMIX: 1 << 2
|
|
46
128
|
};
|
|
47
129
|
exports.AttachmentFlag = AttachmentFlag;
|
|
130
|
+
var AuditLogEvent;
|
|
131
|
+
exports.AuditLogEvent = AuditLogEvent;
|
|
132
|
+
(function (AuditLogEvent) {
|
|
133
|
+
/** Server settings were updated */
|
|
134
|
+
AuditLogEvent[AuditLogEvent["GUILD_UPDATE"] = 1] = "GUILD_UPDATE";
|
|
135
|
+
/** Channel was created */
|
|
136
|
+
AuditLogEvent[AuditLogEvent["CHANNEL_CREATE"] = 10] = "CHANNEL_CREATE";
|
|
137
|
+
/** Channel settings were updated */
|
|
138
|
+
AuditLogEvent[AuditLogEvent["CHANNEL_UPDATE"] = 11] = "CHANNEL_UPDATE";
|
|
139
|
+
/** Channel was deleted */
|
|
140
|
+
AuditLogEvent[AuditLogEvent["CHANNEL_DELETE"] = 12] = "CHANNEL_DELETE";
|
|
141
|
+
/** Permission overwrite was added to a channel */
|
|
142
|
+
AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_CREATE"] = 13] = "CHANNEL_OVERWRITE_CREATE";
|
|
143
|
+
/** Permission overwrite was updated for a channel */
|
|
144
|
+
AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_UPDATE"] = 14] = "CHANNEL_OVERWRITE_UPDATE";
|
|
145
|
+
/** Permission overwrite was deleted from a channel */
|
|
146
|
+
AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_DELETE"] = 15] = "CHANNEL_OVERWRITE_DELETE";
|
|
147
|
+
/** Member was removed from server */
|
|
148
|
+
AuditLogEvent[AuditLogEvent["MEMBER_KICK"] = 20] = "MEMBER_KICK";
|
|
149
|
+
/** Members were pruned from server */
|
|
150
|
+
AuditLogEvent[AuditLogEvent["MEMBER_PRUNE"] = 21] = "MEMBER_PRUNE";
|
|
151
|
+
/** Member was banned from server */
|
|
152
|
+
AuditLogEvent[AuditLogEvent["MEMBER_BAN_ADD"] = 22] = "MEMBER_BAN_ADD";
|
|
153
|
+
/** Server ban was lifted for a member */
|
|
154
|
+
AuditLogEvent[AuditLogEvent["MEMBER_BAN_REMOVE"] = 23] = "MEMBER_BAN_REMOVE";
|
|
155
|
+
/** Member was updated in server */
|
|
156
|
+
AuditLogEvent[AuditLogEvent["MEMBER_UPDATE"] = 24] = "MEMBER_UPDATE";
|
|
157
|
+
/** Member was added or removed from a role */
|
|
158
|
+
AuditLogEvent[AuditLogEvent["MEMBER_ROLE_UPDATE"] = 25] = "MEMBER_ROLE_UPDATE";
|
|
159
|
+
/** Member was moved to a different voice channel */
|
|
160
|
+
AuditLogEvent[AuditLogEvent["MEMBER_MOVE"] = 26] = "MEMBER_MOVE";
|
|
161
|
+
/** Member was disconnected from a voice channel */
|
|
162
|
+
AuditLogEvent[AuditLogEvent["MEMBER_DISCONNECT"] = 27] = "MEMBER_DISCONNECT";
|
|
163
|
+
/** Bot user was added to server */
|
|
164
|
+
AuditLogEvent[AuditLogEvent["BOT_ADD"] = 28] = "BOT_ADD";
|
|
165
|
+
/** Role was created */
|
|
166
|
+
AuditLogEvent[AuditLogEvent["ROLE_CREATE"] = 30] = "ROLE_CREATE";
|
|
167
|
+
/** Role was edited */
|
|
168
|
+
AuditLogEvent[AuditLogEvent["ROLE_UPDATE"] = 31] = "ROLE_UPDATE";
|
|
169
|
+
/** Role was deleted */
|
|
170
|
+
AuditLogEvent[AuditLogEvent["ROLE_DELETE"] = 32] = "ROLE_DELETE";
|
|
171
|
+
/** Server invite was created */
|
|
172
|
+
AuditLogEvent[AuditLogEvent["INVITE_CREATE"] = 40] = "INVITE_CREATE";
|
|
173
|
+
/** Server invite was updated */
|
|
174
|
+
AuditLogEvent[AuditLogEvent["INVITE_UPDATE"] = 41] = "INVITE_UPDATE";
|
|
175
|
+
/** Server invite was deleted */
|
|
176
|
+
AuditLogEvent[AuditLogEvent["INVITE_DELETE"] = 42] = "INVITE_DELETE";
|
|
177
|
+
/** Webhook was created */
|
|
178
|
+
AuditLogEvent[AuditLogEvent["WEBHOOK_CREATE"] = 50] = "WEBHOOK_CREATE";
|
|
179
|
+
/** Webhook properties or channel were updated */
|
|
180
|
+
AuditLogEvent[AuditLogEvent["WEBHOOK_UPDATE"] = 51] = "WEBHOOK_UPDATE";
|
|
181
|
+
/** Webhook was deleted */
|
|
182
|
+
AuditLogEvent[AuditLogEvent["WEBHOOK_DELETE"] = 52] = "WEBHOOK_DELETE";
|
|
183
|
+
/** Emoji was created */
|
|
184
|
+
AuditLogEvent[AuditLogEvent["EMOJI_CREATE"] = 60] = "EMOJI_CREATE";
|
|
185
|
+
/** Emoji name was updated */
|
|
186
|
+
AuditLogEvent[AuditLogEvent["EMOJI_UPDATE"] = 61] = "EMOJI_UPDATE";
|
|
187
|
+
/** Emoji was deleted */
|
|
188
|
+
AuditLogEvent[AuditLogEvent["EMOJI_DELETE"] = 62] = "EMOJI_DELETE";
|
|
189
|
+
/** Single message was deleted */
|
|
190
|
+
AuditLogEvent[AuditLogEvent["MESSAGE_DELETE"] = 72] = "MESSAGE_DELETE";
|
|
191
|
+
/** Multiple messages were deleted */
|
|
192
|
+
AuditLogEvent[AuditLogEvent["MESSAGE_BULK_DELETE"] = 73] = "MESSAGE_BULK_DELETE";
|
|
193
|
+
/** Message was pinned to a channel */
|
|
194
|
+
AuditLogEvent[AuditLogEvent["MESSAGE_PIN"] = 74] = "MESSAGE_PIN";
|
|
195
|
+
/** Message was unpinned from a channel */
|
|
196
|
+
AuditLogEvent[AuditLogEvent["MESSAGE_UNPIN"] = 75] = "MESSAGE_UNPIN";
|
|
197
|
+
/** App was added to server */
|
|
198
|
+
AuditLogEvent[AuditLogEvent["INTEGRATION_CREATE"] = 80] = "INTEGRATION_CREATE";
|
|
199
|
+
/** App was updated (as an example, its scopes were updated) */
|
|
200
|
+
AuditLogEvent[AuditLogEvent["INTEGRATION_UPDATE"] = 81] = "INTEGRATION_UPDATE";
|
|
201
|
+
/** App was removed from server */
|
|
202
|
+
AuditLogEvent[AuditLogEvent["INTEGRATION_DELETE"] = 82] = "INTEGRATION_DELETE";
|
|
203
|
+
/** Stage instance was created (stage channel becomes live) */
|
|
204
|
+
AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_CREATE"] = 83] = "STAGE_INSTANCE_CREATE";
|
|
205
|
+
/** Stage instance details were updated */
|
|
206
|
+
AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_UPDATE"] = 84] = "STAGE_INSTANCE_UPDATE";
|
|
207
|
+
/** Stage instance was deleted (stage channel no longer live) */
|
|
208
|
+
AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_DELETE"] = 85] = "STAGE_INSTANCE_DELETE";
|
|
209
|
+
/** Sticker was created */
|
|
210
|
+
AuditLogEvent[AuditLogEvent["STICKER_CREATE"] = 90] = "STICKER_CREATE";
|
|
211
|
+
/** Sticker details were updated */
|
|
212
|
+
AuditLogEvent[AuditLogEvent["STICKER_UPDATE"] = 91] = "STICKER_UPDATE";
|
|
213
|
+
/** Sticker was deleted */
|
|
214
|
+
AuditLogEvent[AuditLogEvent["STICKER_DELETE"] = 92] = "STICKER_DELETE";
|
|
215
|
+
/** Event was created */
|
|
216
|
+
AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_CREATE"] = 100] = "GUILD_SCHEDULED_EVENT_CREATE";
|
|
217
|
+
/** Event was updated */
|
|
218
|
+
AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_UPDATE"] = 101] = "GUILD_SCHEDULED_EVENT_UPDATE";
|
|
219
|
+
/** Event was cancelled */
|
|
220
|
+
AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_DELETE"] = 102] = "GUILD_SCHEDULED_EVENT_DELETE";
|
|
221
|
+
/** Thread was created in a channel */
|
|
222
|
+
AuditLogEvent[AuditLogEvent["THREAD_CREATE"] = 110] = "THREAD_CREATE";
|
|
223
|
+
/** Thread was updated */
|
|
224
|
+
AuditLogEvent[AuditLogEvent["THREAD_UPDATE"] = 111] = "THREAD_UPDATE";
|
|
225
|
+
/** Thread was deleted */
|
|
226
|
+
AuditLogEvent[AuditLogEvent["THREAD_DELETE"] = 112] = "THREAD_DELETE";
|
|
227
|
+
/** Permissions were updated for a command */
|
|
228
|
+
AuditLogEvent[AuditLogEvent["APPLICATION_COMMAND_PERMISSION_UPDATE"] = 121] = "APPLICATION_COMMAND_PERMISSION_UPDATE";
|
|
229
|
+
/** Auto Moderation rule was created */
|
|
230
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_CREATE"] = 140] = "AUTO_MODERATION_RULE_CREATE";
|
|
231
|
+
/** Auto Moderation rule was updated */
|
|
232
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_UPDATE"] = 141] = "AUTO_MODERATION_RULE_UPDATE";
|
|
233
|
+
/** Auto Moderation rule was deleted */
|
|
234
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_DELETE"] = 142] = "AUTO_MODERATION_RULE_DELETE";
|
|
235
|
+
/** Message was blocked by Auto Moderation */
|
|
236
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_BLOCK_MESSAGE"] = 143] = "AUTO_MODERATION_BLOCK_MESSAGE";
|
|
237
|
+
/** Message was flagged by Auto Moderation */
|
|
238
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_FLAG_TO_CHANNEL"] = 144] = "AUTO_MODERATION_FLAG_TO_CHANNEL";
|
|
239
|
+
/** Member was timed out by Auto Moderation */
|
|
240
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_USER_COMMUNICATION_DISABLED"] = 145] = "AUTO_MODERATION_USER_COMMUNICATION_DISABLED";
|
|
241
|
+
/** Creator monetization request was created */
|
|
242
|
+
AuditLogEvent[AuditLogEvent["CREATOR_MONETIZATION_REQUEST_CREATED"] = 150] = "CREATOR_MONETIZATION_REQUEST_CREATED";
|
|
243
|
+
/** Creator monetization terms were accepted */
|
|
244
|
+
AuditLogEvent[AuditLogEvent["CREATOR_MONETIZATION_TERMS_ACCEPTED"] = 151] = "CREATOR_MONETIZATION_TERMS_ACCEPTED";
|
|
245
|
+
})(AuditLogEvent || (exports.AuditLogEvent = AuditLogEvent = {}));
|
|
246
|
+
var ButtonStyle;
|
|
247
|
+
exports.ButtonStyle = ButtonStyle;
|
|
248
|
+
(function (ButtonStyle) {
|
|
249
|
+
ButtonStyle[ButtonStyle["PRIMARY"] = 1] = "PRIMARY";
|
|
250
|
+
ButtonStyle[ButtonStyle["SECONDARY"] = 2] = "SECONDARY";
|
|
251
|
+
ButtonStyle[ButtonStyle["SUCCESS"] = 3] = "SUCCESS";
|
|
252
|
+
ButtonStyle[ButtonStyle["DANGER"] = 4] = "DANGER";
|
|
253
|
+
ButtonStyle[ButtonStyle["LINK"] = 5] = "LINK";
|
|
254
|
+
})(ButtonStyle || (exports.ButtonStyle = ButtonStyle = {}));
|
|
48
255
|
const ChannelFlag = {
|
|
49
|
-
/** this thread is pinned to the top of its parent GUILD_FORUM channel */
|
|
256
|
+
/** this thread is pinned to the top of its parent GUILD_FORUM or GUILD_MEDIA channel */
|
|
50
257
|
PINNED: 1 << 1,
|
|
51
|
-
/** 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. */
|
|
52
|
-
REQUIRE_TAG: 1 << 4
|
|
258
|
+
/** 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. */
|
|
259
|
+
REQUIRE_TAG: 1 << 4,
|
|
260
|
+
/** when set hides the embedded media download options. Available only for media channels */
|
|
261
|
+
HIDE_MEDIA_DOWNLOAD_OPTIONS: 1 << 15
|
|
53
262
|
};
|
|
54
263
|
exports.ChannelFlag = ChannelFlag;
|
|
264
|
+
var ChannelType;
|
|
265
|
+
exports.ChannelType = ChannelType;
|
|
266
|
+
(function (ChannelType) {
|
|
267
|
+
/** a text channel within a server */
|
|
268
|
+
ChannelType[ChannelType["GUILD_TEXT"] = 0] = "GUILD_TEXT";
|
|
269
|
+
/** a direct message between users */
|
|
270
|
+
ChannelType[ChannelType["DM"] = 1] = "DM";
|
|
271
|
+
/** a voice channel within a server */
|
|
272
|
+
ChannelType[ChannelType["GUILD_VOICE"] = 2] = "GUILD_VOICE";
|
|
273
|
+
/** a direct message between multiple users */
|
|
274
|
+
ChannelType[ChannelType["GROUP_DM"] = 3] = "GROUP_DM";
|
|
275
|
+
/** an organizational category that contains up to 50 channels */
|
|
276
|
+
ChannelType[ChannelType["GUILD_CATEGORY"] = 4] = "GUILD_CATEGORY";
|
|
277
|
+
/** a channel that users can follow and crosspost into their own server (formerly news channels) */
|
|
278
|
+
ChannelType[ChannelType["GUILD_ANNOUNCEMENT"] = 5] = "GUILD_ANNOUNCEMENT";
|
|
279
|
+
/** a temporary sub-channel within a GUILD_ANNOUNCEMENT channel */
|
|
280
|
+
ChannelType[ChannelType["ANNOUNCEMENT_THREAD"] = 10] = "ANNOUNCEMENT_THREAD";
|
|
281
|
+
/** a temporary sub-channel within a GUILD_TEXT or GUILD_FORUM channel */
|
|
282
|
+
ChannelType[ChannelType["PUBLIC_THREAD"] = 11] = "PUBLIC_THREAD";
|
|
283
|
+
/** a temporary sub-channel within a GUILD_TEXT channel that is only viewable by those invited and those with the MANAGE_THREADS permission */
|
|
284
|
+
ChannelType[ChannelType["PRIVATE_THREAD"] = 12] = "PRIVATE_THREAD";
|
|
285
|
+
/** a voice channel for hosting events with an audience */
|
|
286
|
+
ChannelType[ChannelType["GUILD_STAGE_VOICE"] = 13] = "GUILD_STAGE_VOICE";
|
|
287
|
+
/** the channel in a hub containing the listed servers */
|
|
288
|
+
ChannelType[ChannelType["GUILD_DIRECTORY"] = 14] = "GUILD_DIRECTORY";
|
|
289
|
+
/** Channel that can only contain threads */
|
|
290
|
+
ChannelType[ChannelType["GUILD_FORUM"] = 15] = "GUILD_FORUM";
|
|
291
|
+
/** Channel that can only contain threads, similar to GUILD_FORUM channels */
|
|
292
|
+
ChannelType[ChannelType["GUILD_MEDIA"] = 16] = "GUILD_MEDIA";
|
|
293
|
+
})(ChannelType || (exports.ChannelType = ChannelType = {}));
|
|
294
|
+
var ComponentType;
|
|
295
|
+
exports.ComponentType = ComponentType;
|
|
296
|
+
(function (ComponentType) {
|
|
297
|
+
/** Container for other components */
|
|
298
|
+
ComponentType[ComponentType["ACTION_ROW"] = 1] = "ACTION_ROW";
|
|
299
|
+
/** Button object */
|
|
300
|
+
ComponentType[ComponentType["BUTTON"] = 2] = "BUTTON";
|
|
301
|
+
/** Select menu for picking from defined text options */
|
|
302
|
+
ComponentType[ComponentType["STRING_SELECT"] = 3] = "STRING_SELECT";
|
|
303
|
+
/** Text input object */
|
|
304
|
+
ComponentType[ComponentType["TEXT_INPUT"] = 4] = "TEXT_INPUT";
|
|
305
|
+
/** Select menu for users */
|
|
306
|
+
ComponentType[ComponentType["USER_SELECT"] = 5] = "USER_SELECT";
|
|
307
|
+
/** Select menu for roles */
|
|
308
|
+
ComponentType[ComponentType["ROLE_SELECT"] = 6] = "ROLE_SELECT";
|
|
309
|
+
/** Select menu for mentionables (users and roles) */
|
|
310
|
+
ComponentType[ComponentType["MENTIONABLE_SELECT"] = 7] = "MENTIONABLE_SELECT";
|
|
311
|
+
/** Select menu for channels */
|
|
312
|
+
ComponentType[ComponentType["CHANNEL_SELECT"] = 8] = "CHANNEL_SELECT";
|
|
313
|
+
})(ComponentType || (exports.ComponentType = ComponentType = {}));
|
|
55
314
|
function createRoutes(fetch) {
|
|
56
315
|
return {
|
|
57
316
|
addGuildMember: (guildId, userId, params, options) => fetch({
|
|
@@ -794,11 +1053,6 @@ function createRoutes(fetch) {
|
|
|
794
1053
|
params,
|
|
795
1054
|
options
|
|
796
1055
|
}),
|
|
797
|
-
listNitroStickerPacks: options => fetch({
|
|
798
|
-
method: "GET",
|
|
799
|
-
url: `/sticker-packs`,
|
|
800
|
-
options
|
|
801
|
-
}),
|
|
802
1056
|
listPrivateArchivedThreads: (channelId, params, options) => fetch({
|
|
803
1057
|
method: "GET",
|
|
804
1058
|
url: `/channels/${channelId}/threads/archived/private`,
|
|
@@ -817,6 +1071,11 @@ function createRoutes(fetch) {
|
|
|
817
1071
|
params,
|
|
818
1072
|
options
|
|
819
1073
|
}),
|
|
1074
|
+
listStickerPacks: options => fetch({
|
|
1075
|
+
method: "GET",
|
|
1076
|
+
url: `/sticker-packs`,
|
|
1077
|
+
options
|
|
1078
|
+
}),
|
|
820
1079
|
listThreadMembers: (channelId, params, options) => fetch({
|
|
821
1080
|
method: "GET",
|
|
822
1081
|
url: `/channels/${channelId}/thread-members`,
|
|
@@ -1001,7 +1260,7 @@ function createRoutes(fetch) {
|
|
|
1001
1260
|
params,
|
|
1002
1261
|
options
|
|
1003
1262
|
}),
|
|
1004
|
-
|
|
1263
|
+
startThreadInForumOrMediaChannel: (channelId, params, options) => fetch({
|
|
1005
1264
|
method: "POST",
|
|
1006
1265
|
url: `/channels/${channelId}/threads`,
|
|
1007
1266
|
params,
|
|
@@ -1041,6 +1300,56 @@ function createRoutes(fetch) {
|
|
|
1041
1300
|
})
|
|
1042
1301
|
};
|
|
1043
1302
|
}
|
|
1303
|
+
var DefaultMessageNotificationLevel;
|
|
1304
|
+
exports.DefaultMessageNotificationLevel = DefaultMessageNotificationLevel;
|
|
1305
|
+
(function (DefaultMessageNotificationLevel) {
|
|
1306
|
+
/** members will receive notifications for all messages by default */
|
|
1307
|
+
DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["ALL_MESSAGES"] = 0] = "ALL_MESSAGES";
|
|
1308
|
+
/** members will receive notifications only for messages that @mention them by default */
|
|
1309
|
+
DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["ONLY_MENTIONS"] = 1] = "ONLY_MENTIONS";
|
|
1310
|
+
})(DefaultMessageNotificationLevel || (exports.DefaultMessageNotificationLevel = DefaultMessageNotificationLevel = {}));
|
|
1311
|
+
var EmbedType;
|
|
1312
|
+
exports.EmbedType = EmbedType;
|
|
1313
|
+
(function (EmbedType) {
|
|
1314
|
+
/** generic embed rendered from embed attributes */
|
|
1315
|
+
EmbedType["RICH"] = "rich";
|
|
1316
|
+
/** image embed */
|
|
1317
|
+
EmbedType["IMAGE"] = "image";
|
|
1318
|
+
/** video embed */
|
|
1319
|
+
EmbedType["VIDEO"] = "video";
|
|
1320
|
+
/** animated gif image embed rendered as a video embed */
|
|
1321
|
+
EmbedType["GIFV"] = "gifv";
|
|
1322
|
+
/** article embed */
|
|
1323
|
+
EmbedType["ARTICLE"] = "article";
|
|
1324
|
+
/** link embed */
|
|
1325
|
+
EmbedType["LINK"] = "link";
|
|
1326
|
+
})(EmbedType || (exports.EmbedType = EmbedType = {}));
|
|
1327
|
+
var EventType;
|
|
1328
|
+
exports.EventType = EventType;
|
|
1329
|
+
(function (EventType) {
|
|
1330
|
+
/** when a member sends or edits a message in the guild */
|
|
1331
|
+
EventType[EventType["MESSAGE_SEND"] = 1] = "MESSAGE_SEND";
|
|
1332
|
+
})(EventType || (exports.EventType = EventType = {}));
|
|
1333
|
+
var ExplicitContentFilterLevel;
|
|
1334
|
+
exports.ExplicitContentFilterLevel = ExplicitContentFilterLevel;
|
|
1335
|
+
(function (ExplicitContentFilterLevel) {
|
|
1336
|
+
/** media content will not be scanned */
|
|
1337
|
+
ExplicitContentFilterLevel[ExplicitContentFilterLevel["DISABLED"] = 0] = "DISABLED";
|
|
1338
|
+
/** media content sent by members without roles will be scanned */
|
|
1339
|
+
ExplicitContentFilterLevel[ExplicitContentFilterLevel["MEMBERS_WITHOUT_ROLES"] = 1] = "MEMBERS_WITHOUT_ROLES";
|
|
1340
|
+
/** media content sent by all members will be scanned */
|
|
1341
|
+
ExplicitContentFilterLevel[ExplicitContentFilterLevel["ALL_MEMBERS"] = 2] = "ALL_MEMBERS";
|
|
1342
|
+
})(ExplicitContentFilterLevel || (exports.ExplicitContentFilterLevel = ExplicitContentFilterLevel = {}));
|
|
1343
|
+
var ForumLayoutType;
|
|
1344
|
+
exports.ForumLayoutType = ForumLayoutType;
|
|
1345
|
+
(function (ForumLayoutType) {
|
|
1346
|
+
/** No default has been set for forum channel */
|
|
1347
|
+
ForumLayoutType[ForumLayoutType["NOT_SET"] = 0] = "NOT_SET";
|
|
1348
|
+
/** Display posts as a list */
|
|
1349
|
+
ForumLayoutType[ForumLayoutType["LIST_VIEW"] = 1] = "LIST_VIEW";
|
|
1350
|
+
/** Display posts as a collection of tiles */
|
|
1351
|
+
ForumLayoutType[ForumLayoutType["GALLERY_VIEW"] = 2] = "GALLERY_VIEW";
|
|
1352
|
+
})(ForumLayoutType || (exports.ForumLayoutType = ForumLayoutType = {}));
|
|
1044
1353
|
const GatewayIntents = {
|
|
1045
1354
|
GUILDS: 1 << 0,
|
|
1046
1355
|
GUILD_MEMBERS: 1 << 1,
|
|
@@ -1063,6 +1372,90 @@ const GatewayIntents = {
|
|
|
1063
1372
|
AUTO_MODERATION_EXECUTION: 1 << 21
|
|
1064
1373
|
};
|
|
1065
1374
|
exports.GatewayIntents = GatewayIntents;
|
|
1375
|
+
var GatewayOpcode;
|
|
1376
|
+
exports.GatewayOpcode = GatewayOpcode;
|
|
1377
|
+
(function (GatewayOpcode) {
|
|
1378
|
+
/** An event was dispatched. */
|
|
1379
|
+
GatewayOpcode[GatewayOpcode["DISPATCH"] = 0] = "DISPATCH";
|
|
1380
|
+
/** Fired periodically by the client to keep the connection alive. */
|
|
1381
|
+
GatewayOpcode[GatewayOpcode["HEARTBEAT"] = 1] = "HEARTBEAT";
|
|
1382
|
+
/** Starts a new session during the initial handshake. */
|
|
1383
|
+
GatewayOpcode[GatewayOpcode["IDENTIFY"] = 2] = "IDENTIFY";
|
|
1384
|
+
/** Update the client's presence. */
|
|
1385
|
+
GatewayOpcode[GatewayOpcode["PRESENCE_UPDATE"] = 3] = "PRESENCE_UPDATE";
|
|
1386
|
+
/** Used to join/leave or move between voice channels. */
|
|
1387
|
+
GatewayOpcode[GatewayOpcode["VOICE_STATE_UPDATE"] = 4] = "VOICE_STATE_UPDATE";
|
|
1388
|
+
/** Resume a previous session that was disconnected. */
|
|
1389
|
+
GatewayOpcode[GatewayOpcode["RESUME"] = 6] = "RESUME";
|
|
1390
|
+
/** You should attempt to reconnect and resume immediately. */
|
|
1391
|
+
GatewayOpcode[GatewayOpcode["RECONNECT"] = 7] = "RECONNECT";
|
|
1392
|
+
/** Request information about offline guild members in a large guild. */
|
|
1393
|
+
GatewayOpcode[GatewayOpcode["REQUEST_GUILD_MEMBERS"] = 8] = "REQUEST_GUILD_MEMBERS";
|
|
1394
|
+
/** The session has been invalidated. You should reconnect and identify/resume accordingly. */
|
|
1395
|
+
GatewayOpcode[GatewayOpcode["INVALID_SESSION"] = 9] = "INVALID_SESSION";
|
|
1396
|
+
/** Sent immediately after connecting, contains the heartbeat_interval to use. */
|
|
1397
|
+
GatewayOpcode[GatewayOpcode["HELLO"] = 10] = "HELLO";
|
|
1398
|
+
/** Sent in response to receiving a heartbeat to acknowledge that it has been received. */
|
|
1399
|
+
GatewayOpcode[GatewayOpcode["HEARTBEAT_ACK"] = 11] = "HEARTBEAT_ACK";
|
|
1400
|
+
})(GatewayOpcode || (exports.GatewayOpcode = GatewayOpcode = {}));
|
|
1401
|
+
var GuildFeature;
|
|
1402
|
+
exports.GuildFeature = GuildFeature;
|
|
1403
|
+
(function (GuildFeature) {
|
|
1404
|
+
/** guild has access to set an animated guild banner image */
|
|
1405
|
+
GuildFeature["ANIMATED_BANNER"] = "ANIMATED_BANNER";
|
|
1406
|
+
/** guild has access to set an animated guild icon */
|
|
1407
|
+
GuildFeature["ANIMATED_ICON"] = "ANIMATED_ICON";
|
|
1408
|
+
/** guild is using the old permissions configuration behavior */
|
|
1409
|
+
GuildFeature["APPLICATION_COMMAND_PERMISSIONS_V2"] = "APPLICATION_COMMAND_PERMISSIONS_V2";
|
|
1410
|
+
/** guild has set up auto moderation rules */
|
|
1411
|
+
GuildFeature["AUTO_MODERATION"] = "AUTO_MODERATION";
|
|
1412
|
+
/** guild has access to set a guild banner image */
|
|
1413
|
+
GuildFeature["BANNER"] = "BANNER";
|
|
1414
|
+
/** guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates */
|
|
1415
|
+
GuildFeature["COMMUNITY"] = "COMMUNITY";
|
|
1416
|
+
/** guild has enabled monetization */
|
|
1417
|
+
GuildFeature["CREATOR_MONETIZABLE_PROVISIONAL"] = "CREATOR_MONETIZABLE_PROVISIONAL";
|
|
1418
|
+
/** guild has enabled the role subscription promo page */
|
|
1419
|
+
GuildFeature["CREATOR_STORE_PAGE"] = "CREATOR_STORE_PAGE";
|
|
1420
|
+
/** guild has been set as a support server on the App Directory */
|
|
1421
|
+
GuildFeature["DEVELOPER_SUPPORT_SERVER"] = "DEVELOPER_SUPPORT_SERVER";
|
|
1422
|
+
/** guild is able to be discovered in the directory */
|
|
1423
|
+
GuildFeature["DISCOVERABLE"] = "DISCOVERABLE";
|
|
1424
|
+
/** guild is able to be featured in the directory */
|
|
1425
|
+
GuildFeature["FEATURABLE"] = "FEATURABLE";
|
|
1426
|
+
/** guild has paused invites, preventing new users from joining */
|
|
1427
|
+
GuildFeature["INVITES_DISABLED"] = "INVITES_DISABLED";
|
|
1428
|
+
/** guild has access to set an invite splash background */
|
|
1429
|
+
GuildFeature["INVITE_SPLASH"] = "INVITE_SPLASH";
|
|
1430
|
+
/** guild has enabled Membership Screening */
|
|
1431
|
+
GuildFeature["MEMBER_VERIFICATION_GATE_ENABLED"] = "MEMBER_VERIFICATION_GATE_ENABLED";
|
|
1432
|
+
/** guild has increased custom sticker slots */
|
|
1433
|
+
GuildFeature["MORE_STICKERS"] = "MORE_STICKERS";
|
|
1434
|
+
/** guild has access to create announcement channels */
|
|
1435
|
+
GuildFeature["NEWS"] = "NEWS";
|
|
1436
|
+
/** guild is partnered */
|
|
1437
|
+
GuildFeature["PARTNERED"] = "PARTNERED";
|
|
1438
|
+
/** guild can be previewed before joining via Membership Screening or the directory */
|
|
1439
|
+
GuildFeature["PREVIEW_ENABLED"] = "PREVIEW_ENABLED";
|
|
1440
|
+
/** guild has disabled alerts for join raids in the configured safety alerts channel */
|
|
1441
|
+
GuildFeature["RAID_ALERTS_DISABLED"] = "RAID_ALERTS_DISABLED";
|
|
1442
|
+
/** guild is able to set role icons */
|
|
1443
|
+
GuildFeature["ROLE_ICONS"] = "ROLE_ICONS";
|
|
1444
|
+
/** guild has role subscriptions that can be purchased */
|
|
1445
|
+
GuildFeature["ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE"] = "ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE";
|
|
1446
|
+
/** guild has enabled role subscriptions */
|
|
1447
|
+
GuildFeature["ROLE_SUBSCRIPTIONS_ENABLED"] = "ROLE_SUBSCRIPTIONS_ENABLED";
|
|
1448
|
+
/** guild has enabled ticketed events */
|
|
1449
|
+
GuildFeature["TICKETED_EVENTS_ENABLED"] = "TICKETED_EVENTS_ENABLED";
|
|
1450
|
+
/** guild has access to set a vanity URL */
|
|
1451
|
+
GuildFeature["VANITY_URL"] = "VANITY_URL";
|
|
1452
|
+
/** guild is verified */
|
|
1453
|
+
GuildFeature["VERIFIED"] = "VERIFIED";
|
|
1454
|
+
/** guild has access to set 384kbps bitrate in voice (previously VIP voice servers) */
|
|
1455
|
+
GuildFeature["VIP_REGIONS"] = "VIP_REGIONS";
|
|
1456
|
+
/** guild has enabled the welcome screen */
|
|
1457
|
+
GuildFeature["WELCOME_SCREEN_ENABLED"] = "WELCOME_SCREEN_ENABLED";
|
|
1458
|
+
})(GuildFeature || (exports.GuildFeature = GuildFeature = {}));
|
|
1066
1459
|
const GuildMemberFlag = {
|
|
1067
1460
|
/** Member has left and rejoined the guild */
|
|
1068
1461
|
DID_REJOIN: 1 << 0,
|
|
@@ -1074,6 +1467,98 @@ const GuildMemberFlag = {
|
|
|
1074
1467
|
STARTED_ONBOARDING: 1 << 3
|
|
1075
1468
|
};
|
|
1076
1469
|
exports.GuildMemberFlag = GuildMemberFlag;
|
|
1470
|
+
var GuildNsfwLevel;
|
|
1471
|
+
exports.GuildNsfwLevel = GuildNsfwLevel;
|
|
1472
|
+
(function (GuildNsfwLevel) {
|
|
1473
|
+
GuildNsfwLevel[GuildNsfwLevel["DEFAULT"] = 0] = "DEFAULT";
|
|
1474
|
+
GuildNsfwLevel[GuildNsfwLevel["EXPLICIT"] = 1] = "EXPLICIT";
|
|
1475
|
+
GuildNsfwLevel[GuildNsfwLevel["SAFE"] = 2] = "SAFE";
|
|
1476
|
+
GuildNsfwLevel[GuildNsfwLevel["AGE_RESTRICTED"] = 3] = "AGE_RESTRICTED";
|
|
1477
|
+
})(GuildNsfwLevel || (exports.GuildNsfwLevel = GuildNsfwLevel = {}));
|
|
1478
|
+
var GuildScheduledEventEntityType;
|
|
1479
|
+
exports.GuildScheduledEventEntityType = GuildScheduledEventEntityType;
|
|
1480
|
+
(function (GuildScheduledEventEntityType) {
|
|
1481
|
+
GuildScheduledEventEntityType[GuildScheduledEventEntityType["STAGE_INSTANCE"] = 1] = "STAGE_INSTANCE";
|
|
1482
|
+
GuildScheduledEventEntityType[GuildScheduledEventEntityType["VOICE"] = 2] = "VOICE";
|
|
1483
|
+
GuildScheduledEventEntityType[GuildScheduledEventEntityType["EXTERNAL"] = 3] = "EXTERNAL";
|
|
1484
|
+
})(GuildScheduledEventEntityType || (exports.GuildScheduledEventEntityType = GuildScheduledEventEntityType = {}));
|
|
1485
|
+
var GuildScheduledEventPrivacyLevel;
|
|
1486
|
+
exports.GuildScheduledEventPrivacyLevel = GuildScheduledEventPrivacyLevel;
|
|
1487
|
+
(function (GuildScheduledEventPrivacyLevel) {
|
|
1488
|
+
/** the scheduled event is only accessible to guild members */
|
|
1489
|
+
GuildScheduledEventPrivacyLevel[GuildScheduledEventPrivacyLevel["GUILD_ONLY"] = 2] = "GUILD_ONLY";
|
|
1490
|
+
})(GuildScheduledEventPrivacyLevel || (exports.GuildScheduledEventPrivacyLevel = GuildScheduledEventPrivacyLevel = {}));
|
|
1491
|
+
var GuildScheduledEventStatus;
|
|
1492
|
+
exports.GuildScheduledEventStatus = GuildScheduledEventStatus;
|
|
1493
|
+
(function (GuildScheduledEventStatus) {
|
|
1494
|
+
GuildScheduledEventStatus[GuildScheduledEventStatus["SCHEDULED"] = 1] = "SCHEDULED";
|
|
1495
|
+
GuildScheduledEventStatus[GuildScheduledEventStatus["ACTIVE"] = 2] = "ACTIVE";
|
|
1496
|
+
GuildScheduledEventStatus[GuildScheduledEventStatus["COMPLETED"] = 3] = "COMPLETED";
|
|
1497
|
+
GuildScheduledEventStatus[GuildScheduledEventStatus["CANCELED"] = 4] = "CANCELED";
|
|
1498
|
+
})(GuildScheduledEventStatus || (exports.GuildScheduledEventStatus = GuildScheduledEventStatus = {}));
|
|
1499
|
+
var IntegrationExpireBehavior;
|
|
1500
|
+
exports.IntegrationExpireBehavior = IntegrationExpireBehavior;
|
|
1501
|
+
(function (IntegrationExpireBehavior) {
|
|
1502
|
+
IntegrationExpireBehavior[IntegrationExpireBehavior["REMOVE_ROLE"] = 0] = "REMOVE_ROLE";
|
|
1503
|
+
IntegrationExpireBehavior[IntegrationExpireBehavior["KICK"] = 1] = "KICK";
|
|
1504
|
+
})(IntegrationExpireBehavior || (exports.IntegrationExpireBehavior = IntegrationExpireBehavior = {}));
|
|
1505
|
+
var InteractionCallbackType;
|
|
1506
|
+
exports.InteractionCallbackType = InteractionCallbackType;
|
|
1507
|
+
(function (InteractionCallbackType) {
|
|
1508
|
+
/** ACK a Ping */
|
|
1509
|
+
InteractionCallbackType[InteractionCallbackType["PONG"] = 1] = "PONG";
|
|
1510
|
+
/** respond to an interaction with a message */
|
|
1511
|
+
InteractionCallbackType[InteractionCallbackType["CHANNEL_MESSAGE_WITH_SOURCE"] = 4] = "CHANNEL_MESSAGE_WITH_SOURCE";
|
|
1512
|
+
/** ACK an interaction and edit a response later, the user sees a loading state */
|
|
1513
|
+
InteractionCallbackType[InteractionCallbackType["DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE"] = 5] = "DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE";
|
|
1514
|
+
/** for components, ACK an interaction and edit the original message later; the user does not see a loading state */
|
|
1515
|
+
InteractionCallbackType[InteractionCallbackType["DEFERRED_UPDATE_MESSAGE"] = 6] = "DEFERRED_UPDATE_MESSAGE";
|
|
1516
|
+
/** for components, edit the message the component was attached to */
|
|
1517
|
+
InteractionCallbackType[InteractionCallbackType["UPDATE_MESSAGE"] = 7] = "UPDATE_MESSAGE";
|
|
1518
|
+
/** respond to an autocomplete interaction with suggested choices */
|
|
1519
|
+
InteractionCallbackType[InteractionCallbackType["APPLICATION_COMMAND_AUTOCOMPLETE_RESULT"] = 8] = "APPLICATION_COMMAND_AUTOCOMPLETE_RESULT";
|
|
1520
|
+
/** respond to an interaction with a popup modal */
|
|
1521
|
+
InteractionCallbackType[InteractionCallbackType["MODAL"] = 9] = "MODAL";
|
|
1522
|
+
})(InteractionCallbackType || (exports.InteractionCallbackType = InteractionCallbackType = {}));
|
|
1523
|
+
var InteractionType;
|
|
1524
|
+
exports.InteractionType = InteractionType;
|
|
1525
|
+
(function (InteractionType) {
|
|
1526
|
+
InteractionType[InteractionType["PING"] = 1] = "PING";
|
|
1527
|
+
InteractionType[InteractionType["APPLICATION_COMMAND"] = 2] = "APPLICATION_COMMAND";
|
|
1528
|
+
InteractionType[InteractionType["MESSAGE_COMPONENT"] = 3] = "MESSAGE_COMPONENT";
|
|
1529
|
+
InteractionType[InteractionType["APPLICATION_COMMAND_AUTOCOMPLETE"] = 4] = "APPLICATION_COMMAND_AUTOCOMPLETE";
|
|
1530
|
+
InteractionType[InteractionType["MODAL_SUBMIT"] = 5] = "MODAL_SUBMIT";
|
|
1531
|
+
})(InteractionType || (exports.InteractionType = InteractionType = {}));
|
|
1532
|
+
var InviteTargetType;
|
|
1533
|
+
exports.InviteTargetType = InviteTargetType;
|
|
1534
|
+
(function (InviteTargetType) {
|
|
1535
|
+
InviteTargetType[InviteTargetType["STREAM"] = 1] = "STREAM";
|
|
1536
|
+
InviteTargetType[InviteTargetType["EMBEDDED_APPLICATION"] = 2] = "EMBEDDED_APPLICATION";
|
|
1537
|
+
})(InviteTargetType || (exports.InviteTargetType = InviteTargetType = {}));
|
|
1538
|
+
var KeywordPresetType;
|
|
1539
|
+
exports.KeywordPresetType = KeywordPresetType;
|
|
1540
|
+
(function (KeywordPresetType) {
|
|
1541
|
+
/** words that may be considered forms of swearing or cursing */
|
|
1542
|
+
KeywordPresetType[KeywordPresetType["PROFANITY"] = 1] = "PROFANITY";
|
|
1543
|
+
/** words that refer to sexually explicit behavior or activity */
|
|
1544
|
+
KeywordPresetType[KeywordPresetType["SEXUAL_CONTENT"] = 2] = "SEXUAL_CONTENT";
|
|
1545
|
+
/** personal insults or words that may be considered hate speech */
|
|
1546
|
+
KeywordPresetType[KeywordPresetType["SLURS"] = 3] = "SLURS";
|
|
1547
|
+
})(KeywordPresetType || (exports.KeywordPresetType = KeywordPresetType = {}));
|
|
1548
|
+
var MembershipState;
|
|
1549
|
+
exports.MembershipState = MembershipState;
|
|
1550
|
+
(function (MembershipState) {
|
|
1551
|
+
MembershipState[MembershipState["INVITED"] = 1] = "INVITED";
|
|
1552
|
+
MembershipState[MembershipState["ACCEPTED"] = 2] = "ACCEPTED";
|
|
1553
|
+
})(MembershipState || (exports.MembershipState = MembershipState = {}));
|
|
1554
|
+
var MessageActivityType;
|
|
1555
|
+
exports.MessageActivityType = MessageActivityType;
|
|
1556
|
+
(function (MessageActivityType) {
|
|
1557
|
+
MessageActivityType[MessageActivityType["JOIN"] = 1] = "JOIN";
|
|
1558
|
+
MessageActivityType[MessageActivityType["SPECTATE"] = 2] = "SPECTATE";
|
|
1559
|
+
MessageActivityType[MessageActivityType["LISTEN"] = 3] = "LISTEN";
|
|
1560
|
+
MessageActivityType[MessageActivityType["JOIN_REQUEST"] = 5] = "JOIN_REQUEST";
|
|
1561
|
+
})(MessageActivityType || (exports.MessageActivityType = MessageActivityType = {}));
|
|
1077
1562
|
const MessageFlag = {
|
|
1078
1563
|
/** this message has been published to subscribed channels (via Channel Following) */
|
|
1079
1564
|
CROSSPOSTED: 1 << 0,
|
|
@@ -1099,6 +1584,125 @@ const MessageFlag = {
|
|
|
1099
1584
|
IS_VOICE_MESSAGE: 1 << 13
|
|
1100
1585
|
};
|
|
1101
1586
|
exports.MessageFlag = MessageFlag;
|
|
1587
|
+
var MessageType;
|
|
1588
|
+
exports.MessageType = MessageType;
|
|
1589
|
+
(function (MessageType) {
|
|
1590
|
+
MessageType[MessageType["DEFAULT"] = 0] = "DEFAULT";
|
|
1591
|
+
MessageType[MessageType["RECIPIENT_ADD"] = 1] = "RECIPIENT_ADD";
|
|
1592
|
+
MessageType[MessageType["RECIPIENT_REMOVE"] = 2] = "RECIPIENT_REMOVE";
|
|
1593
|
+
MessageType[MessageType["CALL"] = 3] = "CALL";
|
|
1594
|
+
MessageType[MessageType["CHANNEL_NAME_CHANGE"] = 4] = "CHANNEL_NAME_CHANGE";
|
|
1595
|
+
MessageType[MessageType["CHANNEL_ICON_CHANGE"] = 5] = "CHANNEL_ICON_CHANGE";
|
|
1596
|
+
MessageType[MessageType["CHANNEL_PINNED_MESSAGE"] = 6] = "CHANNEL_PINNED_MESSAGE";
|
|
1597
|
+
MessageType[MessageType["USER_JOIN"] = 7] = "USER_JOIN";
|
|
1598
|
+
MessageType[MessageType["GUILD_BOOST"] = 8] = "GUILD_BOOST";
|
|
1599
|
+
MessageType[MessageType["GUILD_BOOST_TIER_1"] = 9] = "GUILD_BOOST_TIER_1";
|
|
1600
|
+
MessageType[MessageType["GUILD_BOOST_TIER_2"] = 10] = "GUILD_BOOST_TIER_2";
|
|
1601
|
+
MessageType[MessageType["GUILD_BOOST_TIER_3"] = 11] = "GUILD_BOOST_TIER_3";
|
|
1602
|
+
MessageType[MessageType["CHANNEL_FOLLOW_ADD"] = 12] = "CHANNEL_FOLLOW_ADD";
|
|
1603
|
+
MessageType[MessageType["GUILD_DISCOVERY_DISQUALIFIED"] = 14] = "GUILD_DISCOVERY_DISQUALIFIED";
|
|
1604
|
+
MessageType[MessageType["GUILD_DISCOVERY_REQUALIFIED"] = 15] = "GUILD_DISCOVERY_REQUALIFIED";
|
|
1605
|
+
MessageType[MessageType["GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING"] = 16] = "GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING";
|
|
1606
|
+
MessageType[MessageType["GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING"] = 17] = "GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING";
|
|
1607
|
+
MessageType[MessageType["THREAD_CREATED"] = 18] = "THREAD_CREATED";
|
|
1608
|
+
MessageType[MessageType["REPLY"] = 19] = "REPLY";
|
|
1609
|
+
MessageType[MessageType["CHAT_INPUT_COMMAND"] = 20] = "CHAT_INPUT_COMMAND";
|
|
1610
|
+
MessageType[MessageType["THREAD_STARTER_MESSAGE"] = 21] = "THREAD_STARTER_MESSAGE";
|
|
1611
|
+
MessageType[MessageType["GUILD_INVITE_REMINDER"] = 22] = "GUILD_INVITE_REMINDER";
|
|
1612
|
+
MessageType[MessageType["CONTEXT_MENU_COMMAND"] = 23] = "CONTEXT_MENU_COMMAND";
|
|
1613
|
+
MessageType[MessageType["AUTO_MODERATION_ACTION"] = 24] = "AUTO_MODERATION_ACTION";
|
|
1614
|
+
MessageType[MessageType["ROLE_SUBSCRIPTION_PURCHASE"] = 25] = "ROLE_SUBSCRIPTION_PURCHASE";
|
|
1615
|
+
MessageType[MessageType["INTERACTION_PREMIUM_UPSELL"] = 26] = "INTERACTION_PREMIUM_UPSELL";
|
|
1616
|
+
MessageType[MessageType["STAGE_START"] = 27] = "STAGE_START";
|
|
1617
|
+
MessageType[MessageType["STAGE_END"] = 28] = "STAGE_END";
|
|
1618
|
+
MessageType[MessageType["STAGE_SPEAKER"] = 29] = "STAGE_SPEAKER";
|
|
1619
|
+
MessageType[MessageType["STAGE_TOPIC"] = 31] = "STAGE_TOPIC";
|
|
1620
|
+
MessageType[MessageType["GUILD_APPLICATION_PREMIUM_SUBSCRIPTION"] = 32] = "GUILD_APPLICATION_PREMIUM_SUBSCRIPTION";
|
|
1621
|
+
})(MessageType || (exports.MessageType = MessageType = {}));
|
|
1622
|
+
var MfaLevel;
|
|
1623
|
+
exports.MfaLevel = MfaLevel;
|
|
1624
|
+
(function (MfaLevel) {
|
|
1625
|
+
/** guild has no MFA/2FA requirement for moderation actions */
|
|
1626
|
+
MfaLevel[MfaLevel["NONE"] = 0] = "NONE";
|
|
1627
|
+
/** guild has a 2FA requirement for moderation actions */
|
|
1628
|
+
MfaLevel[MfaLevel["ELEVATED"] = 1] = "ELEVATED";
|
|
1629
|
+
})(MfaLevel || (exports.MfaLevel = MfaLevel = {}));
|
|
1630
|
+
var MutableGuildFeature;
|
|
1631
|
+
exports.MutableGuildFeature = MutableGuildFeature;
|
|
1632
|
+
(function (MutableGuildFeature) {
|
|
1633
|
+
MutableGuildFeature["COMMUNITY"] = "COMMUNITY";
|
|
1634
|
+
MutableGuildFeature["DISCOVERABLE"] = "DISCOVERABLE";
|
|
1635
|
+
MutableGuildFeature["INVITES_DISABLED"] = "INVITES_DISABLED";
|
|
1636
|
+
MutableGuildFeature["RAID_ALERTS_DISABLED"] = "RAID_ALERTS_DISABLED";
|
|
1637
|
+
})(MutableGuildFeature || (exports.MutableGuildFeature = MutableGuildFeature = {}));
|
|
1638
|
+
var OAuth2Scope;
|
|
1639
|
+
exports.OAuth2Scope = OAuth2Scope;
|
|
1640
|
+
(function (OAuth2Scope) {
|
|
1641
|
+
/** allows your app to fetch data from a user's "Now Playing/Recently Played" list — not currently available for apps */
|
|
1642
|
+
OAuth2Scope["ACTIVITIES_READ"] = "activities.read";
|
|
1643
|
+
/** allows your app to update a user's activity - requires Discord approval (NOT REQUIRED FOR GAMESDK ACTIVITY MANAGER) */
|
|
1644
|
+
OAuth2Scope["ACTIVITIES_WRITE"] = "activities.write";
|
|
1645
|
+
/** allows your app to read build data for a user's applications */
|
|
1646
|
+
OAuth2Scope["APPLICATIONS_BUILDS_READ"] = "applications.builds.read";
|
|
1647
|
+
/** allows your app to upload/update builds for a user's applications - requires Discord approval */
|
|
1648
|
+
OAuth2Scope["APPLICATIONS_BUILDS_UPLOAD"] = "applications.builds.upload";
|
|
1649
|
+
/** allows your app to use commands in a guild */
|
|
1650
|
+
OAuth2Scope["APPLICATIONS_COMMANDS"] = "applications.commands";
|
|
1651
|
+
/** allows your app to update its commands using a Bearer token - client credentials grant only */
|
|
1652
|
+
OAuth2Scope["APPLICATIONS_COMMANDS_UPDATE"] = "applications.commands.update";
|
|
1653
|
+
/** allows your app to update permissions for its commands in a guild a user has permissions to */
|
|
1654
|
+
OAuth2Scope["APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE"] = "applications.commands.permissions.update";
|
|
1655
|
+
/** allows your app to read entitlements for a user's applications */
|
|
1656
|
+
OAuth2Scope["APPLICATIONS_ENTITLEMENTS"] = "applications.entitlements";
|
|
1657
|
+
/** allows your app to read and update store data (SKUs, store listings, achievements, etc.) for a user's applications */
|
|
1658
|
+
OAuth2Scope["APPLICATIONS_STORE_UPDATE"] = "applications.store.update";
|
|
1659
|
+
/** for oauth2 bots, this puts the bot in the user's selected guild by default */
|
|
1660
|
+
OAuth2Scope["BOT"] = "bot";
|
|
1661
|
+
/** allows /users/@me/connections to return linked third-party accounts */
|
|
1662
|
+
OAuth2Scope["CONNECTIONS"] = "connections";
|
|
1663
|
+
/** allows your app to see information about the user's DMs and group DMs - requires Discord approval */
|
|
1664
|
+
OAuth2Scope["DM_CHANNELS_READ"] = "dm_channels.read";
|
|
1665
|
+
/** enables /users/@me to return an email */
|
|
1666
|
+
OAuth2Scope["EMAIL"] = "email";
|
|
1667
|
+
/** allows your app to join users to a group dm */
|
|
1668
|
+
OAuth2Scope["GDM_JOIN"] = "gdm.join";
|
|
1669
|
+
/** allows /users/@me/guilds to return basic information about all of a user's guilds */
|
|
1670
|
+
OAuth2Scope["GUILDS"] = "guilds";
|
|
1671
|
+
/** allows /guilds/{guild.id}/members/{user.id} to be used for joining users to a guild */
|
|
1672
|
+
OAuth2Scope["GUILDS_JOIN"] = "guilds.join";
|
|
1673
|
+
/** allows /users/@me/guilds/{guild.id}/member to return a user's member information in a guild */
|
|
1674
|
+
OAuth2Scope["GUILDS_MEMBERS_READ"] = "guilds.members.read";
|
|
1675
|
+
/** allows /users/@me without email */
|
|
1676
|
+
OAuth2Scope["IDENTIFY"] = "identify";
|
|
1677
|
+
/** for local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates) */
|
|
1678
|
+
OAuth2Scope["MESSAGES_READ"] = "messages.read";
|
|
1679
|
+
/** allows your app to know a user's friends and implicit relationships - requires Discord approval */
|
|
1680
|
+
OAuth2Scope["RELATIONSHIPS_READ"] = "relationships.read";
|
|
1681
|
+
/** allows your app to update a user's connection and metadata for the app */
|
|
1682
|
+
OAuth2Scope["ROLE_CONNECTIONS_WRITE"] = "role_connections.write";
|
|
1683
|
+
/** for local rpc server access, this allows you to control a user's local Discord client - requires Discord approval */
|
|
1684
|
+
OAuth2Scope["RPC"] = "rpc";
|
|
1685
|
+
/** for local rpc server access, this allows you to update a user's activity - requires Discord approval */
|
|
1686
|
+
OAuth2Scope["RPC_ACTIVITIES_WRITE"] = "rpc.activities.write";
|
|
1687
|
+
/** for local rpc server access, this allows you to receive notifications pushed out to the user - requires Discord approval */
|
|
1688
|
+
OAuth2Scope["RPC_NOTIFICATIONS_READ"] = "rpc.notifications.read";
|
|
1689
|
+
/** for local rpc server access, this allows you to read a user's voice settings and listen for voice events - requires Discord approval */
|
|
1690
|
+
OAuth2Scope["RPC_VOICE_READ"] = "rpc.voice.read";
|
|
1691
|
+
/** for local rpc server access, this allows you to update a user's voice settings - requires Discord approval */
|
|
1692
|
+
OAuth2Scope["RPC_VOICE_WRITE"] = "rpc.voice.write";
|
|
1693
|
+
/** allows your app to connect to voice on user's behalf and see all the voice members - requires Discord approval */
|
|
1694
|
+
OAuth2Scope["VOICE"] = "voice";
|
|
1695
|
+
/** this generates a webhook that is returned in the oauth token response for authorization code grants */
|
|
1696
|
+
OAuth2Scope["WEBHOOK_INCOMING"] = "webhook.incoming";
|
|
1697
|
+
})(OAuth2Scope || (exports.OAuth2Scope = OAuth2Scope = {}));
|
|
1698
|
+
var OnboardingMode;
|
|
1699
|
+
exports.OnboardingMode = OnboardingMode;
|
|
1700
|
+
(function (OnboardingMode) {
|
|
1701
|
+
/** Counts only Default Channels towards constraints */
|
|
1702
|
+
OnboardingMode[OnboardingMode["ONBOARDING_DEFAULT"] = 0] = "ONBOARDING_DEFAULT";
|
|
1703
|
+
/** Counts Default Channels and Questions towards constraints */
|
|
1704
|
+
OnboardingMode[OnboardingMode["ONBOARDING_ADVANCED"] = 1] = "ONBOARDING_ADVANCED";
|
|
1705
|
+
})(OnboardingMode || (exports.OnboardingMode = OnboardingMode = {}));
|
|
1102
1706
|
const PermissionFlag = {
|
|
1103
1707
|
/** Allows creation of instant invites */
|
|
1104
1708
|
CREATE_INSTANT_INVITE: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(0),
|
|
@@ -1192,11 +1796,83 @@ const PermissionFlag = {
|
|
|
1192
1796
|
SEND_VOICE_MESSAGES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(46)
|
|
1193
1797
|
};
|
|
1194
1798
|
exports.PermissionFlag = PermissionFlag;
|
|
1799
|
+
var PremiumTier;
|
|
1800
|
+
exports.PremiumTier = PremiumTier;
|
|
1801
|
+
(function (PremiumTier) {
|
|
1802
|
+
/** guild has not unlocked any Server Boost perks */
|
|
1803
|
+
PremiumTier[PremiumTier["NONE"] = 0] = "NONE";
|
|
1804
|
+
/** guild has unlocked Server Boost level 1 perks */
|
|
1805
|
+
PremiumTier[PremiumTier["TIER_1"] = 1] = "TIER_1";
|
|
1806
|
+
/** guild has unlocked Server Boost level 2 perks */
|
|
1807
|
+
PremiumTier[PremiumTier["TIER_2"] = 2] = "TIER_2";
|
|
1808
|
+
/** guild has unlocked Server Boost level 3 perks */
|
|
1809
|
+
PremiumTier[PremiumTier["TIER_3"] = 3] = "TIER_3";
|
|
1810
|
+
})(PremiumTier || (exports.PremiumTier = PremiumTier = {}));
|
|
1811
|
+
var PremiumType;
|
|
1812
|
+
exports.PremiumType = PremiumType;
|
|
1813
|
+
(function (PremiumType) {
|
|
1814
|
+
PremiumType[PremiumType["NONE"] = 0] = "NONE";
|
|
1815
|
+
PremiumType[PremiumType["NITRO_CLASSIC"] = 1] = "NITRO_CLASSIC";
|
|
1816
|
+
PremiumType[PremiumType["NITRO"] = 2] = "NITRO";
|
|
1817
|
+
PremiumType[PremiumType["NITRO_BASIC"] = 3] = "NITRO_BASIC";
|
|
1818
|
+
})(PremiumType || (exports.PremiumType = PremiumType = {}));
|
|
1819
|
+
var PrivacyLevel;
|
|
1820
|
+
exports.PrivacyLevel = PrivacyLevel;
|
|
1821
|
+
(function (PrivacyLevel) {
|
|
1822
|
+
/** The Stage instance is visible publicly. (deprecated) */
|
|
1823
|
+
PrivacyLevel[PrivacyLevel["PUBLIC"] = 1] = "PUBLIC";
|
|
1824
|
+
/** The Stage instance is visible to only guild members. */
|
|
1825
|
+
PrivacyLevel[PrivacyLevel["GUILD_ONLY"] = 2] = "GUILD_ONLY";
|
|
1826
|
+
})(PrivacyLevel || (exports.PrivacyLevel = PrivacyLevel = {}));
|
|
1827
|
+
var PromptType;
|
|
1828
|
+
exports.PromptType = PromptType;
|
|
1829
|
+
(function (PromptType) {
|
|
1830
|
+
PromptType[PromptType["MULTIPLE_CHOICE"] = 0] = "MULTIPLE_CHOICE";
|
|
1831
|
+
PromptType[PromptType["DROPDOWN"] = 1] = "DROPDOWN";
|
|
1832
|
+
})(PromptType || (exports.PromptType = PromptType = {}));
|
|
1195
1833
|
const RoleFlag = {
|
|
1196
1834
|
/** role can be selected by members in an onboarding prompt */
|
|
1197
1835
|
IN_PROMPT: 1 << 0
|
|
1198
1836
|
};
|
|
1199
1837
|
exports.RoleFlag = RoleFlag;
|
|
1838
|
+
var SortOrderType;
|
|
1839
|
+
exports.SortOrderType = SortOrderType;
|
|
1840
|
+
(function (SortOrderType) {
|
|
1841
|
+
/** Sort forum posts by activity */
|
|
1842
|
+
SortOrderType[SortOrderType["LATEST_ACTIVITY"] = 0] = "LATEST_ACTIVITY";
|
|
1843
|
+
/** Sort forum posts by creation time (from most recent to oldest) */
|
|
1844
|
+
SortOrderType[SortOrderType["CREATION_DATE"] = 1] = "CREATION_DATE";
|
|
1845
|
+
})(SortOrderType || (exports.SortOrderType = SortOrderType = {}));
|
|
1846
|
+
var StatusType;
|
|
1847
|
+
exports.StatusType = StatusType;
|
|
1848
|
+
(function (StatusType) {
|
|
1849
|
+
/** Online */
|
|
1850
|
+
StatusType["ONLINE"] = "online";
|
|
1851
|
+
/** Do Not Disturb */
|
|
1852
|
+
StatusType["DND"] = "dnd";
|
|
1853
|
+
/** AFK */
|
|
1854
|
+
StatusType["IDLE"] = "idle";
|
|
1855
|
+
/** Invisible and shown as offline */
|
|
1856
|
+
StatusType["INVISIBLE"] = "invisible";
|
|
1857
|
+
/** Offline */
|
|
1858
|
+
StatusType["OFFLINE"] = "offline";
|
|
1859
|
+
})(StatusType || (exports.StatusType = StatusType = {}));
|
|
1860
|
+
var StickerFormatType;
|
|
1861
|
+
exports.StickerFormatType = StickerFormatType;
|
|
1862
|
+
(function (StickerFormatType) {
|
|
1863
|
+
StickerFormatType[StickerFormatType["PNG"] = 1] = "PNG";
|
|
1864
|
+
StickerFormatType[StickerFormatType["APNG"] = 2] = "APNG";
|
|
1865
|
+
StickerFormatType[StickerFormatType["LOTTIE"] = 3] = "LOTTIE";
|
|
1866
|
+
StickerFormatType[StickerFormatType["GIF"] = 4] = "GIF";
|
|
1867
|
+
})(StickerFormatType || (exports.StickerFormatType = StickerFormatType = {}));
|
|
1868
|
+
var StickerType;
|
|
1869
|
+
exports.StickerType = StickerType;
|
|
1870
|
+
(function (StickerType) {
|
|
1871
|
+
/** an official sticker in a pack */
|
|
1872
|
+
StickerType[StickerType["STANDARD"] = 1] = "STANDARD";
|
|
1873
|
+
/** a sticker uploaded to a guild for the guild's members */
|
|
1874
|
+
StickerType[StickerType["GUILD"] = 2] = "GUILD";
|
|
1875
|
+
})(StickerType || (exports.StickerType = StickerType = {}));
|
|
1200
1876
|
const SystemChannelFlag = {
|
|
1201
1877
|
/** Suppress member join notifications */
|
|
1202
1878
|
SUPPRESS_JOIN_NOTIFICATIONS: 1 << 0,
|
|
@@ -1212,6 +1888,38 @@ const SystemChannelFlag = {
|
|
|
1212
1888
|
SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES: 1 << 5
|
|
1213
1889
|
};
|
|
1214
1890
|
exports.SystemChannelFlag = SystemChannelFlag;
|
|
1891
|
+
var TeamMemberRoleType;
|
|
1892
|
+
exports.TeamMemberRoleType = TeamMemberRoleType;
|
|
1893
|
+
(function (TeamMemberRoleType) {
|
|
1894
|
+
/** 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. */
|
|
1895
|
+
TeamMemberRoleType["OWNER"] = "";
|
|
1896
|
+
/** Admins have similar access as owners, except they cannot take destructive actions on the team or team-owned apps. */
|
|
1897
|
+
TeamMemberRoleType["ADMIN"] = "admin";
|
|
1898
|
+
/** 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. */
|
|
1899
|
+
TeamMemberRoleType["DEVELOPER"] = "developer";
|
|
1900
|
+
/** 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. */
|
|
1901
|
+
TeamMemberRoleType["READONLY"] = "read_only";
|
|
1902
|
+
})(TeamMemberRoleType || (exports.TeamMemberRoleType = TeamMemberRoleType = {}));
|
|
1903
|
+
var TextInputStyle;
|
|
1904
|
+
exports.TextInputStyle = TextInputStyle;
|
|
1905
|
+
(function (TextInputStyle) {
|
|
1906
|
+
/** Single-line input */
|
|
1907
|
+
TextInputStyle[TextInputStyle["SHORT"] = 1] = "SHORT";
|
|
1908
|
+
/** Multi-line input */
|
|
1909
|
+
TextInputStyle[TextInputStyle["PARAGRAPH"] = 2] = "PARAGRAPH";
|
|
1910
|
+
})(TextInputStyle || (exports.TextInputStyle = TextInputStyle = {}));
|
|
1911
|
+
var TriggerType;
|
|
1912
|
+
exports.TriggerType = TriggerType;
|
|
1913
|
+
(function (TriggerType) {
|
|
1914
|
+
/** check if content contains words from a user defined list of keywords */
|
|
1915
|
+
TriggerType[TriggerType["KEYWORD"] = 1] = "KEYWORD";
|
|
1916
|
+
/** check if content represents generic spam */
|
|
1917
|
+
TriggerType[TriggerType["SPAM"] = 3] = "SPAM";
|
|
1918
|
+
/** check if content contains words from internal pre-defined wordsets */
|
|
1919
|
+
TriggerType[TriggerType["KEYWORD_PRESET"] = 4] = "KEYWORD_PRESET";
|
|
1920
|
+
/** check if content contains more unique mentions than allowed */
|
|
1921
|
+
TriggerType[TriggerType["MENTION_SPAM"] = 5] = "MENTION_SPAM";
|
|
1922
|
+
})(TriggerType || (exports.TriggerType = TriggerType = {}));
|
|
1215
1923
|
const UserFlag = {
|
|
1216
1924
|
/** Discord Employee */
|
|
1217
1925
|
STAFF: 1 << 0,
|
|
@@ -1245,4 +1953,70 @@ const UserFlag = {
|
|
|
1245
1953
|
ACTIVE_DEVELOPER: 1 << 22
|
|
1246
1954
|
};
|
|
1247
1955
|
exports.UserFlag = UserFlag;
|
|
1956
|
+
var VerificationLevel;
|
|
1957
|
+
exports.VerificationLevel = VerificationLevel;
|
|
1958
|
+
(function (VerificationLevel) {
|
|
1959
|
+
/** unrestricted */
|
|
1960
|
+
VerificationLevel[VerificationLevel["NONE"] = 0] = "NONE";
|
|
1961
|
+
/** must have verified email on account */
|
|
1962
|
+
VerificationLevel[VerificationLevel["LOW"] = 1] = "LOW";
|
|
1963
|
+
/** must be registered on Discord for longer than 5 minutes */
|
|
1964
|
+
VerificationLevel[VerificationLevel["MEDIUM"] = 2] = "MEDIUM";
|
|
1965
|
+
/** must be a member of the server for longer than 10 minutes */
|
|
1966
|
+
VerificationLevel[VerificationLevel["HIGH"] = 3] = "HIGH";
|
|
1967
|
+
/** must have a verified phone number */
|
|
1968
|
+
VerificationLevel[VerificationLevel["VERY_HIGH"] = 4] = "VERY_HIGH";
|
|
1969
|
+
})(VerificationLevel || (exports.VerificationLevel = VerificationLevel = {}));
|
|
1970
|
+
var VideoQualityMode;
|
|
1971
|
+
exports.VideoQualityMode = VideoQualityMode;
|
|
1972
|
+
(function (VideoQualityMode) {
|
|
1973
|
+
/** Discord chooses the quality for optimal performance */
|
|
1974
|
+
VideoQualityMode[VideoQualityMode["AUTO"] = 1] = "AUTO";
|
|
1975
|
+
/** 720p */
|
|
1976
|
+
VideoQualityMode[VideoQualityMode["FULL"] = 2] = "FULL";
|
|
1977
|
+
})(VideoQualityMode || (exports.VideoQualityMode = VideoQualityMode = {}));
|
|
1978
|
+
var VisibilityType;
|
|
1979
|
+
exports.VisibilityType = VisibilityType;
|
|
1980
|
+
(function (VisibilityType) {
|
|
1981
|
+
/** invisible to everyone except the user themselves */
|
|
1982
|
+
VisibilityType[VisibilityType["NONE"] = 0] = "NONE";
|
|
1983
|
+
/** visible to everyone */
|
|
1984
|
+
VisibilityType[VisibilityType["EVERYONE"] = 1] = "EVERYONE";
|
|
1985
|
+
})(VisibilityType || (exports.VisibilityType = VisibilityType = {}));
|
|
1986
|
+
var VoiceOpcode;
|
|
1987
|
+
exports.VoiceOpcode = VoiceOpcode;
|
|
1988
|
+
(function (VoiceOpcode) {
|
|
1989
|
+
/** Begin a voice websocket connection. */
|
|
1990
|
+
VoiceOpcode[VoiceOpcode["IDENTIFY"] = 0] = "IDENTIFY";
|
|
1991
|
+
/** Select the voice protocol. */
|
|
1992
|
+
VoiceOpcode[VoiceOpcode["SELECT_PROTOCOL"] = 1] = "SELECT_PROTOCOL";
|
|
1993
|
+
/** Complete the websocket handshake. */
|
|
1994
|
+
VoiceOpcode[VoiceOpcode["READY"] = 2] = "READY";
|
|
1995
|
+
/** Keep the websocket connection alive. */
|
|
1996
|
+
VoiceOpcode[VoiceOpcode["HEARTBEAT"] = 3] = "HEARTBEAT";
|
|
1997
|
+
/** Describe the session. */
|
|
1998
|
+
VoiceOpcode[VoiceOpcode["SESSION_DESCRIPTION"] = 4] = "SESSION_DESCRIPTION";
|
|
1999
|
+
/** Indicate which users are speaking. */
|
|
2000
|
+
VoiceOpcode[VoiceOpcode["SPEAKING"] = 5] = "SPEAKING";
|
|
2001
|
+
/** Sent to acknowledge a received client heartbeat. */
|
|
2002
|
+
VoiceOpcode[VoiceOpcode["HEARTBEAT_ACK"] = 6] = "HEARTBEAT_ACK";
|
|
2003
|
+
/** Resume a connection. */
|
|
2004
|
+
VoiceOpcode[VoiceOpcode["RESUME"] = 7] = "RESUME";
|
|
2005
|
+
/** Time to wait between sending heartbeats in milliseconds. */
|
|
2006
|
+
VoiceOpcode[VoiceOpcode["HELLO"] = 8] = "HELLO";
|
|
2007
|
+
/** Acknowledge a successful session resume. */
|
|
2008
|
+
VoiceOpcode[VoiceOpcode["RESUMED"] = 9] = "RESUMED";
|
|
2009
|
+
/** A client has disconnected from the voice channel */
|
|
2010
|
+
VoiceOpcode[VoiceOpcode["CLIENT_DISCONNECT"] = 13] = "CLIENT_DISCONNECT";
|
|
2011
|
+
})(VoiceOpcode || (exports.VoiceOpcode = VoiceOpcode = {}));
|
|
2012
|
+
var WebhookType;
|
|
2013
|
+
exports.WebhookType = WebhookType;
|
|
2014
|
+
(function (WebhookType) {
|
|
2015
|
+
/** Incoming Webhooks can post messages to channels with a generated token */
|
|
2016
|
+
WebhookType[WebhookType["INCOMING"] = 1] = "INCOMING";
|
|
2017
|
+
/** Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels */
|
|
2018
|
+
WebhookType[WebhookType["CHANNEL_FOLLOWER"] = 2] = "CHANNEL_FOLLOWER";
|
|
2019
|
+
/** Application webhooks are webhooks used with Interactions */
|
|
2020
|
+
WebhookType[WebhookType["APPLICATION"] = 3] = "APPLICATION";
|
|
2021
|
+
})(WebhookType || (exports.WebhookType = WebhookType = {}));
|
|
1248
2022
|
//# sourceMappingURL=types.js.map
|