dfx 0.3.1 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DiscordConfig/index.d.ts +40 -0
- package/dist/DiscordConfig/index.d.ts.map +1 -0
- package/dist/DiscordConfig/index.js +29 -0
- package/dist/DiscordConfig/index.js.map +1 -0
- package/dist/DiscordGateway/DiscordWS/index.d.ts +23 -0
- package/dist/DiscordGateway/DiscordWS/index.d.ts.map +1 -0
- package/dist/DiscordGateway/DiscordWS/index.js +25 -0
- package/dist/DiscordGateway/DiscordWS/index.js.map +1 -0
- package/dist/DiscordGateway/Shard/heartbeats.d.ts +3 -0
- package/dist/DiscordGateway/Shard/heartbeats.d.ts.map +1 -0
- package/dist/DiscordGateway/Shard/heartbeats.js +23 -0
- package/dist/DiscordGateway/Shard/heartbeats.js.map +1 -0
- package/dist/DiscordGateway/Shard/identify.d.ts +13 -0
- package/dist/DiscordGateway/Shard/identify.d.ts.map +1 -0
- package/dist/DiscordGateway/Shard/identify.js +30 -0
- package/dist/DiscordGateway/Shard/identify.js.map +1 -0
- package/dist/DiscordGateway/Shard/index.d.ts +9 -0
- package/dist/DiscordGateway/Shard/index.d.ts.map +1 -0
- package/dist/DiscordGateway/Shard/index.js +51 -0
- package/dist/DiscordGateway/Shard/index.js.map +1 -0
- package/dist/DiscordGateway/Shard/invalidSession.d.ts +3 -0
- package/dist/DiscordGateway/Shard/invalidSession.d.ts.map +1 -0
- package/dist/DiscordGateway/Shard/invalidSession.js +9 -0
- package/dist/DiscordGateway/Shard/invalidSession.js.map +1 -0
- package/dist/DiscordGateway/Shard/sendEvents.d.ts +8 -0
- package/dist/DiscordGateway/Shard/sendEvents.d.ts.map +1 -0
- package/dist/DiscordGateway/Shard/sendEvents.js +26 -0
- package/dist/DiscordGateway/Shard/sendEvents.js.map +1 -0
- package/dist/DiscordGateway/Shard/utils.d.ts +4 -0
- package/dist/DiscordGateway/Shard/utils.d.ts.map +1 -0
- package/dist/DiscordGateway/Shard/utils.js +9 -0
- package/dist/DiscordGateway/Shard/utils.js.map +1 -0
- package/dist/DiscordGateway/ShardStore/index.d.ts +13 -0
- package/dist/DiscordGateway/ShardStore/index.d.ts.map +1 -0
- package/dist/DiscordGateway/ShardStore/index.js +22 -0
- package/dist/DiscordGateway/ShardStore/index.js.map +1 -0
- package/dist/DiscordGateway/Sharder/index.d.ts +10 -0
- package/dist/DiscordGateway/Sharder/index.d.ts.map +1 -0
- package/dist/DiscordGateway/Sharder/index.js +60 -0
- package/dist/DiscordGateway/Sharder/index.js.map +1 -0
- package/dist/DiscordGateway/WS/index.d.ts +28 -0
- package/dist/DiscordGateway/WS/index.d.ts.map +1 -0
- package/dist/DiscordGateway/WS/index.js +82 -0
- package/dist/DiscordGateway/WS/index.js.map +1 -0
- package/dist/DiscordGateway/index.d.ts +21 -0
- package/dist/DiscordGateway/index.d.ts.map +1 -0
- package/dist/DiscordGateway/index.js +27 -0
- package/dist/DiscordGateway/index.js.map +1 -0
- package/dist/DiscordREST/index.d.ts +13 -0
- package/dist/DiscordREST/index.d.ts.map +1 -0
- package/dist/DiscordREST/index.js +85 -0
- package/dist/DiscordREST/index.js.map +1 -0
- package/dist/DiscordREST/types.d.ts +10 -0
- package/dist/DiscordREST/types.d.ts.map +1 -0
- package/dist/DiscordREST/types.js +2 -0
- package/{esm → dist}/DiscordREST/types.js.map +1 -1
- package/dist/DiscordREST/utils.d.ts +11 -0
- package/dist/DiscordREST/utils.d.ts.map +1 -0
- package/dist/DiscordREST/utils.js +22 -0
- package/dist/DiscordREST/utils.js.map +1 -0
- package/dist/Helpers/flags.d.ts +28 -0
- package/dist/Helpers/flags.d.ts.map +1 -0
- package/dist/Helpers/flags.js +36 -0
- package/dist/Helpers/flags.js.map +1 -0
- package/dist/Helpers/intents.d.ts +25 -0
- package/dist/Helpers/intents.d.ts.map +1 -0
- package/dist/Helpers/intents.js +28 -0
- package/dist/Helpers/intents.js.map +1 -0
- package/dist/Helpers/interactions.d.ts +74 -0
- package/dist/Helpers/interactions.d.ts.map +1 -0
- package/dist/Helpers/interactions.js +93 -0
- package/dist/Helpers/interactions.js.map +1 -0
- package/dist/Helpers/members.d.ts +10 -0
- package/dist/Helpers/members.d.ts.map +1 -0
- package/dist/Helpers/members.js +10 -0
- package/dist/Helpers/members.js.map +1 -0
- package/dist/Helpers/permissions.d.ts +35 -0
- package/dist/Helpers/permissions.d.ts.map +1 -0
- package/dist/Helpers/permissions.js +69 -0
- package/dist/Helpers/permissions.js.map +1 -0
- package/dist/Helpers/ui.d.ts +48 -0
- package/dist/Helpers/ui.d.ts.map +1 -0
- package/dist/Helpers/ui.js +67 -0
- package/dist/Helpers/ui.js.map +1 -0
- package/dist/Http/index.d.ts +31 -0
- package/dist/Http/index.d.ts.map +1 -0
- package/dist/Http/index.js +54 -0
- package/dist/Http/index.js.map +1 -0
- package/dist/Interactions/context.d.ts +29 -0
- package/dist/Interactions/context.d.ts.map +1 -0
- package/dist/Interactions/context.js +23 -0
- package/dist/Interactions/context.js.map +1 -0
- package/dist/Interactions/definitions.d.ts +55 -0
- package/dist/Interactions/definitions.d.ts.map +1 -0
- package/dist/Interactions/definitions.js +52 -0
- package/dist/Interactions/definitions.js.map +1 -0
- package/dist/Interactions/gateway.d.ts +6 -0
- package/dist/Interactions/gateway.d.ts.map +1 -0
- package/dist/Interactions/gateway.js +17 -0
- package/dist/Interactions/gateway.js.map +1 -0
- package/dist/Interactions/handlers.d.ts +9 -0
- package/dist/Interactions/handlers.d.ts.map +1 -0
- package/dist/Interactions/handlers.js +49 -0
- package/dist/Interactions/handlers.js.map +1 -0
- package/dist/Interactions/index.d.ts +20 -0
- package/dist/Interactions/index.d.ts.map +1 -0
- package/dist/Interactions/index.js +31 -0
- package/dist/Interactions/index.js.map +1 -0
- package/dist/Interactions/utils.d.ts +10 -0
- package/dist/Interactions/utils.d.ts.map +1 -0
- package/dist/Interactions/utils.js +20 -0
- package/dist/Interactions/utils.js.map +1 -0
- package/dist/Interactions/webhook.d.ts +18 -0
- package/dist/Interactions/webhook.d.ts.map +1 -0
- package/dist/Interactions/webhook.js +26 -0
- package/dist/Interactions/webhook.js.map +1 -0
- package/dist/Log/index.d.ts +13 -0
- package/dist/Log/index.d.ts.map +1 -0
- package/dist/Log/index.js +19 -0
- package/dist/Log/index.js.map +1 -0
- package/dist/RateLimitStore/index.d.ts +25 -0
- package/dist/RateLimitStore/index.d.ts.map +1 -0
- package/dist/RateLimitStore/index.js +24 -0
- package/dist/RateLimitStore/index.js.map +1 -0
- package/dist/RateLimitStore/memory.d.ts +3 -0
- package/dist/RateLimitStore/memory.d.ts.map +1 -0
- package/dist/RateLimitStore/memory.js +31 -0
- package/dist/RateLimitStore/memory.js.map +1 -0
- package/dist/RateLimitStore/utils.d.ts +3 -0
- package/dist/RateLimitStore/utils.d.ts.map +1 -0
- package/dist/RateLimitStore/utils.js +18 -0
- package/dist/RateLimitStore/utils.js.map +1 -0
- package/dist/common.d.ts +34 -0
- package/dist/common.d.ts.map +1 -0
- package/dist/common.js +21 -0
- package/dist/common.js.map +1 -0
- package/dist/global.d.ts +14 -0
- package/dist/global.d.ts.map +1 -0
- package/dist/global.js +2 -0
- package/dist/global.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/{types.d.ts → dist/types.d.ts} +1455 -824
- package/dist/types.d.ts.map +1 -0
- package/{esm → dist}/types.js +283 -46
- package/dist/types.js.map +1 -0
- package/dist/utils/effect.d.ts +3 -0
- package/dist/utils/effect.d.ts.map +1 -0
- package/dist/utils/effect.js +2 -0
- package/dist/utils/effect.js.map +1 -0
- package/dist/utils/tsplus.d.ts +14 -0
- package/dist/utils/tsplus.d.ts.map +1 -0
- package/dist/utils/tsplus.js +2 -0
- package/dist/utils/tsplus.js.map +1 -0
- package/package.json +34 -51
- package/src/DiscordConfig/index.ts +52 -0
- package/src/DiscordGateway/DiscordWS/index.ts +50 -0
- package/src/DiscordGateway/Shard/heartbeats.ts +39 -0
- package/src/DiscordGateway/Shard/identify.ts +61 -0
- package/src/DiscordGateway/Shard/index.ts +90 -0
- package/src/DiscordGateway/Shard/invalidSession.ts +11 -0
- package/src/DiscordGateway/Shard/sendEvents.ts +35 -0
- package/src/DiscordGateway/Shard/utils.ts +14 -0
- package/src/DiscordGateway/ShardStore/index.ts +33 -0
- package/src/DiscordGateway/Sharder/index.ts +95 -0
- package/src/DiscordGateway/WS/index.ts +99 -0
- package/src/DiscordGateway/index.ts +55 -0
- package/src/DiscordREST/index.ts +132 -0
- package/src/DiscordREST/types.ts +14 -0
- package/src/DiscordREST/utils.ts +35 -0
- package/src/Helpers/flags.ts +68 -0
- package/src/Helpers/intents.ts +32 -0
- package/src/Helpers/interactions.ts +180 -0
- package/src/Helpers/members.ts +14 -0
- package/src/Helpers/permissions.ts +102 -0
- package/src/Helpers/ui.ts +103 -0
- package/src/Http/index.ts +65 -0
- package/src/Interactions/context.ts +76 -0
- package/src/Interactions/definitions.ts +124 -0
- package/src/Interactions/gateway.ts +44 -0
- package/src/Interactions/handlers.ts +139 -0
- package/src/Interactions/index.ts +57 -0
- package/src/Interactions/utils.ts +47 -0
- package/src/Interactions/webhook.ts +59 -0
- package/src/Log/index.ts +23 -0
- package/src/RateLimitStore/index.ts +65 -0
- package/src/RateLimitStore/memory.ts +48 -0
- package/src/RateLimitStore/utils.ts +27 -0
- package/src/common.ts +35 -0
- package/src/global.ts +50 -0
- package/src/index.ts +45 -0
- package/src/json.d.ts +1 -0
- package/{types.ts → src/types.ts} +1615 -875
- package/src/utils/effect.ts +7 -0
- package/src/utils/tsplus.ts +11 -0
- package/DiscordConfig/index.d.ts +0 -29
- package/DiscordConfig/index.js +0 -31
- package/DiscordConfig/index.js.map +0 -1
- package/DiscordConfig/index.ts +0 -45
- package/DiscordGateway/index.d.ts +0 -23
- package/DiscordGateway/index.js +0 -25
- package/DiscordGateway/index.js.map +0 -1
- package/DiscordGateway/index.ts +0 -34
- package/DiscordGateway/utils.d.ts +0 -3
- package/DiscordGateway/utils.js +0 -12
- package/DiscordGateway/utils.js.map +0 -1
- package/DiscordGateway/utils.ts +0 -17
- package/DiscordREST/http.d.ts +0 -3
- package/DiscordREST/http.js +0 -20
- package/DiscordREST/http.js.map +0 -1
- package/DiscordREST/http.ts +0 -21
- package/DiscordREST/index.d.ts +0 -15
- package/DiscordREST/index.js +0 -63
- package/DiscordREST/index.js.map +0 -1
- package/DiscordREST/index.ts +0 -79
- package/DiscordREST/types.d.ts +0 -14
- package/DiscordREST/types.js +0 -6
- package/DiscordREST/types.js.map +0 -1
- package/DiscordREST/types.ts +0 -15
- package/DiscordShard/commands.d.ts +0 -7
- package/DiscordShard/commands.js +0 -38
- package/DiscordShard/commands.js.map +0 -1
- package/DiscordShard/commands.ts +0 -40
- package/DiscordShard/heartbeats.d.ts +0 -6
- package/DiscordShard/heartbeats.js +0 -29
- package/DiscordShard/heartbeats.js.map +0 -1
- package/DiscordShard/heartbeats.ts +0 -65
- package/DiscordShard/identify.d.ts +0 -15
- package/DiscordShard/identify.js +0 -35
- package/DiscordShard/identify.js.map +0 -1
- package/DiscordShard/identify.ts +0 -75
- package/DiscordShard/index.d.ts +0 -32
- package/DiscordShard/index.js +0 -65
- package/DiscordShard/index.js.map +0 -1
- package/DiscordShard/index.ts +0 -124
- package/DiscordShard/invalidSession.d.ts +0 -6
- package/DiscordShard/invalidSession.js +0 -17
- package/DiscordShard/invalidSession.js.map +0 -1
- package/DiscordShard/invalidSession.ts +0 -24
- package/DiscordShard/utils.d.ts +0 -7
- package/DiscordShard/utils.js +0 -17
- package/DiscordShard/utils.js.map +0 -1
- package/DiscordShard/utils.ts +0 -32
- package/DiscordWS/index.d.ts +0 -36
- package/DiscordWS/index.js +0 -33
- package/DiscordWS/index.js.map +0 -1
- package/DiscordWS/index.ts +0 -78
- package/Log/index.d.ts +0 -15
- package/Log/index.js +0 -28
- package/Log/index.js.map +0 -1
- package/Log/index.ts +0 -30
- package/Utils/memoize.d.ts +0 -3
- package/Utils/memoize.js +0 -16
- package/Utils/memoize.js.map +0 -1
- package/Utils/memoize.ts +0 -15
- package/WS/index.d.ts +0 -30
- package/WS/index.js +0 -70
- package/WS/index.js.map +0 -1
- package/WS/index.ts +0 -106
- package/bot.d.ts +0 -1
- package/bot.js +0 -28
- package/bot.js.map +0 -1
- package/bot.ts +0 -48
- package/esm/DiscordConfig/index.js +0 -26
- package/esm/DiscordConfig/index.js.map +0 -1
- package/esm/DiscordGateway/index.js +0 -20
- package/esm/DiscordGateway/index.js.map +0 -1
- package/esm/DiscordGateway/utils.js +0 -7
- package/esm/DiscordGateway/utils.js.map +0 -1
- package/esm/DiscordREST/http.js +0 -15
- package/esm/DiscordREST/http.js.map +0 -1
- package/esm/DiscordREST/index.js +0 -59
- package/esm/DiscordREST/index.js.map +0 -1
- package/esm/DiscordREST/types.js +0 -3
- package/esm/DiscordShard/commands.js +0 -28
- package/esm/DiscordShard/commands.js.map +0 -1
- package/esm/DiscordShard/heartbeats.js +0 -24
- package/esm/DiscordShard/heartbeats.js.map +0 -1
- package/esm/DiscordShard/identify.js +0 -30
- package/esm/DiscordShard/identify.js.map +0 -1
- package/esm/DiscordShard/index.js +0 -60
- package/esm/DiscordShard/index.js.map +0 -1
- package/esm/DiscordShard/invalidSession.js +0 -12
- package/esm/DiscordShard/invalidSession.js.map +0 -1
- package/esm/DiscordShard/utils.js +0 -11
- package/esm/DiscordShard/utils.js.map +0 -1
- package/esm/DiscordWS/index.js +0 -28
- package/esm/DiscordWS/index.js.map +0 -1
- package/esm/Log/index.js +0 -22
- package/esm/Log/index.js.map +0 -1
- package/esm/Utils/memoize.js +0 -12
- package/esm/Utils/memoize.js.map +0 -1
- package/esm/WS/index.js +0 -65
- package/esm/WS/index.js.map +0 -1
- package/esm/bot.js +0 -25
- package/esm/bot.js.map +0 -1
- package/esm/mod.js +0 -16
- package/esm/mod.js.map +0 -1
- package/esm/types.js.map +0 -1
- package/mod.d.ts +0 -7
- package/mod.js +0 -25
- package/mod.js.map +0 -1
- package/mod.ts +0 -19
- package/types.js +0 -1564
- package/types.js.map +0 -1
package/types.js
DELETED
|
@@ -1,1564 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebhookType = exports.VoiceOpcode = exports.VisibilityType = exports.VideoQualityMode = exports.VerificationLevel = exports.UserFlag = exports.TextInputStyle = exports.SystemChannelFlag = exports.StickerType = exports.StickerFormatType = exports.StatusType = exports.PrivacyLevel = exports.PremiumType = exports.PremiumTier = exports.PermissionFlag = exports.MfaLevel = exports.MessageType = exports.MessageFlag = exports.MessageActivityType = exports.MembershipState = exports.InviteTargetType = exports.InteractionType = exports.InteractionCallbackType = exports.IntegrationExpireBehavior = exports.GuildScheduledEventStatus = exports.GuildScheduledEventPrivacyLevel = exports.GuildScheduledEventEntityType = exports.GuildNsfwLevel = exports.GuildFeature = exports.GatewayOpcode = exports.GatewayIntents = exports.ExplicitContentFilterLevel = exports.EmbedType = exports.DefaultMessageNotificationLevel = exports.createRoutes = exports.ComponentType = exports.ChannelType = exports.ButtonStyle = exports.AuditLogEvent = exports.ApplicationFlag = exports.ApplicationCommandType = exports.ApplicationCommandPermissionType = exports.ApplicationCommandOptionType = exports.AllowedMentionType = exports.ActivityType = exports.ActivityFlag = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const tracing_1 = tslib_1.__importStar(require("@effect-ts/core/Tracing"));
|
|
6
|
-
const fileName_1 = "types.ts";
|
|
7
|
-
exports.ActivityFlag = {
|
|
8
|
-
INSTANCE: 1 << 0,
|
|
9
|
-
JOIN: 1 << 1,
|
|
10
|
-
SPECTATE: 1 << 2,
|
|
11
|
-
JOIN_REQUEST: 1 << 3,
|
|
12
|
-
SYNC: 1 << 4,
|
|
13
|
-
PLAY: 1 << 5,
|
|
14
|
-
PARTY_PRIVACY_FRIENDS: 1 << 6,
|
|
15
|
-
PARTY_PRIVACY_VOICE_CHANNEL: 1 << 7,
|
|
16
|
-
EMBEDDED: 1 << 8,
|
|
17
|
-
};
|
|
18
|
-
var ActivityType;
|
|
19
|
-
(function (ActivityType) {
|
|
20
|
-
ActivityType[ActivityType["GAME"] = 0] = "GAME";
|
|
21
|
-
ActivityType[ActivityType["STREAMING"] = 1] = "STREAMING";
|
|
22
|
-
ActivityType[ActivityType["LISTENING"] = 2] = "LISTENING";
|
|
23
|
-
ActivityType[ActivityType["WATCHING"] = 3] = "WATCHING";
|
|
24
|
-
ActivityType[ActivityType["CUSTOM"] = 4] = "CUSTOM";
|
|
25
|
-
ActivityType[ActivityType["COMPETING"] = 5] = "COMPETING";
|
|
26
|
-
})(ActivityType = exports.ActivityType || (exports.ActivityType = {}));
|
|
27
|
-
var AllowedMentionType;
|
|
28
|
-
(function (AllowedMentionType) {
|
|
29
|
-
/** Controls role mentions */
|
|
30
|
-
AllowedMentionType["ROLE_MENTIONS"] = "roles";
|
|
31
|
-
/** Controls user mentions */
|
|
32
|
-
AllowedMentionType["USER_MENTIONS"] = "users";
|
|
33
|
-
/** Controls @everyone and @here mentions */
|
|
34
|
-
AllowedMentionType["EVERYONE_MENTIONS"] = "everyone";
|
|
35
|
-
})(AllowedMentionType = exports.AllowedMentionType || (exports.AllowedMentionType = {}));
|
|
36
|
-
var ApplicationCommandOptionType;
|
|
37
|
-
(function (ApplicationCommandOptionType) {
|
|
38
|
-
ApplicationCommandOptionType[ApplicationCommandOptionType["SUB_COMMAND"] = 1] = "SUB_COMMAND";
|
|
39
|
-
ApplicationCommandOptionType[ApplicationCommandOptionType["SUB_COMMAND_GROUP"] = 2] = "SUB_COMMAND_GROUP";
|
|
40
|
-
ApplicationCommandOptionType[ApplicationCommandOptionType["STRING"] = 3] = "STRING";
|
|
41
|
-
ApplicationCommandOptionType[ApplicationCommandOptionType["INTEGER"] = 4] = "INTEGER";
|
|
42
|
-
ApplicationCommandOptionType[ApplicationCommandOptionType["BOOLEAN"] = 5] = "BOOLEAN";
|
|
43
|
-
ApplicationCommandOptionType[ApplicationCommandOptionType["USER"] = 6] = "USER";
|
|
44
|
-
ApplicationCommandOptionType[ApplicationCommandOptionType["CHANNEL"] = 7] = "CHANNEL";
|
|
45
|
-
ApplicationCommandOptionType[ApplicationCommandOptionType["ROLE"] = 8] = "ROLE";
|
|
46
|
-
ApplicationCommandOptionType[ApplicationCommandOptionType["MENTIONABLE"] = 9] = "MENTIONABLE";
|
|
47
|
-
ApplicationCommandOptionType[ApplicationCommandOptionType["NUMBER"] = 10] = "NUMBER";
|
|
48
|
-
ApplicationCommandOptionType[ApplicationCommandOptionType["ATTACHMENT"] = 11] = "ATTACHMENT";
|
|
49
|
-
})(ApplicationCommandOptionType = exports.ApplicationCommandOptionType || (exports.ApplicationCommandOptionType = {}));
|
|
50
|
-
var ApplicationCommandPermissionType;
|
|
51
|
-
(function (ApplicationCommandPermissionType) {
|
|
52
|
-
ApplicationCommandPermissionType[ApplicationCommandPermissionType["ROLE"] = 1] = "ROLE";
|
|
53
|
-
ApplicationCommandPermissionType[ApplicationCommandPermissionType["USER"] = 2] = "USER";
|
|
54
|
-
})(ApplicationCommandPermissionType = exports.ApplicationCommandPermissionType || (exports.ApplicationCommandPermissionType = {}));
|
|
55
|
-
var ApplicationCommandType;
|
|
56
|
-
(function (ApplicationCommandType) {
|
|
57
|
-
/** Slash commands; a text-based command that shows up when a user types / */
|
|
58
|
-
ApplicationCommandType[ApplicationCommandType["CHAT_INPUT"] = 1] = "CHAT_INPUT";
|
|
59
|
-
/** A UI-based command that shows up when you right click or tap on a user */
|
|
60
|
-
ApplicationCommandType[ApplicationCommandType["USER"] = 2] = "USER";
|
|
61
|
-
/** A UI-based command that shows up when you right click or tap on a message */
|
|
62
|
-
ApplicationCommandType[ApplicationCommandType["MESSAGE"] = 3] = "MESSAGE";
|
|
63
|
-
})(ApplicationCommandType = exports.ApplicationCommandType || (exports.ApplicationCommandType = {}));
|
|
64
|
-
exports.ApplicationFlag = {
|
|
65
|
-
/** Intent required for bots in 100 or more servers to receive presence_update events */
|
|
66
|
-
GATEWAY_PRESENCE: 1 << 12,
|
|
67
|
-
/** Intent required for bots in under 100 servers to receive presence_update events, found in Bot Settings */
|
|
68
|
-
GATEWAY_PRESENCE_LIMITED: 1 << 13,
|
|
69
|
-
/** Intent required for bots in 100 or more servers to receive member-related events like guild_member_add. See list of member-related events under GUILD_MEMBERS */
|
|
70
|
-
GATEWAY_GUILD_MEMBERS: 1 << 14,
|
|
71
|
-
/** Intent required for bots in under 100 servers to receive member-related events like guild_member_add, found in Bot Settings. See list of member-related events under GUILD_MEMBERS */
|
|
72
|
-
GATEWAY_GUILD_MEMBERS_LIMITED: 1 << 15,
|
|
73
|
-
/** Indicates unusual growth of an app that prevents verification */
|
|
74
|
-
VERIFICATION_PENDING_GUILD_LIMIT: 1 << 16,
|
|
75
|
-
/** Indicates if an app is embedded within the Discord client (currently unavailable publicly) */
|
|
76
|
-
EMBEDDED: 1 << 17,
|
|
77
|
-
/** Intent required for bots in 100 or more servers to receive message content */
|
|
78
|
-
GATEWAY_MESSAGE_CONTENT: 1 << 18,
|
|
79
|
-
/** Intent required for bots in under 100 servers to receive message content, found in Bot Settings */
|
|
80
|
-
GATEWAY_MESSAGE_CONTENT_LIMITED: 1 << 19,
|
|
81
|
-
};
|
|
82
|
-
var AuditLogEvent;
|
|
83
|
-
(function (AuditLogEvent) {
|
|
84
|
-
AuditLogEvent[AuditLogEvent["GUILD_UPDATE"] = 1] = "GUILD_UPDATE";
|
|
85
|
-
AuditLogEvent[AuditLogEvent["CHANNEL_CREATE"] = 10] = "CHANNEL_CREATE";
|
|
86
|
-
AuditLogEvent[AuditLogEvent["CHANNEL_UPDATE"] = 11] = "CHANNEL_UPDATE";
|
|
87
|
-
AuditLogEvent[AuditLogEvent["CHANNEL_DELETE"] = 12] = "CHANNEL_DELETE";
|
|
88
|
-
AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_CREATE"] = 13] = "CHANNEL_OVERWRITE_CREATE";
|
|
89
|
-
AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_UPDATE"] = 14] = "CHANNEL_OVERWRITE_UPDATE";
|
|
90
|
-
AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_DELETE"] = 15] = "CHANNEL_OVERWRITE_DELETE";
|
|
91
|
-
AuditLogEvent[AuditLogEvent["MEMBER_KICK"] = 20] = "MEMBER_KICK";
|
|
92
|
-
AuditLogEvent[AuditLogEvent["MEMBER_PRUNE"] = 21] = "MEMBER_PRUNE";
|
|
93
|
-
AuditLogEvent[AuditLogEvent["MEMBER_BAN_ADD"] = 22] = "MEMBER_BAN_ADD";
|
|
94
|
-
AuditLogEvent[AuditLogEvent["MEMBER_BAN_REMOVE"] = 23] = "MEMBER_BAN_REMOVE";
|
|
95
|
-
AuditLogEvent[AuditLogEvent["MEMBER_UPDATE"] = 24] = "MEMBER_UPDATE";
|
|
96
|
-
AuditLogEvent[AuditLogEvent["MEMBER_ROLE_UPDATE"] = 25] = "MEMBER_ROLE_UPDATE";
|
|
97
|
-
AuditLogEvent[AuditLogEvent["MEMBER_MOVE"] = 26] = "MEMBER_MOVE";
|
|
98
|
-
AuditLogEvent[AuditLogEvent["MEMBER_DISCONNECT"] = 27] = "MEMBER_DISCONNECT";
|
|
99
|
-
AuditLogEvent[AuditLogEvent["BOT_ADD"] = 28] = "BOT_ADD";
|
|
100
|
-
AuditLogEvent[AuditLogEvent["ROLE_CREATE"] = 30] = "ROLE_CREATE";
|
|
101
|
-
AuditLogEvent[AuditLogEvent["ROLE_UPDATE"] = 31] = "ROLE_UPDATE";
|
|
102
|
-
AuditLogEvent[AuditLogEvent["ROLE_DELETE"] = 32] = "ROLE_DELETE";
|
|
103
|
-
AuditLogEvent[AuditLogEvent["INVITE_CREATE"] = 40] = "INVITE_CREATE";
|
|
104
|
-
AuditLogEvent[AuditLogEvent["INVITE_UPDATE"] = 41] = "INVITE_UPDATE";
|
|
105
|
-
AuditLogEvent[AuditLogEvent["INVITE_DELETE"] = 42] = "INVITE_DELETE";
|
|
106
|
-
AuditLogEvent[AuditLogEvent["WEBHOOK_CREATE"] = 50] = "WEBHOOK_CREATE";
|
|
107
|
-
AuditLogEvent[AuditLogEvent["WEBHOOK_UPDATE"] = 51] = "WEBHOOK_UPDATE";
|
|
108
|
-
AuditLogEvent[AuditLogEvent["WEBHOOK_DELETE"] = 52] = "WEBHOOK_DELETE";
|
|
109
|
-
AuditLogEvent[AuditLogEvent["EMOJI_CREATE"] = 60] = "EMOJI_CREATE";
|
|
110
|
-
AuditLogEvent[AuditLogEvent["EMOJI_UPDATE"] = 61] = "EMOJI_UPDATE";
|
|
111
|
-
AuditLogEvent[AuditLogEvent["EMOJI_DELETE"] = 62] = "EMOJI_DELETE";
|
|
112
|
-
AuditLogEvent[AuditLogEvent["MESSAGE_DELETE"] = 72] = "MESSAGE_DELETE";
|
|
113
|
-
AuditLogEvent[AuditLogEvent["MESSAGE_BULK_DELETE"] = 73] = "MESSAGE_BULK_DELETE";
|
|
114
|
-
AuditLogEvent[AuditLogEvent["MESSAGE_PIN"] = 74] = "MESSAGE_PIN";
|
|
115
|
-
AuditLogEvent[AuditLogEvent["MESSAGE_UNPIN"] = 75] = "MESSAGE_UNPIN";
|
|
116
|
-
AuditLogEvent[AuditLogEvent["INTEGRATION_CREATE"] = 80] = "INTEGRATION_CREATE";
|
|
117
|
-
AuditLogEvent[AuditLogEvent["INTEGRATION_UPDATE"] = 81] = "INTEGRATION_UPDATE";
|
|
118
|
-
AuditLogEvent[AuditLogEvent["INTEGRATION_DELETE"] = 82] = "INTEGRATION_DELETE";
|
|
119
|
-
AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_CREATE"] = 83] = "STAGE_INSTANCE_CREATE";
|
|
120
|
-
AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_UPDATE"] = 84] = "STAGE_INSTANCE_UPDATE";
|
|
121
|
-
AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_DELETE"] = 85] = "STAGE_INSTANCE_DELETE";
|
|
122
|
-
AuditLogEvent[AuditLogEvent["STICKER_CREATE"] = 90] = "STICKER_CREATE";
|
|
123
|
-
AuditLogEvent[AuditLogEvent["STICKER_UPDATE"] = 91] = "STICKER_UPDATE";
|
|
124
|
-
AuditLogEvent[AuditLogEvent["STICKER_DELETE"] = 92] = "STICKER_DELETE";
|
|
125
|
-
AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_CREATE"] = 100] = "GUILD_SCHEDULED_EVENT_CREATE";
|
|
126
|
-
AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_UPDATE"] = 101] = "GUILD_SCHEDULED_EVENT_UPDATE";
|
|
127
|
-
AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_DELETE"] = 102] = "GUILD_SCHEDULED_EVENT_DELETE";
|
|
128
|
-
AuditLogEvent[AuditLogEvent["THREAD_CREATE"] = 110] = "THREAD_CREATE";
|
|
129
|
-
AuditLogEvent[AuditLogEvent["THREAD_UPDATE"] = 111] = "THREAD_UPDATE";
|
|
130
|
-
AuditLogEvent[AuditLogEvent["THREAD_DELETE"] = 112] = "THREAD_DELETE";
|
|
131
|
-
})(AuditLogEvent = exports.AuditLogEvent || (exports.AuditLogEvent = {}));
|
|
132
|
-
var ButtonStyle;
|
|
133
|
-
(function (ButtonStyle) {
|
|
134
|
-
ButtonStyle[ButtonStyle["PRIMARY"] = 1] = "PRIMARY";
|
|
135
|
-
ButtonStyle[ButtonStyle["SECONDARY"] = 2] = "SECONDARY";
|
|
136
|
-
ButtonStyle[ButtonStyle["SUCCESS"] = 3] = "SUCCESS";
|
|
137
|
-
ButtonStyle[ButtonStyle["DANGER"] = 4] = "DANGER";
|
|
138
|
-
ButtonStyle[ButtonStyle["LINK"] = 5] = "LINK";
|
|
139
|
-
})(ButtonStyle = exports.ButtonStyle || (exports.ButtonStyle = {}));
|
|
140
|
-
var ChannelType;
|
|
141
|
-
(function (ChannelType) {
|
|
142
|
-
/** a text channel within a server */
|
|
143
|
-
ChannelType[ChannelType["GUILD_TEXT"] = 0] = "GUILD_TEXT";
|
|
144
|
-
/** a direct message between users */
|
|
145
|
-
ChannelType[ChannelType["DM"] = 1] = "DM";
|
|
146
|
-
/** a voice channel within a server */
|
|
147
|
-
ChannelType[ChannelType["GUILD_VOICE"] = 2] = "GUILD_VOICE";
|
|
148
|
-
/** a direct message between multiple users */
|
|
149
|
-
ChannelType[ChannelType["GROUP_DM"] = 3] = "GROUP_DM";
|
|
150
|
-
/** an organizational category that contains up to 50 channels */
|
|
151
|
-
ChannelType[ChannelType["GUILD_CATEGORY"] = 4] = "GUILD_CATEGORY";
|
|
152
|
-
/** a channel that users can follow and crosspost into their own server */
|
|
153
|
-
ChannelType[ChannelType["GUILD_NEWS"] = 5] = "GUILD_NEWS";
|
|
154
|
-
/** a channel in which game developers can sell their game on Discord */
|
|
155
|
-
ChannelType[ChannelType["GUILD_STORE"] = 6] = "GUILD_STORE";
|
|
156
|
-
/** a temporary sub-channel within a GUILD_NEWS channel */
|
|
157
|
-
ChannelType[ChannelType["GUILD_NEWS_THREAD"] = 10] = "GUILD_NEWS_THREAD";
|
|
158
|
-
/** a temporary sub-channel within a GUILD_TEXT channel */
|
|
159
|
-
ChannelType[ChannelType["GUILD_PUBLIC_THREAD"] = 11] = "GUILD_PUBLIC_THREAD";
|
|
160
|
-
/** a temporary sub-channel within a GUILD_TEXT channel that is only viewable by those invited and those with the MANAGE_THREADS permission */
|
|
161
|
-
ChannelType[ChannelType["GUILD_PRIVATE_THREAD"] = 12] = "GUILD_PRIVATE_THREAD";
|
|
162
|
-
/** a voice channel for hosting events with an audience */
|
|
163
|
-
ChannelType[ChannelType["GUILD_STAGE_VOICE"] = 13] = "GUILD_STAGE_VOICE";
|
|
164
|
-
})(ChannelType = exports.ChannelType || (exports.ChannelType = {}));
|
|
165
|
-
var ComponentType;
|
|
166
|
-
(function (ComponentType) {
|
|
167
|
-
/** A container for other components */
|
|
168
|
-
ComponentType[ComponentType["ACTION_ROW"] = 1] = "ACTION_ROW";
|
|
169
|
-
/** A button object */
|
|
170
|
-
ComponentType[ComponentType["BUTTON"] = 2] = "BUTTON";
|
|
171
|
-
/** A select menu for picking from choices */
|
|
172
|
-
ComponentType[ComponentType["SELECT_MENU"] = 3] = "SELECT_MENU";
|
|
173
|
-
/** A text input object */
|
|
174
|
-
ComponentType[ComponentType["TEXT_INPUT"] = 4] = "TEXT_INPUT";
|
|
175
|
-
})(ComponentType = exports.ComponentType || (exports.ComponentType = {}));
|
|
176
|
-
function createRoutes(fetch) {
|
|
177
|
-
return {
|
|
178
|
-
addGuildMember: (guildId, userId, params, options) => fetch({
|
|
179
|
-
method: "PUT",
|
|
180
|
-
url: `/guilds/${guildId}/members/${userId}`,
|
|
181
|
-
params,
|
|
182
|
-
options,
|
|
183
|
-
}),
|
|
184
|
-
addGuildMemberRole: (guildId, userId, roleId, options) => fetch({
|
|
185
|
-
method: "PUT",
|
|
186
|
-
url: `/guilds/${guildId}/members/${userId}/roles/${roleId}`,
|
|
187
|
-
options,
|
|
188
|
-
}),
|
|
189
|
-
addThreadMember: (channelId, userId, options) => fetch({
|
|
190
|
-
method: "PUT",
|
|
191
|
-
url: `/channels/${channelId}/thread-members/${userId}`,
|
|
192
|
-
options,
|
|
193
|
-
}),
|
|
194
|
-
batchEditApplicationCommandPermissions: (applicationId, guildId, params, options) => fetch({
|
|
195
|
-
method: "PUT",
|
|
196
|
-
url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
|
|
197
|
-
params,
|
|
198
|
-
options,
|
|
199
|
-
}),
|
|
200
|
-
beginGuildPrune: (guildId, params, options) => fetch({
|
|
201
|
-
method: "POST",
|
|
202
|
-
url: `/guilds/${guildId}/prune`,
|
|
203
|
-
params,
|
|
204
|
-
options,
|
|
205
|
-
}),
|
|
206
|
-
bulkDeleteMessages: (channelId, params, options) => fetch({
|
|
207
|
-
method: "POST",
|
|
208
|
-
url: `/channels/${channelId}/messages/bulk-delete`,
|
|
209
|
-
params,
|
|
210
|
-
options,
|
|
211
|
-
}),
|
|
212
|
-
bulkOverwriteGlobalApplicationCommands: (applicationId, options) => fetch({
|
|
213
|
-
method: "PUT",
|
|
214
|
-
url: `/applications/${applicationId}/commands`,
|
|
215
|
-
options,
|
|
216
|
-
}),
|
|
217
|
-
bulkOverwriteGuildApplicationCommands: (applicationId, guildId, params, options) => fetch({
|
|
218
|
-
method: "PUT",
|
|
219
|
-
url: `/applications/${applicationId}/guilds/${guildId}/commands`,
|
|
220
|
-
params,
|
|
221
|
-
options,
|
|
222
|
-
}),
|
|
223
|
-
createChannelInvite: (channelId, params, options) => fetch({
|
|
224
|
-
method: "POST",
|
|
225
|
-
url: `/channels/${channelId}/invites`,
|
|
226
|
-
params,
|
|
227
|
-
options,
|
|
228
|
-
}),
|
|
229
|
-
createDm: (params, options) => fetch({
|
|
230
|
-
method: "POST",
|
|
231
|
-
url: `/users/@me/channels`,
|
|
232
|
-
params,
|
|
233
|
-
options,
|
|
234
|
-
}),
|
|
235
|
-
createFollowupMessage: (applicationId, interactionToken, options) => fetch({
|
|
236
|
-
method: "POST",
|
|
237
|
-
url: `/webhooks/${applicationId}/${interactionToken}`,
|
|
238
|
-
options,
|
|
239
|
-
}),
|
|
240
|
-
createGlobalApplicationCommand: (applicationId, params, options) => fetch({
|
|
241
|
-
method: "POST",
|
|
242
|
-
url: `/applications/${applicationId}/commands`,
|
|
243
|
-
params,
|
|
244
|
-
options,
|
|
245
|
-
}),
|
|
246
|
-
createGroupDm: (params, options) => fetch({
|
|
247
|
-
method: "POST",
|
|
248
|
-
url: `/users/@me/channels`,
|
|
249
|
-
params,
|
|
250
|
-
options,
|
|
251
|
-
}),
|
|
252
|
-
createGuild: (params, options) => fetch({
|
|
253
|
-
method: "POST",
|
|
254
|
-
url: `/guilds`,
|
|
255
|
-
params,
|
|
256
|
-
options,
|
|
257
|
-
}),
|
|
258
|
-
createGuildApplicationCommand: (applicationId, guildId, params, options) => fetch({
|
|
259
|
-
method: "POST",
|
|
260
|
-
url: `/applications/${applicationId}/guilds/${guildId}/commands`,
|
|
261
|
-
params,
|
|
262
|
-
options,
|
|
263
|
-
}),
|
|
264
|
-
createGuildBan: (guildId, userId, params, options) => fetch({
|
|
265
|
-
method: "PUT",
|
|
266
|
-
url: `/guilds/${guildId}/bans/${userId}`,
|
|
267
|
-
params,
|
|
268
|
-
options,
|
|
269
|
-
}),
|
|
270
|
-
createGuildChannel: (guildId, params, options) => fetch({
|
|
271
|
-
method: "POST",
|
|
272
|
-
url: `/guilds/${guildId}/channels`,
|
|
273
|
-
params,
|
|
274
|
-
options,
|
|
275
|
-
}),
|
|
276
|
-
createGuildEmoji: (guildId, params, options) => fetch({
|
|
277
|
-
method: "POST",
|
|
278
|
-
url: `/guilds/${guildId}/emojis`,
|
|
279
|
-
params,
|
|
280
|
-
options,
|
|
281
|
-
}),
|
|
282
|
-
createGuildFromGuildTemplate: (templateCode, params, options) => fetch({
|
|
283
|
-
method: "POST",
|
|
284
|
-
url: `/guilds/templates/${templateCode}`,
|
|
285
|
-
params,
|
|
286
|
-
options,
|
|
287
|
-
}),
|
|
288
|
-
createGuildRole: (guildId, params, options) => fetch({
|
|
289
|
-
method: "POST",
|
|
290
|
-
url: `/guilds/${guildId}/roles`,
|
|
291
|
-
params,
|
|
292
|
-
options,
|
|
293
|
-
}),
|
|
294
|
-
createGuildScheduledEvent: (guildId, params, options) => fetch({
|
|
295
|
-
method: "POST",
|
|
296
|
-
url: `/guilds/${guildId}/scheduled-events`,
|
|
297
|
-
params,
|
|
298
|
-
options,
|
|
299
|
-
}),
|
|
300
|
-
createGuildSticker: (guildId, params, options) => fetch({
|
|
301
|
-
method: "POST",
|
|
302
|
-
url: `/guilds/${guildId}/stickers`,
|
|
303
|
-
params,
|
|
304
|
-
options,
|
|
305
|
-
}),
|
|
306
|
-
createGuildTemplate: (guildId, params, options) => fetch({
|
|
307
|
-
method: "POST",
|
|
308
|
-
url: `/guilds/${guildId}/templates`,
|
|
309
|
-
params,
|
|
310
|
-
options,
|
|
311
|
-
}),
|
|
312
|
-
createInteractionResponse: (interactionId, interactionToken, params, options) => fetch({
|
|
313
|
-
method: "POST",
|
|
314
|
-
url: `/interactions/${interactionId}/${interactionToken}/callback`,
|
|
315
|
-
params,
|
|
316
|
-
options,
|
|
317
|
-
}),
|
|
318
|
-
createMessage: (channelId, params, options) => fetch({
|
|
319
|
-
method: "POST",
|
|
320
|
-
url: `/channels/${channelId}/messages`,
|
|
321
|
-
params,
|
|
322
|
-
options,
|
|
323
|
-
}),
|
|
324
|
-
createReaction: (channelId, messageId, emoji, options) => fetch({
|
|
325
|
-
method: "PUT",
|
|
326
|
-
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
|
|
327
|
-
options,
|
|
328
|
-
}),
|
|
329
|
-
createStageInstance: (params, options) => fetch({
|
|
330
|
-
method: "POST",
|
|
331
|
-
url: `/stage-instances`,
|
|
332
|
-
params,
|
|
333
|
-
options,
|
|
334
|
-
}),
|
|
335
|
-
createWebhook: (channelId, params, options) => fetch({
|
|
336
|
-
method: "POST",
|
|
337
|
-
url: `/channels/${channelId}/webhooks`,
|
|
338
|
-
params,
|
|
339
|
-
options,
|
|
340
|
-
}),
|
|
341
|
-
crosspostMessage: (channelId, messageId, options) => fetch({
|
|
342
|
-
method: "POST",
|
|
343
|
-
url: `/channels/${channelId}/messages/${messageId}/crosspost`,
|
|
344
|
-
options,
|
|
345
|
-
}),
|
|
346
|
-
deleteAllReactions: (channelId, messageId, options) => fetch({
|
|
347
|
-
method: "DELETE",
|
|
348
|
-
url: `/channels/${channelId}/messages/${messageId}/reactions`,
|
|
349
|
-
options,
|
|
350
|
-
}),
|
|
351
|
-
deleteAllReactionsForEmoji: (channelId, messageId, emoji, options) => fetch({
|
|
352
|
-
method: "DELETE",
|
|
353
|
-
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}`,
|
|
354
|
-
options,
|
|
355
|
-
}),
|
|
356
|
-
deleteChannelPermission: (channelId, overwriteId, options) => fetch({
|
|
357
|
-
method: "DELETE",
|
|
358
|
-
url: `/channels/${channelId}/permissions/${overwriteId}`,
|
|
359
|
-
options,
|
|
360
|
-
}),
|
|
361
|
-
deletecloseChannel: (channelId, options) => fetch({
|
|
362
|
-
method: "DELETE",
|
|
363
|
-
url: `/channels/${channelId}`,
|
|
364
|
-
options,
|
|
365
|
-
}),
|
|
366
|
-
deleteFollowupMessage: (applicationId, interactionToken, messageId, options) => fetch({
|
|
367
|
-
method: "DELETE",
|
|
368
|
-
url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
|
|
369
|
-
options,
|
|
370
|
-
}),
|
|
371
|
-
deleteGlobalApplicationCommand: (applicationId, commandId, options) => fetch({
|
|
372
|
-
method: "DELETE",
|
|
373
|
-
url: `/applications/${applicationId}/commands/${commandId}`,
|
|
374
|
-
options,
|
|
375
|
-
}),
|
|
376
|
-
deleteGuild: (guildId, options) => fetch({
|
|
377
|
-
method: "DELETE",
|
|
378
|
-
url: `/guilds/${guildId}`,
|
|
379
|
-
options,
|
|
380
|
-
}),
|
|
381
|
-
deleteGuildApplicationCommand: (applicationId, guildId, commandId, options) => fetch({
|
|
382
|
-
method: "DELETE",
|
|
383
|
-
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
|
|
384
|
-
options,
|
|
385
|
-
}),
|
|
386
|
-
deleteGuildEmoji: (guildId, emojiId, options) => fetch({
|
|
387
|
-
method: "DELETE",
|
|
388
|
-
url: `/guilds/${guildId}/emojis/${emojiId}`,
|
|
389
|
-
options,
|
|
390
|
-
}),
|
|
391
|
-
deleteGuildIntegration: (guildId, integrationId, options) => fetch({
|
|
392
|
-
method: "DELETE",
|
|
393
|
-
url: `/guilds/${guildId}/integrations/${integrationId}`,
|
|
394
|
-
options,
|
|
395
|
-
}),
|
|
396
|
-
deleteGuildRole: (guildId, roleId, options) => fetch({
|
|
397
|
-
method: "DELETE",
|
|
398
|
-
url: `/guilds/${guildId}/roles/${roleId}`,
|
|
399
|
-
options,
|
|
400
|
-
}),
|
|
401
|
-
deleteGuildScheduledEvent: (guildId, guildScheduledEventId, options) => fetch({
|
|
402
|
-
method: "DELETE",
|
|
403
|
-
url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
|
|
404
|
-
options,
|
|
405
|
-
}),
|
|
406
|
-
deleteGuildSticker: (guildId, stickerId, options) => fetch({
|
|
407
|
-
method: "DELETE",
|
|
408
|
-
url: `/guilds/${guildId}/stickers/${stickerId}`,
|
|
409
|
-
options,
|
|
410
|
-
}),
|
|
411
|
-
deleteGuildTemplate: (guildId, templateCode, options) => fetch({
|
|
412
|
-
method: "DELETE",
|
|
413
|
-
url: `/guilds/${guildId}/templates/${templateCode}`,
|
|
414
|
-
options,
|
|
415
|
-
}),
|
|
416
|
-
deleteInvite: (inviteCode, options) => fetch({
|
|
417
|
-
method: "DELETE",
|
|
418
|
-
url: `/invites/${inviteCode}`,
|
|
419
|
-
options,
|
|
420
|
-
}),
|
|
421
|
-
deleteMessage: (channelId, messageId, options) => fetch({
|
|
422
|
-
method: "DELETE",
|
|
423
|
-
url: `/channels/${channelId}/messages/${messageId}`,
|
|
424
|
-
options,
|
|
425
|
-
}),
|
|
426
|
-
deleteOriginalInteractionResponse: (applicationId, interactionToken, options) => fetch({
|
|
427
|
-
method: "DELETE",
|
|
428
|
-
url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
|
|
429
|
-
options,
|
|
430
|
-
}),
|
|
431
|
-
deleteOwnReaction: (channelId, messageId, emoji, options) => fetch({
|
|
432
|
-
method: "DELETE",
|
|
433
|
-
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
|
|
434
|
-
options,
|
|
435
|
-
}),
|
|
436
|
-
deleteStageInstance: (channelId, options) => fetch({
|
|
437
|
-
method: "DELETE",
|
|
438
|
-
url: `/stage-instances/${channelId}`,
|
|
439
|
-
options,
|
|
440
|
-
}),
|
|
441
|
-
deleteUserReaction: (channelId, messageId, emoji, userId, options) => fetch({
|
|
442
|
-
method: "DELETE",
|
|
443
|
-
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/${userId}`,
|
|
444
|
-
options,
|
|
445
|
-
}),
|
|
446
|
-
deleteWebhook: (webhookId, options) => fetch({
|
|
447
|
-
method: "DELETE",
|
|
448
|
-
url: `/webhooks/${webhookId}`,
|
|
449
|
-
options,
|
|
450
|
-
}),
|
|
451
|
-
deleteWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
|
|
452
|
-
method: "DELETE",
|
|
453
|
-
url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
|
|
454
|
-
params,
|
|
455
|
-
options,
|
|
456
|
-
}),
|
|
457
|
-
deleteWebhookWithToken: (webhookId, webhookToken, options) => fetch({
|
|
458
|
-
method: "DELETE",
|
|
459
|
-
url: `/webhooks/${webhookId}/${webhookToken}`,
|
|
460
|
-
options,
|
|
461
|
-
}),
|
|
462
|
-
editApplicationCommandPermissions: (applicationId, guildId, commandId, params, options) => fetch({
|
|
463
|
-
method: "PUT",
|
|
464
|
-
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
|
|
465
|
-
params,
|
|
466
|
-
options,
|
|
467
|
-
}),
|
|
468
|
-
editChannelPermissions: (channelId, overwriteId, params, options) => fetch({
|
|
469
|
-
method: "PUT",
|
|
470
|
-
url: `/channels/${channelId}/permissions/${overwriteId}`,
|
|
471
|
-
params,
|
|
472
|
-
options,
|
|
473
|
-
}),
|
|
474
|
-
editFollowupMessage: (applicationId, interactionToken, messageId, options) => fetch({
|
|
475
|
-
method: "PATCH",
|
|
476
|
-
url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
|
|
477
|
-
options,
|
|
478
|
-
}),
|
|
479
|
-
editGlobalApplicationCommand: (applicationId, commandId, params, options) => fetch({
|
|
480
|
-
method: "PATCH",
|
|
481
|
-
url: `/applications/${applicationId}/commands/${commandId}`,
|
|
482
|
-
params,
|
|
483
|
-
options,
|
|
484
|
-
}),
|
|
485
|
-
editGuildApplicationCommand: (applicationId, guildId, commandId, params, options) => fetch({
|
|
486
|
-
method: "PATCH",
|
|
487
|
-
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
|
|
488
|
-
params,
|
|
489
|
-
options,
|
|
490
|
-
}),
|
|
491
|
-
editMessage: (channelId, messageId, params, options) => fetch({
|
|
492
|
-
method: "PATCH",
|
|
493
|
-
url: `/channels/${channelId}/messages/${messageId}`,
|
|
494
|
-
params,
|
|
495
|
-
options,
|
|
496
|
-
}),
|
|
497
|
-
editOriginalInteractionResponse: (applicationId, interactionToken, options) => fetch({
|
|
498
|
-
method: "PATCH",
|
|
499
|
-
url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
|
|
500
|
-
options,
|
|
501
|
-
}),
|
|
502
|
-
editWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
|
|
503
|
-
method: "PATCH",
|
|
504
|
-
url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
|
|
505
|
-
params,
|
|
506
|
-
options,
|
|
507
|
-
}),
|
|
508
|
-
executeGitHubCompatibleWebhook: (webhookId, webhookToken, options) => fetch({
|
|
509
|
-
method: "POST",
|
|
510
|
-
url: `/webhooks/${webhookId}/${webhookToken}/github`,
|
|
511
|
-
options,
|
|
512
|
-
}),
|
|
513
|
-
executeSlackCompatibleWebhook: (webhookId, webhookToken, options) => fetch({
|
|
514
|
-
method: "POST",
|
|
515
|
-
url: `/webhooks/${webhookId}/${webhookToken}/slack`,
|
|
516
|
-
options,
|
|
517
|
-
}),
|
|
518
|
-
executeWebhook: (webhookId, webhookToken, params, options) => fetch({
|
|
519
|
-
method: "POST",
|
|
520
|
-
url: `/webhooks/${webhookId}/${webhookToken}`,
|
|
521
|
-
params,
|
|
522
|
-
options,
|
|
523
|
-
}),
|
|
524
|
-
followNewsChannel: (channelId, params, options) => fetch({
|
|
525
|
-
method: "POST",
|
|
526
|
-
url: `/channels/${channelId}/followers`,
|
|
527
|
-
params,
|
|
528
|
-
options,
|
|
529
|
-
}),
|
|
530
|
-
getApplicationCommandPermissions: (applicationId, guildId, commandId, options) => fetch({
|
|
531
|
-
method: "GET",
|
|
532
|
-
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
|
|
533
|
-
options,
|
|
534
|
-
}),
|
|
535
|
-
getChannel: (channelId, options) => fetch({
|
|
536
|
-
method: "GET",
|
|
537
|
-
url: `/channels/${channelId}`,
|
|
538
|
-
options,
|
|
539
|
-
}),
|
|
540
|
-
getChannelInvites: (channelId, options) => fetch({
|
|
541
|
-
method: "GET",
|
|
542
|
-
url: `/channels/${channelId}/invites`,
|
|
543
|
-
options,
|
|
544
|
-
}),
|
|
545
|
-
getChannelMessage: (channelId, messageId, options) => fetch({
|
|
546
|
-
method: "GET",
|
|
547
|
-
url: `/channels/${channelId}/messages/${messageId}`,
|
|
548
|
-
options,
|
|
549
|
-
}),
|
|
550
|
-
getChannelMessages: (channelId, params, options) => fetch({
|
|
551
|
-
method: "GET",
|
|
552
|
-
url: `/channels/${channelId}/messages`,
|
|
553
|
-
params,
|
|
554
|
-
options,
|
|
555
|
-
}),
|
|
556
|
-
getChannelWebhooks: (channelId, options) => fetch({
|
|
557
|
-
method: "GET",
|
|
558
|
-
url: `/channels/${channelId}/webhooks`,
|
|
559
|
-
options,
|
|
560
|
-
}),
|
|
561
|
-
getCurrentUser: (options) => fetch({
|
|
562
|
-
method: "GET",
|
|
563
|
-
url: `/users/@me`,
|
|
564
|
-
options,
|
|
565
|
-
}),
|
|
566
|
-
getCurrentUserGuildMember: (guildId, options) => fetch({
|
|
567
|
-
method: "GET",
|
|
568
|
-
url: `/users/@me/guilds/${guildId}/member`,
|
|
569
|
-
options,
|
|
570
|
-
}),
|
|
571
|
-
getCurrentUserGuilds: (params, options) => fetch({
|
|
572
|
-
method: "GET",
|
|
573
|
-
url: `/users/@me/guilds`,
|
|
574
|
-
params,
|
|
575
|
-
options,
|
|
576
|
-
}),
|
|
577
|
-
getFollowupMessage: (applicationId, interactionToken, messageId, options) => fetch({
|
|
578
|
-
method: "GET",
|
|
579
|
-
url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
|
|
580
|
-
options,
|
|
581
|
-
}),
|
|
582
|
-
getGateway: (options) => fetch({
|
|
583
|
-
method: "GET",
|
|
584
|
-
url: `/gateway`,
|
|
585
|
-
options,
|
|
586
|
-
}),
|
|
587
|
-
getGatewayBot: (options) => fetch({
|
|
588
|
-
method: "GET",
|
|
589
|
-
url: `/gateway/bot`,
|
|
590
|
-
options,
|
|
591
|
-
}),
|
|
592
|
-
getGlobalApplicationCommand: (applicationId, commandId, options) => fetch({
|
|
593
|
-
method: "GET",
|
|
594
|
-
url: `/applications/${applicationId}/commands/${commandId}`,
|
|
595
|
-
options,
|
|
596
|
-
}),
|
|
597
|
-
getGlobalApplicationCommands: (applicationId, options) => fetch({
|
|
598
|
-
method: "GET",
|
|
599
|
-
url: `/applications/${applicationId}/commands`,
|
|
600
|
-
options,
|
|
601
|
-
}),
|
|
602
|
-
getGuild: (guildId, params, options) => fetch({
|
|
603
|
-
method: "GET",
|
|
604
|
-
url: `/guilds/${guildId}`,
|
|
605
|
-
params,
|
|
606
|
-
options,
|
|
607
|
-
}),
|
|
608
|
-
getGuildApplicationCommand: (applicationId, guildId, commandId, options) => fetch({
|
|
609
|
-
method: "GET",
|
|
610
|
-
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
|
|
611
|
-
options,
|
|
612
|
-
}),
|
|
613
|
-
getGuildApplicationCommandPermissions: (applicationId, guildId, options) => fetch({
|
|
614
|
-
method: "GET",
|
|
615
|
-
url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
|
|
616
|
-
options,
|
|
617
|
-
}),
|
|
618
|
-
getGuildApplicationCommands: (applicationId, guildId, options) => fetch({
|
|
619
|
-
method: "GET",
|
|
620
|
-
url: `/applications/${applicationId}/guilds/${guildId}/commands`,
|
|
621
|
-
options,
|
|
622
|
-
}),
|
|
623
|
-
getGuildAuditLog: (guildId, params, options) => fetch({
|
|
624
|
-
method: "GET",
|
|
625
|
-
url: `/guilds/${guildId}/audit-logs`,
|
|
626
|
-
params,
|
|
627
|
-
options,
|
|
628
|
-
}),
|
|
629
|
-
getGuildBan: (guildId, userId, options) => fetch({
|
|
630
|
-
method: "GET",
|
|
631
|
-
url: `/guilds/${guildId}/bans/${userId}`,
|
|
632
|
-
options,
|
|
633
|
-
}),
|
|
634
|
-
getGuildBans: (guildId, options) => fetch({
|
|
635
|
-
method: "GET",
|
|
636
|
-
url: `/guilds/${guildId}/bans`,
|
|
637
|
-
options,
|
|
638
|
-
}),
|
|
639
|
-
getGuildChannels: (guildId, options) => fetch({
|
|
640
|
-
method: "GET",
|
|
641
|
-
url: `/guilds/${guildId}/channels`,
|
|
642
|
-
options,
|
|
643
|
-
}),
|
|
644
|
-
getGuildEmoji: (guildId, emojiId, options) => fetch({
|
|
645
|
-
method: "GET",
|
|
646
|
-
url: `/guilds/${guildId}/emojis/${emojiId}`,
|
|
647
|
-
options,
|
|
648
|
-
}),
|
|
649
|
-
getGuildIntegrations: (guildId, options) => fetch({
|
|
650
|
-
method: "GET",
|
|
651
|
-
url: `/guilds/${guildId}/integrations`,
|
|
652
|
-
options,
|
|
653
|
-
}),
|
|
654
|
-
getGuildInvites: (guildId, options) => fetch({
|
|
655
|
-
method: "GET",
|
|
656
|
-
url: `/guilds/${guildId}/invites`,
|
|
657
|
-
options,
|
|
658
|
-
}),
|
|
659
|
-
getGuildMember: (guildId, userId, options) => fetch({
|
|
660
|
-
method: "GET",
|
|
661
|
-
url: `/guilds/${guildId}/members/${userId}`,
|
|
662
|
-
options,
|
|
663
|
-
}),
|
|
664
|
-
getGuildPreview: (guildId, options) => fetch({
|
|
665
|
-
method: "GET",
|
|
666
|
-
url: `/guilds/${guildId}/preview`,
|
|
667
|
-
options,
|
|
668
|
-
}),
|
|
669
|
-
getGuildPruneCount: (guildId, params, options) => fetch({
|
|
670
|
-
method: "GET",
|
|
671
|
-
url: `/guilds/${guildId}/prune`,
|
|
672
|
-
params,
|
|
673
|
-
options,
|
|
674
|
-
}),
|
|
675
|
-
getGuildRoles: (guildId, options) => fetch({
|
|
676
|
-
method: "GET",
|
|
677
|
-
url: `/guilds/${guildId}/roles`,
|
|
678
|
-
options,
|
|
679
|
-
}),
|
|
680
|
-
getGuildScheduledEvent: (guildId, guildScheduledEventId, params, options) => fetch({
|
|
681
|
-
method: "GET",
|
|
682
|
-
url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
|
|
683
|
-
params,
|
|
684
|
-
options,
|
|
685
|
-
}),
|
|
686
|
-
getGuildScheduledEventUsers: (guildId, guildScheduledEventId, params, options) => fetch({
|
|
687
|
-
method: "GET",
|
|
688
|
-
url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users`,
|
|
689
|
-
params,
|
|
690
|
-
options,
|
|
691
|
-
}),
|
|
692
|
-
getGuildSticker: (guildId, stickerId, options) => fetch({
|
|
693
|
-
method: "GET",
|
|
694
|
-
url: `/guilds/${guildId}/stickers/${stickerId}`,
|
|
695
|
-
options,
|
|
696
|
-
}),
|
|
697
|
-
getGuildTemplate: (templateCode, options) => fetch({
|
|
698
|
-
method: "GET",
|
|
699
|
-
url: `/guilds/templates/${templateCode}`,
|
|
700
|
-
options,
|
|
701
|
-
}),
|
|
702
|
-
getGuildTemplates: (guildId, options) => fetch({
|
|
703
|
-
method: "GET",
|
|
704
|
-
url: `/guilds/${guildId}/templates`,
|
|
705
|
-
options,
|
|
706
|
-
}),
|
|
707
|
-
getGuildVanityUrl: (guildId, options) => fetch({
|
|
708
|
-
method: "GET",
|
|
709
|
-
url: `/guilds/${guildId}/vanity-url`,
|
|
710
|
-
options,
|
|
711
|
-
}),
|
|
712
|
-
getGuildVoiceRegions: (guildId, options) => fetch({
|
|
713
|
-
method: "GET",
|
|
714
|
-
url: `/guilds/${guildId}/regions`,
|
|
715
|
-
options,
|
|
716
|
-
}),
|
|
717
|
-
getGuildWebhooks: (guildId, options) => fetch({
|
|
718
|
-
method: "GET",
|
|
719
|
-
url: `/guilds/${guildId}/webhooks`,
|
|
720
|
-
options,
|
|
721
|
-
}),
|
|
722
|
-
getGuildWelcomeScreen: (guildId, options) => fetch({
|
|
723
|
-
method: "GET",
|
|
724
|
-
url: `/guilds/${guildId}/welcome-screen`,
|
|
725
|
-
options,
|
|
726
|
-
}),
|
|
727
|
-
getGuildWidget: (guildId, options) => fetch({
|
|
728
|
-
method: "GET",
|
|
729
|
-
url: `/guilds/${guildId}/widget.json`,
|
|
730
|
-
options,
|
|
731
|
-
}),
|
|
732
|
-
getGuildWidgetImage: (guildId, params, options) => fetch({
|
|
733
|
-
method: "GET",
|
|
734
|
-
url: `/guilds/${guildId}/widget.png`,
|
|
735
|
-
params,
|
|
736
|
-
options,
|
|
737
|
-
}),
|
|
738
|
-
getGuildWidgetSettings: (guildId, options) => fetch({
|
|
739
|
-
method: "GET",
|
|
740
|
-
url: `/guilds/${guildId}/widget`,
|
|
741
|
-
options,
|
|
742
|
-
}),
|
|
743
|
-
getInvite: (inviteCode, params, options) => fetch({
|
|
744
|
-
method: "GET",
|
|
745
|
-
url: `/invites/${inviteCode}`,
|
|
746
|
-
params,
|
|
747
|
-
options,
|
|
748
|
-
}),
|
|
749
|
-
getOriginalInteractionResponse: (applicationId, interactionToken, options) => fetch({
|
|
750
|
-
method: "GET",
|
|
751
|
-
url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
|
|
752
|
-
options,
|
|
753
|
-
}),
|
|
754
|
-
getPinnedMessages: (channelId, options) => fetch({
|
|
755
|
-
method: "GET",
|
|
756
|
-
url: `/channels/${channelId}/pins`,
|
|
757
|
-
options,
|
|
758
|
-
}),
|
|
759
|
-
getReactions: (channelId, messageId, emoji, params, options) => fetch({
|
|
760
|
-
method: "GET",
|
|
761
|
-
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}`,
|
|
762
|
-
params,
|
|
763
|
-
options,
|
|
764
|
-
}),
|
|
765
|
-
getStageInstance: (channelId, options) => fetch({
|
|
766
|
-
method: "GET",
|
|
767
|
-
url: `/stage-instances/${channelId}`,
|
|
768
|
-
options,
|
|
769
|
-
}),
|
|
770
|
-
getSticker: (stickerId, options) => fetch({
|
|
771
|
-
method: "GET",
|
|
772
|
-
url: `/stickers/${stickerId}`,
|
|
773
|
-
options,
|
|
774
|
-
}),
|
|
775
|
-
getThreadMember: (channelId, userId, options) => fetch({
|
|
776
|
-
method: "GET",
|
|
777
|
-
url: `/channels/${channelId}/thread-members/${userId}`,
|
|
778
|
-
options,
|
|
779
|
-
}),
|
|
780
|
-
getUser: (userId, options) => fetch({
|
|
781
|
-
method: "GET",
|
|
782
|
-
url: `/users/${userId}`,
|
|
783
|
-
options,
|
|
784
|
-
}),
|
|
785
|
-
getUserConnections: (options) => fetch({
|
|
786
|
-
method: "GET",
|
|
787
|
-
url: `/users/@me/connections`,
|
|
788
|
-
options,
|
|
789
|
-
}),
|
|
790
|
-
getWebhook: (webhookId, options) => fetch({
|
|
791
|
-
method: "GET",
|
|
792
|
-
url: `/webhooks/${webhookId}`,
|
|
793
|
-
options,
|
|
794
|
-
}),
|
|
795
|
-
getWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
|
|
796
|
-
method: "GET",
|
|
797
|
-
url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
|
|
798
|
-
params,
|
|
799
|
-
options,
|
|
800
|
-
}),
|
|
801
|
-
getWebhookWithToken: (webhookId, webhookToken, options) => fetch({
|
|
802
|
-
method: "GET",
|
|
803
|
-
url: `/webhooks/${webhookId}/${webhookToken}`,
|
|
804
|
-
options,
|
|
805
|
-
}),
|
|
806
|
-
groupDmAddRecipient: (channelId, userId, params, options) => fetch({
|
|
807
|
-
method: "PUT",
|
|
808
|
-
url: `/channels/${channelId}/recipients/${userId}`,
|
|
809
|
-
params,
|
|
810
|
-
options,
|
|
811
|
-
}),
|
|
812
|
-
groupDmRemoveRecipient: (channelId, userId, options) => fetch({
|
|
813
|
-
method: "DELETE",
|
|
814
|
-
url: `/channels/${channelId}/recipients/${userId}`,
|
|
815
|
-
options,
|
|
816
|
-
}),
|
|
817
|
-
joinThread: (channelId, options) => fetch({
|
|
818
|
-
method: "PUT",
|
|
819
|
-
url: `/channels/${channelId}/thread-members/@me`,
|
|
820
|
-
options,
|
|
821
|
-
}),
|
|
822
|
-
leaveGuild: (guildId, options) => fetch({
|
|
823
|
-
method: "DELETE",
|
|
824
|
-
url: `/users/@me/guilds/${guildId}`,
|
|
825
|
-
options,
|
|
826
|
-
}),
|
|
827
|
-
leaveThread: (channelId, options) => fetch({
|
|
828
|
-
method: "DELETE",
|
|
829
|
-
url: `/channels/${channelId}/thread-members/@me`,
|
|
830
|
-
options,
|
|
831
|
-
}),
|
|
832
|
-
listActiveThreads: (channelId, options) => fetch({
|
|
833
|
-
method: "GET",
|
|
834
|
-
url: `/channels/${channelId}/threads/active`,
|
|
835
|
-
options,
|
|
836
|
-
}),
|
|
837
|
-
listGuildActiveThreads: (guildId, options) => fetch({
|
|
838
|
-
method: "GET",
|
|
839
|
-
url: `/guilds/${guildId}/threads/active`,
|
|
840
|
-
options,
|
|
841
|
-
}),
|
|
842
|
-
listGuildEmojis: (guildId, options) => fetch({
|
|
843
|
-
method: "GET",
|
|
844
|
-
url: `/guilds/${guildId}/emojis`,
|
|
845
|
-
options,
|
|
846
|
-
}),
|
|
847
|
-
listGuildMembers: (guildId, params, options) => fetch({
|
|
848
|
-
method: "GET",
|
|
849
|
-
url: `/guilds/${guildId}/members`,
|
|
850
|
-
params,
|
|
851
|
-
options,
|
|
852
|
-
}),
|
|
853
|
-
listGuildStickers: (guildId, options) => fetch({
|
|
854
|
-
method: "GET",
|
|
855
|
-
url: `/guilds/${guildId}/stickers`,
|
|
856
|
-
options,
|
|
857
|
-
}),
|
|
858
|
-
listJoinedPrivateArchivedThreads: (channelId, params, options) => fetch({
|
|
859
|
-
method: "GET",
|
|
860
|
-
url: `/channels/${channelId}/users/@me/threads/archived/private`,
|
|
861
|
-
params,
|
|
862
|
-
options,
|
|
863
|
-
}),
|
|
864
|
-
listNitroStickerPacks: (options) => fetch({
|
|
865
|
-
method: "GET",
|
|
866
|
-
url: `/sticker-packs`,
|
|
867
|
-
options,
|
|
868
|
-
}),
|
|
869
|
-
listPrivateArchivedThreads: (channelId, params, options) => fetch({
|
|
870
|
-
method: "GET",
|
|
871
|
-
url: `/channels/${channelId}/threads/archived/private`,
|
|
872
|
-
params,
|
|
873
|
-
options,
|
|
874
|
-
}),
|
|
875
|
-
listPublicArchivedThreads: (channelId, params, options) => fetch({
|
|
876
|
-
method: "GET",
|
|
877
|
-
url: `/channels/${channelId}/threads/archived/public`,
|
|
878
|
-
params,
|
|
879
|
-
options,
|
|
880
|
-
}),
|
|
881
|
-
listScheduledEventsForGuild: (guildId, params, options) => fetch({
|
|
882
|
-
method: "GET",
|
|
883
|
-
url: `/guilds/${guildId}/scheduled-events`,
|
|
884
|
-
params,
|
|
885
|
-
options,
|
|
886
|
-
}),
|
|
887
|
-
listThreadMembers: (channelId, options) => fetch({
|
|
888
|
-
method: "GET",
|
|
889
|
-
url: `/channels/${channelId}/thread-members`,
|
|
890
|
-
options,
|
|
891
|
-
}),
|
|
892
|
-
listVoiceRegions: (options) => fetch({
|
|
893
|
-
method: "GET",
|
|
894
|
-
url: `/voice/regions`,
|
|
895
|
-
options,
|
|
896
|
-
}),
|
|
897
|
-
modifyChannel: (channelId, params, options) => fetch({
|
|
898
|
-
method: "PATCH",
|
|
899
|
-
url: `/channels/${channelId}`,
|
|
900
|
-
params,
|
|
901
|
-
options,
|
|
902
|
-
}),
|
|
903
|
-
modifyCurrentMember: (guildId, params, options) => fetch({
|
|
904
|
-
method: "PATCH",
|
|
905
|
-
url: `/guilds/${guildId}/members/@me`,
|
|
906
|
-
params,
|
|
907
|
-
options,
|
|
908
|
-
}),
|
|
909
|
-
modifyCurrentUser: (params, options) => fetch({
|
|
910
|
-
method: "PATCH",
|
|
911
|
-
url: `/users/@me`,
|
|
912
|
-
params,
|
|
913
|
-
options,
|
|
914
|
-
}),
|
|
915
|
-
modifyCurrentUserNick: (guildId, params, options) => fetch({
|
|
916
|
-
method: "PATCH",
|
|
917
|
-
url: `/guilds/${guildId}/members/@me/nick`,
|
|
918
|
-
params,
|
|
919
|
-
options,
|
|
920
|
-
}),
|
|
921
|
-
modifyCurrentUserVoiceState: (guildId, params, options) => fetch({
|
|
922
|
-
method: "PATCH",
|
|
923
|
-
url: `/guilds/${guildId}/voice-states/@me`,
|
|
924
|
-
params,
|
|
925
|
-
options,
|
|
926
|
-
}),
|
|
927
|
-
modifyGuild: (guildId, params, options) => fetch({
|
|
928
|
-
method: "PATCH",
|
|
929
|
-
url: `/guilds/${guildId}`,
|
|
930
|
-
params,
|
|
931
|
-
options,
|
|
932
|
-
}),
|
|
933
|
-
modifyGuildChannelPositions: (guildId, params, options) => fetch({
|
|
934
|
-
method: "PATCH",
|
|
935
|
-
url: `/guilds/${guildId}/channels`,
|
|
936
|
-
params,
|
|
937
|
-
options,
|
|
938
|
-
}),
|
|
939
|
-
modifyGuildEmoji: (guildId, emojiId, params, options) => fetch({
|
|
940
|
-
method: "PATCH",
|
|
941
|
-
url: `/guilds/${guildId}/emojis/${emojiId}`,
|
|
942
|
-
params,
|
|
943
|
-
options,
|
|
944
|
-
}),
|
|
945
|
-
modifyGuildMember: (guildId, userId, params, options) => fetch({
|
|
946
|
-
method: "PATCH",
|
|
947
|
-
url: `/guilds/${guildId}/members/${userId}`,
|
|
948
|
-
params,
|
|
949
|
-
options,
|
|
950
|
-
}),
|
|
951
|
-
modifyGuildRole: (guildId, roleId, params, options) => fetch({
|
|
952
|
-
method: "PATCH",
|
|
953
|
-
url: `/guilds/${guildId}/roles/${roleId}`,
|
|
954
|
-
params,
|
|
955
|
-
options,
|
|
956
|
-
}),
|
|
957
|
-
modifyGuildRolePositions: (guildId, params, options) => fetch({
|
|
958
|
-
method: "PATCH",
|
|
959
|
-
url: `/guilds/${guildId}/roles`,
|
|
960
|
-
params,
|
|
961
|
-
options,
|
|
962
|
-
}),
|
|
963
|
-
modifyGuildScheduledEvent: (guildId, guildScheduledEventId, params, options) => fetch({
|
|
964
|
-
method: "PATCH",
|
|
965
|
-
url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
|
|
966
|
-
params,
|
|
967
|
-
options,
|
|
968
|
-
}),
|
|
969
|
-
modifyGuildSticker: (guildId, stickerId, params, options) => fetch({
|
|
970
|
-
method: "PATCH",
|
|
971
|
-
url: `/guilds/${guildId}/stickers/${stickerId}`,
|
|
972
|
-
params,
|
|
973
|
-
options,
|
|
974
|
-
}),
|
|
975
|
-
modifyGuildTemplate: (guildId, templateCode, params, options) => fetch({
|
|
976
|
-
method: "PATCH",
|
|
977
|
-
url: `/guilds/${guildId}/templates/${templateCode}`,
|
|
978
|
-
params,
|
|
979
|
-
options,
|
|
980
|
-
}),
|
|
981
|
-
modifyGuildWelcomeScreen: (guildId, params, options) => fetch({
|
|
982
|
-
method: "PATCH",
|
|
983
|
-
url: `/guilds/${guildId}/welcome-screen`,
|
|
984
|
-
params,
|
|
985
|
-
options,
|
|
986
|
-
}),
|
|
987
|
-
modifyGuildWidget: (guildId, options) => fetch({
|
|
988
|
-
method: "PATCH",
|
|
989
|
-
url: `/guilds/${guildId}/widget`,
|
|
990
|
-
options,
|
|
991
|
-
}),
|
|
992
|
-
modifyStageInstance: (channelId, params, options) => fetch({
|
|
993
|
-
method: "PATCH",
|
|
994
|
-
url: `/stage-instances/${channelId}`,
|
|
995
|
-
params,
|
|
996
|
-
options,
|
|
997
|
-
}),
|
|
998
|
-
modifyUserVoiceState: (guildId, userId, params, options) => fetch({
|
|
999
|
-
method: "PATCH",
|
|
1000
|
-
url: `/guilds/${guildId}/voice-states/${userId}`,
|
|
1001
|
-
params,
|
|
1002
|
-
options,
|
|
1003
|
-
}),
|
|
1004
|
-
modifyWebhook: (webhookId, params, options) => fetch({
|
|
1005
|
-
method: "PATCH",
|
|
1006
|
-
url: `/webhooks/${webhookId}`,
|
|
1007
|
-
params,
|
|
1008
|
-
options,
|
|
1009
|
-
}),
|
|
1010
|
-
modifyWebhookWithToken: (webhookId, webhookToken, options) => fetch({
|
|
1011
|
-
method: "PATCH",
|
|
1012
|
-
url: `/webhooks/${webhookId}/${webhookToken}`,
|
|
1013
|
-
options,
|
|
1014
|
-
}),
|
|
1015
|
-
pinMessage: (channelId, messageId, options) => fetch({
|
|
1016
|
-
method: "PUT",
|
|
1017
|
-
url: `/channels/${channelId}/pins/${messageId}`,
|
|
1018
|
-
options,
|
|
1019
|
-
}),
|
|
1020
|
-
removeGuildBan: (guildId, userId, options) => fetch({
|
|
1021
|
-
method: "DELETE",
|
|
1022
|
-
url: `/guilds/${guildId}/bans/${userId}`,
|
|
1023
|
-
options,
|
|
1024
|
-
}),
|
|
1025
|
-
removeGuildMember: (guildId, userId, options) => fetch({
|
|
1026
|
-
method: "DELETE",
|
|
1027
|
-
url: `/guilds/${guildId}/members/${userId}`,
|
|
1028
|
-
options,
|
|
1029
|
-
}),
|
|
1030
|
-
removeGuildMemberRole: (guildId, userId, roleId, options) => fetch({
|
|
1031
|
-
method: "DELETE",
|
|
1032
|
-
url: `/guilds/${guildId}/members/${userId}/roles/${roleId}`,
|
|
1033
|
-
options,
|
|
1034
|
-
}),
|
|
1035
|
-
removeThreadMember: (channelId, userId, options) => fetch({
|
|
1036
|
-
method: "DELETE",
|
|
1037
|
-
url: `/channels/${channelId}/thread-members/${userId}`,
|
|
1038
|
-
options,
|
|
1039
|
-
}),
|
|
1040
|
-
searchGuildMembers: (guildId, params, options) => fetch({
|
|
1041
|
-
method: "GET",
|
|
1042
|
-
url: `/guilds/${guildId}/members/search`,
|
|
1043
|
-
params,
|
|
1044
|
-
options,
|
|
1045
|
-
}),
|
|
1046
|
-
startThreadWithMessage: (channelId, messageId, params, options) => fetch({
|
|
1047
|
-
method: "POST",
|
|
1048
|
-
url: `/channels/${channelId}/messages/${messageId}/threads`,
|
|
1049
|
-
params,
|
|
1050
|
-
options,
|
|
1051
|
-
}),
|
|
1052
|
-
startThreadWithoutMessage: (channelId, params, options) => fetch({
|
|
1053
|
-
method: "POST",
|
|
1054
|
-
url: `/channels/${channelId}/threads`,
|
|
1055
|
-
params,
|
|
1056
|
-
options,
|
|
1057
|
-
}),
|
|
1058
|
-
syncGuildTemplate: (guildId, templateCode, options) => fetch({
|
|
1059
|
-
method: "PUT",
|
|
1060
|
-
url: `/guilds/${guildId}/templates/${templateCode}`,
|
|
1061
|
-
options,
|
|
1062
|
-
}),
|
|
1063
|
-
triggerTypingIndicator: (channelId, options) => fetch({
|
|
1064
|
-
method: "POST",
|
|
1065
|
-
url: `/channels/${channelId}/typing`,
|
|
1066
|
-
options,
|
|
1067
|
-
}),
|
|
1068
|
-
unpinMessage: (channelId, messageId, options) => fetch({
|
|
1069
|
-
method: "DELETE",
|
|
1070
|
-
url: `/channels/${channelId}/pins/${messageId}`,
|
|
1071
|
-
options,
|
|
1072
|
-
}),
|
|
1073
|
-
};
|
|
1074
|
-
}
|
|
1075
|
-
exports.createRoutes = createRoutes;
|
|
1076
|
-
var DefaultMessageNotificationLevel;
|
|
1077
|
-
(function (DefaultMessageNotificationLevel) {
|
|
1078
|
-
/** members will receive notifications for all messages by default */
|
|
1079
|
-
DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["ALL_MESSAGES"] = 0] = "ALL_MESSAGES";
|
|
1080
|
-
/** members will receive notifications only for messages that @mention them by default */
|
|
1081
|
-
DefaultMessageNotificationLevel[DefaultMessageNotificationLevel["ONLY_MENTIONS"] = 1] = "ONLY_MENTIONS";
|
|
1082
|
-
})(DefaultMessageNotificationLevel = exports.DefaultMessageNotificationLevel || (exports.DefaultMessageNotificationLevel = {}));
|
|
1083
|
-
var EmbedType;
|
|
1084
|
-
(function (EmbedType) {
|
|
1085
|
-
/** generic embed rendered from embed attributes */
|
|
1086
|
-
EmbedType["RICH"] = "rich";
|
|
1087
|
-
/** image embed */
|
|
1088
|
-
EmbedType["IMAGE"] = "image";
|
|
1089
|
-
/** video embed */
|
|
1090
|
-
EmbedType["VIDEO"] = "video";
|
|
1091
|
-
/** animated gif image embed rendered as a video embed */
|
|
1092
|
-
EmbedType["GIFV"] = "gifv";
|
|
1093
|
-
/** article embed */
|
|
1094
|
-
EmbedType["ARTICLE"] = "article";
|
|
1095
|
-
/** link embed */
|
|
1096
|
-
EmbedType["LINK"] = "link";
|
|
1097
|
-
})(EmbedType = exports.EmbedType || (exports.EmbedType = {}));
|
|
1098
|
-
var ExplicitContentFilterLevel;
|
|
1099
|
-
(function (ExplicitContentFilterLevel) {
|
|
1100
|
-
/** media content will not be scanned */
|
|
1101
|
-
ExplicitContentFilterLevel[ExplicitContentFilterLevel["DISABLED"] = 0] = "DISABLED";
|
|
1102
|
-
/** media content sent by members without roles will be scanned */
|
|
1103
|
-
ExplicitContentFilterLevel[ExplicitContentFilterLevel["MEMBERS_WITHOUT_ROLES"] = 1] = "MEMBERS_WITHOUT_ROLES";
|
|
1104
|
-
/** media content sent by all members will be scanned */
|
|
1105
|
-
ExplicitContentFilterLevel[ExplicitContentFilterLevel["ALL_MEMBERS"] = 2] = "ALL_MEMBERS";
|
|
1106
|
-
})(ExplicitContentFilterLevel = exports.ExplicitContentFilterLevel || (exports.ExplicitContentFilterLevel = {}));
|
|
1107
|
-
exports.GatewayIntents = {
|
|
1108
|
-
GUILDS: 1 << 0,
|
|
1109
|
-
GUILD_MEMBERS: 1 << 1,
|
|
1110
|
-
GUILD_BANS: 1 << 2,
|
|
1111
|
-
GUILD_EMOJIS_AND_STICKERS: 1 << 3,
|
|
1112
|
-
GUILD_INTEGRATIONS: 1 << 4,
|
|
1113
|
-
GUILD_WEBHOOKS: 1 << 5,
|
|
1114
|
-
GUILD_INVITES: 1 << 6,
|
|
1115
|
-
GUILD_VOICE_STATES: 1 << 7,
|
|
1116
|
-
GUILD_PRESENCES: 1 << 8,
|
|
1117
|
-
GUILD_MESSAGES: 1 << 9,
|
|
1118
|
-
GUILD_MESSAGE_REACTIONS: 1 << 10,
|
|
1119
|
-
GUILD_MESSAGE_TYPING: 1 << 11,
|
|
1120
|
-
DIRECT_MESSAGES: 1 << 12,
|
|
1121
|
-
DIRECT_MESSAGE_REACTIONS: 1 << 13,
|
|
1122
|
-
DIRECT_MESSAGE_TYPING: 1 << 14,
|
|
1123
|
-
GUILD_SCHEDULED_EVENTS: 1 << 16,
|
|
1124
|
-
};
|
|
1125
|
-
var GatewayOpcode;
|
|
1126
|
-
(function (GatewayOpcode) {
|
|
1127
|
-
/** An event was dispatched. */
|
|
1128
|
-
GatewayOpcode[GatewayOpcode["DISPATCH"] = 0] = "DISPATCH";
|
|
1129
|
-
/** Fired periodically by the client to keep the connection alive. */
|
|
1130
|
-
GatewayOpcode[GatewayOpcode["HEARTBEAT"] = 1] = "HEARTBEAT";
|
|
1131
|
-
/** Starts a new session during the initial handshake. */
|
|
1132
|
-
GatewayOpcode[GatewayOpcode["IDENTIFY"] = 2] = "IDENTIFY";
|
|
1133
|
-
/** Update the client's presence. */
|
|
1134
|
-
GatewayOpcode[GatewayOpcode["PRESENCE_UPDATE"] = 3] = "PRESENCE_UPDATE";
|
|
1135
|
-
/** Used to join/leave or move between voice channels. */
|
|
1136
|
-
GatewayOpcode[GatewayOpcode["VOICE_STATE_UPDATE"] = 4] = "VOICE_STATE_UPDATE";
|
|
1137
|
-
/** Resume a previous session that was disconnected. */
|
|
1138
|
-
GatewayOpcode[GatewayOpcode["RESUME"] = 6] = "RESUME";
|
|
1139
|
-
/** You should attempt to reconnect and resume immediately. */
|
|
1140
|
-
GatewayOpcode[GatewayOpcode["RECONNECT"] = 7] = "RECONNECT";
|
|
1141
|
-
/** Request information about offline guild members in a large guild. */
|
|
1142
|
-
GatewayOpcode[GatewayOpcode["REQUEST_GUILD_MEMBERS"] = 8] = "REQUEST_GUILD_MEMBERS";
|
|
1143
|
-
/** The session has been invalidated. You should reconnect and identify/resume accordingly. */
|
|
1144
|
-
GatewayOpcode[GatewayOpcode["INVALID_SESSION"] = 9] = "INVALID_SESSION";
|
|
1145
|
-
/** Sent immediately after connecting, contains the heartbeat_interval to use. */
|
|
1146
|
-
GatewayOpcode[GatewayOpcode["HELLO"] = 10] = "HELLO";
|
|
1147
|
-
/** Sent in response to receiving a heartbeat to acknowledge that it has been received. */
|
|
1148
|
-
GatewayOpcode[GatewayOpcode["HEARTBEAT_ACK"] = 11] = "HEARTBEAT_ACK";
|
|
1149
|
-
})(GatewayOpcode = exports.GatewayOpcode || (exports.GatewayOpcode = {}));
|
|
1150
|
-
var GuildFeature;
|
|
1151
|
-
(function (GuildFeature) {
|
|
1152
|
-
/** guild has access to set an animated guild icon */
|
|
1153
|
-
GuildFeature["ANIMATED_ICON"] = "ANIMATED_ICON";
|
|
1154
|
-
/** guild has access to set a guild banner image */
|
|
1155
|
-
GuildFeature["BANNER"] = "BANNER";
|
|
1156
|
-
/** guild has access to use commerce features (i.e. create store channels) */
|
|
1157
|
-
GuildFeature["COMMERCE"] = "COMMERCE";
|
|
1158
|
-
/** guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates */
|
|
1159
|
-
GuildFeature["COMMUNITY"] = "COMMUNITY";
|
|
1160
|
-
/** guild is able to be discovered in the directory */
|
|
1161
|
-
GuildFeature["DISCOVERABLE"] = "DISCOVERABLE";
|
|
1162
|
-
/** guild is able to be featured in the directory */
|
|
1163
|
-
GuildFeature["FEATURABLE"] = "FEATURABLE";
|
|
1164
|
-
/** guild has access to set an invite splash background */
|
|
1165
|
-
GuildFeature["INVITE_SPLASH"] = "INVITE_SPLASH";
|
|
1166
|
-
/** guild has enabled Membership Screening */
|
|
1167
|
-
GuildFeature["MEMBER_VERIFICATION_GATE_ENABLED"] = "MEMBER_VERIFICATION_GATE_ENABLED";
|
|
1168
|
-
/** guild has enabled monetization */
|
|
1169
|
-
GuildFeature["MONETIZATION_ENABLED"] = "MONETIZATION_ENABLED";
|
|
1170
|
-
/** guild has increased custom sticker slots */
|
|
1171
|
-
GuildFeature["MORE_STICKERS"] = "MORE_STICKERS";
|
|
1172
|
-
/** guild has access to create news channels */
|
|
1173
|
-
GuildFeature["NEWS"] = "NEWS";
|
|
1174
|
-
/** guild is partnered */
|
|
1175
|
-
GuildFeature["PARTNERED"] = "PARTNERED";
|
|
1176
|
-
/** guild can be previewed before joining via Membership Screening or the directory */
|
|
1177
|
-
GuildFeature["PREVIEW_ENABLED"] = "PREVIEW_ENABLED";
|
|
1178
|
-
/** guild has access to create private threads */
|
|
1179
|
-
GuildFeature["PRIVATE_THREADS"] = "PRIVATE_THREADS";
|
|
1180
|
-
/** guild is able to set role icons */
|
|
1181
|
-
GuildFeature["ROLE_ICONS"] = "ROLE_ICONS";
|
|
1182
|
-
/** guild has access to the seven day archive time for threads */
|
|
1183
|
-
GuildFeature["SEVEN_DAY_THREAD_ARCHIVE"] = "SEVEN_DAY_THREAD_ARCHIVE";
|
|
1184
|
-
/** guild has access to the three day archive time for threads */
|
|
1185
|
-
GuildFeature["THREE_DAY_THREAD_ARCHIVE"] = "THREE_DAY_THREAD_ARCHIVE";
|
|
1186
|
-
/** guild has enabled ticketed events */
|
|
1187
|
-
GuildFeature["TICKETED_EVENTS_ENABLED"] = "TICKETED_EVENTS_ENABLED";
|
|
1188
|
-
/** guild has access to set a vanity URL */
|
|
1189
|
-
GuildFeature["VANITY_URL"] = "VANITY_URL";
|
|
1190
|
-
/** guild is verified */
|
|
1191
|
-
GuildFeature["VERIFIED"] = "VERIFIED";
|
|
1192
|
-
/** guild has access to set 384kbps bitrate in voice (previously VIP voice servers) */
|
|
1193
|
-
GuildFeature["VIP_REGIONS"] = "VIP_REGIONS";
|
|
1194
|
-
/** guild has enabled the welcome screen */
|
|
1195
|
-
GuildFeature["WELCOME_SCREEN_ENABLED"] = "WELCOME_SCREEN_ENABLED";
|
|
1196
|
-
})(GuildFeature = exports.GuildFeature || (exports.GuildFeature = {}));
|
|
1197
|
-
var GuildNsfwLevel;
|
|
1198
|
-
(function (GuildNsfwLevel) {
|
|
1199
|
-
GuildNsfwLevel[GuildNsfwLevel["DEFAULT"] = 0] = "DEFAULT";
|
|
1200
|
-
GuildNsfwLevel[GuildNsfwLevel["EXPLICIT"] = 1] = "EXPLICIT";
|
|
1201
|
-
GuildNsfwLevel[GuildNsfwLevel["SAFE"] = 2] = "SAFE";
|
|
1202
|
-
GuildNsfwLevel[GuildNsfwLevel["AGE_RESTRICTED"] = 3] = "AGE_RESTRICTED";
|
|
1203
|
-
})(GuildNsfwLevel = exports.GuildNsfwLevel || (exports.GuildNsfwLevel = {}));
|
|
1204
|
-
var GuildScheduledEventEntityType;
|
|
1205
|
-
(function (GuildScheduledEventEntityType) {
|
|
1206
|
-
GuildScheduledEventEntityType[GuildScheduledEventEntityType["STAGE_INSTANCE"] = 1] = "STAGE_INSTANCE";
|
|
1207
|
-
GuildScheduledEventEntityType[GuildScheduledEventEntityType["VOICE"] = 2] = "VOICE";
|
|
1208
|
-
GuildScheduledEventEntityType[GuildScheduledEventEntityType["EXTERNAL"] = 3] = "EXTERNAL";
|
|
1209
|
-
})(GuildScheduledEventEntityType = exports.GuildScheduledEventEntityType || (exports.GuildScheduledEventEntityType = {}));
|
|
1210
|
-
var GuildScheduledEventPrivacyLevel;
|
|
1211
|
-
(function (GuildScheduledEventPrivacyLevel) {
|
|
1212
|
-
/** the scheduled event is only accessible to guild members */
|
|
1213
|
-
GuildScheduledEventPrivacyLevel[GuildScheduledEventPrivacyLevel["GUILD_ONLY"] = 2] = "GUILD_ONLY";
|
|
1214
|
-
})(GuildScheduledEventPrivacyLevel = exports.GuildScheduledEventPrivacyLevel || (exports.GuildScheduledEventPrivacyLevel = {}));
|
|
1215
|
-
var GuildScheduledEventStatus;
|
|
1216
|
-
(function (GuildScheduledEventStatus) {
|
|
1217
|
-
GuildScheduledEventStatus[GuildScheduledEventStatus["SCHEDULED"] = 1] = "SCHEDULED";
|
|
1218
|
-
GuildScheduledEventStatus[GuildScheduledEventStatus["ACTIVE"] = 2] = "ACTIVE";
|
|
1219
|
-
GuildScheduledEventStatus[GuildScheduledEventStatus["COMPLETED"] = 3] = "COMPLETED";
|
|
1220
|
-
GuildScheduledEventStatus[GuildScheduledEventStatus["CANCELED"] = 4] = "CANCELED";
|
|
1221
|
-
})(GuildScheduledEventStatus = exports.GuildScheduledEventStatus || (exports.GuildScheduledEventStatus = {}));
|
|
1222
|
-
var IntegrationExpireBehavior;
|
|
1223
|
-
(function (IntegrationExpireBehavior) {
|
|
1224
|
-
IntegrationExpireBehavior[IntegrationExpireBehavior["REMOVE_ROLE"] = 0] = "REMOVE_ROLE";
|
|
1225
|
-
IntegrationExpireBehavior[IntegrationExpireBehavior["KICK"] = 1] = "KICK";
|
|
1226
|
-
})(IntegrationExpireBehavior = exports.IntegrationExpireBehavior || (exports.IntegrationExpireBehavior = {}));
|
|
1227
|
-
var InteractionCallbackType;
|
|
1228
|
-
(function (InteractionCallbackType) {
|
|
1229
|
-
/** ACK a Ping */
|
|
1230
|
-
InteractionCallbackType[InteractionCallbackType["PONG"] = 1] = "PONG";
|
|
1231
|
-
/** respond to an interaction with a message */
|
|
1232
|
-
InteractionCallbackType[InteractionCallbackType["CHANNEL_MESSAGE_WITH_SOURCE"] = 4] = "CHANNEL_MESSAGE_WITH_SOURCE";
|
|
1233
|
-
/** ACK an interaction and edit a response later, the user sees a loading state */
|
|
1234
|
-
InteractionCallbackType[InteractionCallbackType["DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE"] = 5] = "DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE";
|
|
1235
|
-
/** for components, ACK an interaction and edit the original message later; the user does not see a loading state */
|
|
1236
|
-
InteractionCallbackType[InteractionCallbackType["DEFERRED_UPDATE_MESSAGE"] = 6] = "DEFERRED_UPDATE_MESSAGE";
|
|
1237
|
-
/** for components, edit the message the component was attached to */
|
|
1238
|
-
InteractionCallbackType[InteractionCallbackType["UPDATE_MESSAGE"] = 7] = "UPDATE_MESSAGE";
|
|
1239
|
-
/** respond to an autocomplete interaction with suggested choices */
|
|
1240
|
-
InteractionCallbackType[InteractionCallbackType["APPLICATION_COMMAND_AUTOCOMPLETE_RESULT"] = 8] = "APPLICATION_COMMAND_AUTOCOMPLETE_RESULT";
|
|
1241
|
-
/** respond to an interaction with a popup modal */
|
|
1242
|
-
InteractionCallbackType[InteractionCallbackType["MODAL"] = 9] = "MODAL";
|
|
1243
|
-
})(InteractionCallbackType = exports.InteractionCallbackType || (exports.InteractionCallbackType = {}));
|
|
1244
|
-
var InteractionType;
|
|
1245
|
-
(function (InteractionType) {
|
|
1246
|
-
InteractionType[InteractionType["PING"] = 1] = "PING";
|
|
1247
|
-
InteractionType[InteractionType["APPLICATION_COMMAND"] = 2] = "APPLICATION_COMMAND";
|
|
1248
|
-
InteractionType[InteractionType["MESSAGE_COMPONENT"] = 3] = "MESSAGE_COMPONENT";
|
|
1249
|
-
InteractionType[InteractionType["APPLICATION_COMMAND_AUTOCOMPLETE"] = 4] = "APPLICATION_COMMAND_AUTOCOMPLETE";
|
|
1250
|
-
InteractionType[InteractionType["MODAL_SUBMIT"] = 5] = "MODAL_SUBMIT";
|
|
1251
|
-
})(InteractionType = exports.InteractionType || (exports.InteractionType = {}));
|
|
1252
|
-
var InviteTargetType;
|
|
1253
|
-
(function (InviteTargetType) {
|
|
1254
|
-
InviteTargetType[InviteTargetType["STREAM"] = 1] = "STREAM";
|
|
1255
|
-
InviteTargetType[InviteTargetType["EMBEDDED_APPLICATION"] = 2] = "EMBEDDED_APPLICATION";
|
|
1256
|
-
})(InviteTargetType = exports.InviteTargetType || (exports.InviteTargetType = {}));
|
|
1257
|
-
var MembershipState;
|
|
1258
|
-
(function (MembershipState) {
|
|
1259
|
-
MembershipState[MembershipState["INVITED"] = 1] = "INVITED";
|
|
1260
|
-
MembershipState[MembershipState["ACCEPTED"] = 2] = "ACCEPTED";
|
|
1261
|
-
})(MembershipState = exports.MembershipState || (exports.MembershipState = {}));
|
|
1262
|
-
var MessageActivityType;
|
|
1263
|
-
(function (MessageActivityType) {
|
|
1264
|
-
MessageActivityType[MessageActivityType["JOIN"] = 1] = "JOIN";
|
|
1265
|
-
MessageActivityType[MessageActivityType["SPECTATE"] = 2] = "SPECTATE";
|
|
1266
|
-
MessageActivityType[MessageActivityType["LISTEN"] = 3] = "LISTEN";
|
|
1267
|
-
MessageActivityType[MessageActivityType["JOIN_REQUEST"] = 5] = "JOIN_REQUEST";
|
|
1268
|
-
})(MessageActivityType = exports.MessageActivityType || (exports.MessageActivityType = {}));
|
|
1269
|
-
exports.MessageFlag = {
|
|
1270
|
-
/** this message has been published to subscribed channels (via Channel Following) */
|
|
1271
|
-
CROSSPOSTED: 1 << 0,
|
|
1272
|
-
/** this message originated from a message in another channel (via Channel Following) */
|
|
1273
|
-
IS_CROSSPOST: 1 << 1,
|
|
1274
|
-
/** do not include any embeds when serializing this message */
|
|
1275
|
-
SUPPRESS_EMBEDS: 1 << 2,
|
|
1276
|
-
/** the source message for this crosspost has been deleted (via Channel Following) */
|
|
1277
|
-
SOURCE_MESSAGE_DELETED: 1 << 3,
|
|
1278
|
-
/** this message came from the urgent message system */
|
|
1279
|
-
URGENT: 1 << 4,
|
|
1280
|
-
/** this message has an associated thread, with the same id as the message */
|
|
1281
|
-
HAS_THREAD: 1 << 5,
|
|
1282
|
-
/** this message is only visible to the user who invoked the Interaction */
|
|
1283
|
-
EPHEMERAL: 1 << 6,
|
|
1284
|
-
/** this message is an Interaction Response and the bot is "thinking" */
|
|
1285
|
-
LOADING: 1 << 7,
|
|
1286
|
-
/** this message failed to mention some roles and add their members to the thread */
|
|
1287
|
-
FAILED_TO_MENTION_SOME_ROLES_IN_THREAD: 1 << 8,
|
|
1288
|
-
};
|
|
1289
|
-
var MessageType;
|
|
1290
|
-
(function (MessageType) {
|
|
1291
|
-
MessageType[MessageType["DEFAULT"] = 0] = "DEFAULT";
|
|
1292
|
-
MessageType[MessageType["RECIPIENT_ADD"] = 1] = "RECIPIENT_ADD";
|
|
1293
|
-
MessageType[MessageType["RECIPIENT_REMOVE"] = 2] = "RECIPIENT_REMOVE";
|
|
1294
|
-
MessageType[MessageType["CALL"] = 3] = "CALL";
|
|
1295
|
-
MessageType[MessageType["CHANNEL_NAME_CHANGE"] = 4] = "CHANNEL_NAME_CHANGE";
|
|
1296
|
-
MessageType[MessageType["CHANNEL_ICON_CHANGE"] = 5] = "CHANNEL_ICON_CHANGE";
|
|
1297
|
-
MessageType[MessageType["CHANNEL_PINNED_MESSAGE"] = 6] = "CHANNEL_PINNED_MESSAGE";
|
|
1298
|
-
MessageType[MessageType["GUILD_MEMBER_JOIN"] = 7] = "GUILD_MEMBER_JOIN";
|
|
1299
|
-
MessageType[MessageType["USER_PREMIUM_GUILD_SUBSCRIPTION"] = 8] = "USER_PREMIUM_GUILD_SUBSCRIPTION";
|
|
1300
|
-
MessageType[MessageType["USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1"] = 9] = "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1";
|
|
1301
|
-
MessageType[MessageType["USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2"] = 10] = "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2";
|
|
1302
|
-
MessageType[MessageType["USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3"] = 11] = "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3";
|
|
1303
|
-
MessageType[MessageType["CHANNEL_FOLLOW_ADD"] = 12] = "CHANNEL_FOLLOW_ADD";
|
|
1304
|
-
MessageType[MessageType["GUILD_DISCOVERY_DISQUALIFIED"] = 14] = "GUILD_DISCOVERY_DISQUALIFIED";
|
|
1305
|
-
MessageType[MessageType["GUILD_DISCOVERY_REQUALIFIED"] = 15] = "GUILD_DISCOVERY_REQUALIFIED";
|
|
1306
|
-
MessageType[MessageType["GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING"] = 16] = "GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING";
|
|
1307
|
-
MessageType[MessageType["GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING"] = 17] = "GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING";
|
|
1308
|
-
MessageType[MessageType["THREAD_CREATED"] = 18] = "THREAD_CREATED";
|
|
1309
|
-
MessageType[MessageType["REPLY"] = 19] = "REPLY";
|
|
1310
|
-
MessageType[MessageType["CHAT_INPUT_COMMAND"] = 20] = "CHAT_INPUT_COMMAND";
|
|
1311
|
-
MessageType[MessageType["THREAD_STARTER_MESSAGE"] = 21] = "THREAD_STARTER_MESSAGE";
|
|
1312
|
-
MessageType[MessageType["GUILD_INVITE_REMINDER"] = 22] = "GUILD_INVITE_REMINDER";
|
|
1313
|
-
MessageType[MessageType["CONTEXT_MENU_COMMAND"] = 23] = "CONTEXT_MENU_COMMAND";
|
|
1314
|
-
})(MessageType = exports.MessageType || (exports.MessageType = {}));
|
|
1315
|
-
var MfaLevel;
|
|
1316
|
-
(function (MfaLevel) {
|
|
1317
|
-
/** guild has no MFA/2FA requirement for moderation actions */
|
|
1318
|
-
MfaLevel[MfaLevel["NONE"] = 0] = "NONE";
|
|
1319
|
-
/** guild has a 2FA requirement for moderation actions */
|
|
1320
|
-
MfaLevel[MfaLevel["ELEVATED"] = 1] = "ELEVATED";
|
|
1321
|
-
})(MfaLevel = exports.MfaLevel || (exports.MfaLevel = {}));
|
|
1322
|
-
exports.PermissionFlag = {
|
|
1323
|
-
/** Allows creation of instant invites */
|
|
1324
|
-
CREATE_INSTANT_INVITE: BigInt(1) << BigInt(0),
|
|
1325
|
-
/** Allows kicking members */
|
|
1326
|
-
KICK_MEMBERS: BigInt(1) << BigInt(1),
|
|
1327
|
-
/** Allows banning members */
|
|
1328
|
-
BAN_MEMBERS: BigInt(1) << BigInt(2),
|
|
1329
|
-
/** Allows all permissions and bypasses channel permission overwrites */
|
|
1330
|
-
ADMINISTRATOR: BigInt(1) << BigInt(3),
|
|
1331
|
-
/** Allows management and editing of channels */
|
|
1332
|
-
MANAGE_CHANNELS: BigInt(1) << BigInt(4),
|
|
1333
|
-
/** Allows management and editing of the guild */
|
|
1334
|
-
MANAGE_GUILD: BigInt(1) << BigInt(5),
|
|
1335
|
-
/** Allows for the addition of reactions to messages */
|
|
1336
|
-
ADD_REACTIONS: BigInt(1) << BigInt(6),
|
|
1337
|
-
/** Allows for viewing of audit logs */
|
|
1338
|
-
VIEW_AUDIT_LOG: BigInt(1) << BigInt(7),
|
|
1339
|
-
/** Allows for using priority speaker in a voice channel */
|
|
1340
|
-
PRIORITY_SPEAKER: BigInt(1) << BigInt(8),
|
|
1341
|
-
/** Allows the user to go live */
|
|
1342
|
-
STREAM: BigInt(1) << BigInt(9),
|
|
1343
|
-
/** Allows guild members to view a channel, which includes reading messages in text channels and joining voice channels */
|
|
1344
|
-
VIEW_CHANNEL: BigInt(1) << BigInt(10),
|
|
1345
|
-
/** Allows for sending messages in a channel (does not allow sending messages in threads) */
|
|
1346
|
-
SEND_MESSAGES: BigInt(1) << BigInt(11),
|
|
1347
|
-
/** Allows for sending of /tts messages */
|
|
1348
|
-
SEND_TTS_MESSAGES: BigInt(1) << BigInt(12),
|
|
1349
|
-
/** Allows for deletion of other users messages */
|
|
1350
|
-
MANAGE_MESSAGES: BigInt(1) << BigInt(13),
|
|
1351
|
-
/** Links sent by users with this permission will be auto-embedded */
|
|
1352
|
-
EMBED_LINKS: BigInt(1) << BigInt(14),
|
|
1353
|
-
/** Allows for uploading images and files */
|
|
1354
|
-
ATTACH_FILES: BigInt(1) << BigInt(15),
|
|
1355
|
-
/** Allows for reading of message history */
|
|
1356
|
-
READ_MESSAGE_HISTORY: BigInt(1) << BigInt(16),
|
|
1357
|
-
/** Allows for using the @everyone tag to notify all users in a channel, and the @here tag to notify all online users in a channel */
|
|
1358
|
-
MENTION_EVERYONE: BigInt(1) << BigInt(17),
|
|
1359
|
-
/** Allows the usage of custom emojis from other servers */
|
|
1360
|
-
USE_EXTERNAL_EMOJIS: BigInt(1) << BigInt(18),
|
|
1361
|
-
/** Allows for viewing guild insights */
|
|
1362
|
-
VIEW_GUILD_INSIGHTS: BigInt(1) << BigInt(19),
|
|
1363
|
-
/** Allows for joining of a voice channel */
|
|
1364
|
-
CONNECT: BigInt(1) << BigInt(20),
|
|
1365
|
-
/** Allows for speaking in a voice channel */
|
|
1366
|
-
SPEAK: BigInt(1) << BigInt(21),
|
|
1367
|
-
/** Allows for muting members in a voice channel */
|
|
1368
|
-
MUTE_MEMBERS: BigInt(1) << BigInt(22),
|
|
1369
|
-
/** Allows for deafening of members in a voice channel */
|
|
1370
|
-
DEAFEN_MEMBERS: BigInt(1) << BigInt(23),
|
|
1371
|
-
/** Allows for moving of members between voice channels */
|
|
1372
|
-
MOVE_MEMBERS: BigInt(1) << BigInt(24),
|
|
1373
|
-
/** Allows for using voice-activity-detection in a voice channel */
|
|
1374
|
-
USE_VAD: BigInt(1) << BigInt(25),
|
|
1375
|
-
/** Allows for modification of own nickname */
|
|
1376
|
-
CHANGE_NICKNAME: BigInt(1) << BigInt(26),
|
|
1377
|
-
/** Allows for modification of other users nicknames */
|
|
1378
|
-
MANAGE_NICKNAMES: BigInt(1) << BigInt(27),
|
|
1379
|
-
/** Allows management and editing of roles */
|
|
1380
|
-
MANAGE_ROLES: BigInt(1) << BigInt(28),
|
|
1381
|
-
/** Allows management and editing of webhooks */
|
|
1382
|
-
MANAGE_WEBHOOKS: BigInt(1) << BigInt(29),
|
|
1383
|
-
/** Allows management and editing of emojis and stickers */
|
|
1384
|
-
MANAGE_EMOJIS_AND_STICKERS: BigInt(1) << BigInt(30),
|
|
1385
|
-
/** Allows members to use application commands, including slash commands and context menu commands. */
|
|
1386
|
-
USE_APPLICATION_COMMANDS: BigInt(1) << BigInt(31),
|
|
1387
|
-
/** Allows for requesting to speak in stage channels. (This permission is under active development and may be changed or removed.) */
|
|
1388
|
-
REQUEST_TO_SPEAK: BigInt(1) << BigInt(32),
|
|
1389
|
-
/** Allows for creating, editing, and deleting scheduled events */
|
|
1390
|
-
MANAGE_EVENTS: BigInt(1) << BigInt(33),
|
|
1391
|
-
/** Allows for deleting and archiving threads, and viewing all private threads */
|
|
1392
|
-
MANAGE_THREADS: BigInt(1) << BigInt(34),
|
|
1393
|
-
/** Allows for creating public and announcement threads */
|
|
1394
|
-
CREATE_PUBLIC_THREADS: BigInt(1) << BigInt(35),
|
|
1395
|
-
/** Allows for creating private threads */
|
|
1396
|
-
CREATE_PRIVATE_THREADS: BigInt(1) << BigInt(36),
|
|
1397
|
-
/** Allows the usage of custom stickers from other servers */
|
|
1398
|
-
USE_EXTERNAL_STICKERS: BigInt(1) << BigInt(37),
|
|
1399
|
-
/** Allows for sending messages in threads */
|
|
1400
|
-
SEND_MESSAGES_IN_THREADS: BigInt(1) << BigInt(38),
|
|
1401
|
-
/** Allows for using Activities (applications with the EMBEDDED flag) in a voice channel */
|
|
1402
|
-
USE_EMBEDDED_ACTIVITIES: BigInt(1) << BigInt(39),
|
|
1403
|
-
/** Allows for timing out users to prevent them from sending or reacting to messages in chat and threads, and from speaking in voice and stage channels */
|
|
1404
|
-
MODERATE_MEMBERS: BigInt(1) << BigInt(40),
|
|
1405
|
-
};
|
|
1406
|
-
var PremiumTier;
|
|
1407
|
-
(function (PremiumTier) {
|
|
1408
|
-
/** guild has not unlocked any Server Boost perks */
|
|
1409
|
-
PremiumTier[PremiumTier["NONE"] = 0] = "NONE";
|
|
1410
|
-
/** guild has unlocked Server Boost level 1 perks */
|
|
1411
|
-
PremiumTier[PremiumTier["TIER_1"] = 1] = "TIER_1";
|
|
1412
|
-
/** guild has unlocked Server Boost level 2 perks */
|
|
1413
|
-
PremiumTier[PremiumTier["TIER_2"] = 2] = "TIER_2";
|
|
1414
|
-
/** guild has unlocked Server Boost level 3 perks */
|
|
1415
|
-
PremiumTier[PremiumTier["TIER_3"] = 3] = "TIER_3";
|
|
1416
|
-
})(PremiumTier = exports.PremiumTier || (exports.PremiumTier = {}));
|
|
1417
|
-
var PremiumType;
|
|
1418
|
-
(function (PremiumType) {
|
|
1419
|
-
PremiumType[PremiumType["NONE"] = 0] = "NONE";
|
|
1420
|
-
PremiumType[PremiumType["NITRO_CLASSIC"] = 1] = "NITRO_CLASSIC";
|
|
1421
|
-
PremiumType[PremiumType["NITRO"] = 2] = "NITRO";
|
|
1422
|
-
})(PremiumType = exports.PremiumType || (exports.PremiumType = {}));
|
|
1423
|
-
var PrivacyLevel;
|
|
1424
|
-
(function (PrivacyLevel) {
|
|
1425
|
-
/** The Stage instance is visible publicly. (deprecated) */
|
|
1426
|
-
PrivacyLevel[PrivacyLevel["PUBLIC"] = 1] = "PUBLIC";
|
|
1427
|
-
/** The Stage instance is visible to only guild members. */
|
|
1428
|
-
PrivacyLevel[PrivacyLevel["GUILD_ONLY"] = 2] = "GUILD_ONLY";
|
|
1429
|
-
})(PrivacyLevel = exports.PrivacyLevel || (exports.PrivacyLevel = {}));
|
|
1430
|
-
var StatusType;
|
|
1431
|
-
(function (StatusType) {
|
|
1432
|
-
/** Online */
|
|
1433
|
-
StatusType["ONLINE"] = "online";
|
|
1434
|
-
/** Do Not Disturb */
|
|
1435
|
-
StatusType["DND"] = "dnd";
|
|
1436
|
-
/** AFK */
|
|
1437
|
-
StatusType["IDLE"] = "idle";
|
|
1438
|
-
/** Invisible and shown as offline */
|
|
1439
|
-
StatusType["INVISIBLE"] = "invisible";
|
|
1440
|
-
/** Offline */
|
|
1441
|
-
StatusType["OFFLINE"] = "offline";
|
|
1442
|
-
})(StatusType = exports.StatusType || (exports.StatusType = {}));
|
|
1443
|
-
var StickerFormatType;
|
|
1444
|
-
(function (StickerFormatType) {
|
|
1445
|
-
StickerFormatType[StickerFormatType["PNG"] = 1] = "PNG";
|
|
1446
|
-
StickerFormatType[StickerFormatType["APNG"] = 2] = "APNG";
|
|
1447
|
-
StickerFormatType[StickerFormatType["LOTTIE"] = 3] = "LOTTIE";
|
|
1448
|
-
})(StickerFormatType = exports.StickerFormatType || (exports.StickerFormatType = {}));
|
|
1449
|
-
var StickerType;
|
|
1450
|
-
(function (StickerType) {
|
|
1451
|
-
/** an official sticker in a pack, part of Nitro or in a removed purchasable pack */
|
|
1452
|
-
StickerType[StickerType["STANDARD"] = 1] = "STANDARD";
|
|
1453
|
-
/** a sticker uploaded to a Boosted guild for the guild's members */
|
|
1454
|
-
StickerType[StickerType["GUILD"] = 2] = "GUILD";
|
|
1455
|
-
})(StickerType = exports.StickerType || (exports.StickerType = {}));
|
|
1456
|
-
exports.SystemChannelFlag = {
|
|
1457
|
-
/** Suppress member join notifications */
|
|
1458
|
-
SUPPRESS_JOIN_NOTIFICATIONS: 1 << 0,
|
|
1459
|
-
/** Suppress server boost notifications */
|
|
1460
|
-
SUPPRESS_PREMIUM_SUBSCRIPTIONS: 1 << 1,
|
|
1461
|
-
/** Suppress server setup tips */
|
|
1462
|
-
SUPPRESS_GUILD_REMINDER_NOTIFICATIONS: 1 << 2,
|
|
1463
|
-
/** Hide member join sticker reply buttons */
|
|
1464
|
-
SUPPRESS_JOIN_NOTIFICATION_REPLIES: 1 << 3,
|
|
1465
|
-
};
|
|
1466
|
-
var TextInputStyle;
|
|
1467
|
-
(function (TextInputStyle) {
|
|
1468
|
-
/** A single-line input */
|
|
1469
|
-
TextInputStyle[TextInputStyle["SHORT"] = 1] = "SHORT";
|
|
1470
|
-
/** A multi-line input */
|
|
1471
|
-
TextInputStyle[TextInputStyle["PARAGRAPH"] = 2] = "PARAGRAPH";
|
|
1472
|
-
})(TextInputStyle = exports.TextInputStyle || (exports.TextInputStyle = {}));
|
|
1473
|
-
exports.UserFlag = {
|
|
1474
|
-
/** Discord Employee */
|
|
1475
|
-
STAFF: 1 << 0,
|
|
1476
|
-
/** Partnered Server Owner */
|
|
1477
|
-
PARTNER: 1 << 1,
|
|
1478
|
-
/** HypeSquad Events Coordinator */
|
|
1479
|
-
HYPESQUAD: 1 << 2,
|
|
1480
|
-
/** Bug Hunter Level 1 */
|
|
1481
|
-
BUG_HUNTER_LEVEL_1: 1 << 3,
|
|
1482
|
-
/** House Bravery Member */
|
|
1483
|
-
HYPESQUAD_ONLINE_HOUSE_1: 1 << 6,
|
|
1484
|
-
/** House Brilliance Member */
|
|
1485
|
-
HYPESQUAD_ONLINE_HOUSE_2: 1 << 7,
|
|
1486
|
-
/** House Balance Member */
|
|
1487
|
-
HYPESQUAD_ONLINE_HOUSE_3: 1 << 8,
|
|
1488
|
-
/** Early Nitro Supporter */
|
|
1489
|
-
PREMIUM_EARLY_SUPPORTER: 1 << 9,
|
|
1490
|
-
/** User is a team */
|
|
1491
|
-
TEAM_PSEUDO_USER: 1 << 10,
|
|
1492
|
-
/** Bug Hunter Level 2 */
|
|
1493
|
-
BUG_HUNTER_LEVEL_2: 1 << 14,
|
|
1494
|
-
/** Verified Bot */
|
|
1495
|
-
VERIFIED_BOT: 1 << 16,
|
|
1496
|
-
/** Early Verified Bot Developer */
|
|
1497
|
-
VERIFIED_DEVELOPER: 1 << 17,
|
|
1498
|
-
/** Discord Certified Moderator */
|
|
1499
|
-
CERTIFIED_MODERATOR: 1 << 18,
|
|
1500
|
-
/** Bot uses only HTTP interactions and is shown in the online member list */
|
|
1501
|
-
BOT_HTTP_INTERACTIONS: 1 << 19,
|
|
1502
|
-
};
|
|
1503
|
-
var VerificationLevel;
|
|
1504
|
-
(function (VerificationLevel) {
|
|
1505
|
-
/** unrestricted */
|
|
1506
|
-
VerificationLevel[VerificationLevel["NONE"] = 0] = "NONE";
|
|
1507
|
-
/** must have verified email on account */
|
|
1508
|
-
VerificationLevel[VerificationLevel["LOW"] = 1] = "LOW";
|
|
1509
|
-
/** must be registered on Discord for longer than 5 minutes */
|
|
1510
|
-
VerificationLevel[VerificationLevel["MEDIUM"] = 2] = "MEDIUM";
|
|
1511
|
-
/** must be a member of the server for longer than 10 minutes */
|
|
1512
|
-
VerificationLevel[VerificationLevel["HIGH"] = 3] = "HIGH";
|
|
1513
|
-
/** must have a verified phone number */
|
|
1514
|
-
VerificationLevel[VerificationLevel["VERY_HIGH"] = 4] = "VERY_HIGH";
|
|
1515
|
-
})(VerificationLevel = exports.VerificationLevel || (exports.VerificationLevel = {}));
|
|
1516
|
-
var VideoQualityMode;
|
|
1517
|
-
(function (VideoQualityMode) {
|
|
1518
|
-
/** Discord chooses the quality for optimal performance */
|
|
1519
|
-
VideoQualityMode[VideoQualityMode["AUTO"] = 1] = "AUTO";
|
|
1520
|
-
/** 720p */
|
|
1521
|
-
VideoQualityMode[VideoQualityMode["FULL"] = 2] = "FULL";
|
|
1522
|
-
})(VideoQualityMode = exports.VideoQualityMode || (exports.VideoQualityMode = {}));
|
|
1523
|
-
var VisibilityType;
|
|
1524
|
-
(function (VisibilityType) {
|
|
1525
|
-
/** invisible to everyone except the user themselves */
|
|
1526
|
-
VisibilityType[VisibilityType["NONE"] = 0] = "NONE";
|
|
1527
|
-
/** visible to everyone */
|
|
1528
|
-
VisibilityType[VisibilityType["EVERYONE"] = 1] = "EVERYONE";
|
|
1529
|
-
})(VisibilityType = exports.VisibilityType || (exports.VisibilityType = {}));
|
|
1530
|
-
var VoiceOpcode;
|
|
1531
|
-
(function (VoiceOpcode) {
|
|
1532
|
-
/** Begin a voice websocket connection. */
|
|
1533
|
-
VoiceOpcode[VoiceOpcode["IDENTIFY"] = 0] = "IDENTIFY";
|
|
1534
|
-
/** Select the voice protocol. */
|
|
1535
|
-
VoiceOpcode[VoiceOpcode["SELECT_PROTOCOL"] = 1] = "SELECT_PROTOCOL";
|
|
1536
|
-
/** Complete the websocket handshake. */
|
|
1537
|
-
VoiceOpcode[VoiceOpcode["READY"] = 2] = "READY";
|
|
1538
|
-
/** Keep the websocket connection alive. */
|
|
1539
|
-
VoiceOpcode[VoiceOpcode["HEARTBEAT"] = 3] = "HEARTBEAT";
|
|
1540
|
-
/** Describe the session. */
|
|
1541
|
-
VoiceOpcode[VoiceOpcode["SESSION_DESCRIPTION"] = 4] = "SESSION_DESCRIPTION";
|
|
1542
|
-
/** Indicate which users are speaking. */
|
|
1543
|
-
VoiceOpcode[VoiceOpcode["SPEAKING"] = 5] = "SPEAKING";
|
|
1544
|
-
/** Sent to acknowledge a received client heartbeat. */
|
|
1545
|
-
VoiceOpcode[VoiceOpcode["HEARTBEAT_ACK"] = 6] = "HEARTBEAT_ACK";
|
|
1546
|
-
/** Resume a connection. */
|
|
1547
|
-
VoiceOpcode[VoiceOpcode["RESUME"] = 7] = "RESUME";
|
|
1548
|
-
/** Time to wait between sending heartbeats in milliseconds. */
|
|
1549
|
-
VoiceOpcode[VoiceOpcode["HELLO"] = 8] = "HELLO";
|
|
1550
|
-
/** Acknowledge a successful session resume. */
|
|
1551
|
-
VoiceOpcode[VoiceOpcode["RESUMED"] = 9] = "RESUMED";
|
|
1552
|
-
/** A client has disconnected from the voice channel */
|
|
1553
|
-
VoiceOpcode[VoiceOpcode["CLIENT_DISCONNECT"] = 13] = "CLIENT_DISCONNECT";
|
|
1554
|
-
})(VoiceOpcode = exports.VoiceOpcode || (exports.VoiceOpcode = {}));
|
|
1555
|
-
var WebhookType;
|
|
1556
|
-
(function (WebhookType) {
|
|
1557
|
-
/** Incoming Webhooks can post messages to channels with a generated token */
|
|
1558
|
-
WebhookType[WebhookType["INCOMING"] = 1] = "INCOMING";
|
|
1559
|
-
/** Channel Follower Webhooks are internal webhooks used with Channel Following to post new messages into channels */
|
|
1560
|
-
WebhookType[WebhookType["CHANNEL_FOLLOWER"] = 2] = "CHANNEL_FOLLOWER";
|
|
1561
|
-
/** Application webhooks are webhooks used with Interactions */
|
|
1562
|
-
WebhookType[WebhookType["APPLICATION"] = 3] = "APPLICATION";
|
|
1563
|
-
})(WebhookType = exports.WebhookType || (exports.WebhookType = {}));
|
|
1564
|
-
//# sourceMappingURL=types.js.map
|