dfx 0.51.0 → 0.51.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cache/driver.d.ts +17 -16
- package/Cache/driver.d.ts.map +1 -1
- package/Cache/driver.js +10 -2
- package/Cache/driver.js.map +1 -1
- package/Cache/memory.d.ts +3 -3
- package/Cache/memory.d.ts.map +1 -1
- package/Cache/memory.js +55 -45
- package/Cache/memory.js.map +1 -1
- package/Cache/memoryTTL.d.ts +7 -6
- package/Cache/memoryTTL.d.ts.map +1 -1
- package/Cache/memoryTTL.js +126 -118
- package/Cache/memoryTTL.js.map +1 -1
- package/Cache/prelude.d.ts +53 -47
- package/Cache/prelude.d.ts.map +1 -1
- package/Cache/prelude.js +125 -96
- package/Cache/prelude.js.map +1 -1
- package/Cache.d.ts +33 -32
- package/Cache.d.ts.map +1 -1
- package/Cache.js +137 -65
- package/Cache.js.map +1 -1
- package/DiscordConfig.d.ts +26 -20
- package/DiscordConfig.d.ts.map +1 -1
- package/DiscordConfig.js +43 -25
- package/DiscordConfig.js.map +1 -1
- package/DiscordGateway/DiscordWS.d.ts +17 -14
- package/DiscordGateway/DiscordWS.d.ts.map +1 -1
- package/DiscordGateway/DiscordWS.js +49 -30
- package/DiscordGateway/DiscordWS.js.map +1 -1
- package/DiscordGateway/Shard/heartbeats.d.ts +7 -3
- package/DiscordGateway/Shard/heartbeats.d.ts.map +1 -1
- package/DiscordGateway/Shard/heartbeats.js +28 -18
- package/DiscordGateway/Shard/heartbeats.js.map +1 -1
- package/DiscordGateway/Shard/identify.d.ts +10 -8
- package/DiscordGateway/Shard/identify.d.ts.map +1 -1
- package/DiscordGateway/Shard/identify.js +41 -24
- package/DiscordGateway/Shard/identify.js.map +1 -1
- package/DiscordGateway/Shard/invalidSession.d.ts +6 -3
- package/DiscordGateway/Shard/invalidSession.d.ts.map +1 -1
- package/DiscordGateway/Shard/invalidSession.js +14 -5
- package/DiscordGateway/Shard/invalidSession.js.map +1 -1
- package/DiscordGateway/Shard/sendEvents.d.ts +1 -1
- package/DiscordGateway/Shard/sendEvents.d.ts.map +1 -1
- package/DiscordGateway/Shard/sendEvents.js +30 -18
- package/DiscordGateway/Shard/sendEvents.js.map +1 -1
- package/DiscordGateway/Shard/utils.d.ts +7 -3
- package/DiscordGateway/Shard/utils.d.ts.map +1 -1
- package/DiscordGateway/Shard/utils.js +19 -9
- package/DiscordGateway/Shard/utils.js.map +1 -1
- package/DiscordGateway/Shard.d.ts +15 -10
- package/DiscordGateway/Shard.d.ts.map +1 -1
- package/DiscordGateway/Shard.js +109 -87
- package/DiscordGateway/Shard.js.map +1 -1
- package/DiscordGateway/ShardStore.d.ts +9 -6
- package/DiscordGateway/ShardStore.d.ts.map +1 -1
- package/DiscordGateway/ShardStore.js +30 -18
- package/DiscordGateway/ShardStore.js.map +1 -1
- package/DiscordGateway/Sharder.d.ts +17 -11
- package/DiscordGateway/Sharder.d.ts.map +1 -1
- package/DiscordGateway/Sharder.js +82 -52
- package/DiscordGateway/Sharder.js.map +1 -1
- package/DiscordGateway/WS.d.ts +13 -10
- package/DiscordGateway/WS.d.ts.map +1 -1
- package/DiscordGateway/WS.js +100 -74
- package/DiscordGateway/WS.js.map +1 -1
- package/DiscordGateway.d.ts +19 -13
- package/DiscordGateway.d.ts.map +1 -1
- package/DiscordGateway.js +45 -32
- package/DiscordGateway.js.map +1 -1
- package/DiscordREST/types.d.ts +5 -5
- package/DiscordREST/types.d.ts.map +1 -1
- package/DiscordREST/types.js +5 -1
- package/DiscordREST/types.js.map +1 -1
- package/DiscordREST/utils.d.ts +3 -2
- package/DiscordREST/utils.d.ts.map +1 -1
- package/DiscordREST/utils.js +27 -17
- package/DiscordREST/utils.js.map +1 -1
- package/DiscordREST.d.ts +11 -8
- package/DiscordREST.d.ts.map +1 -1
- package/DiscordREST.js +141 -127
- package/DiscordREST.js.map +1 -1
- package/Helpers/flags.js +31 -19
- package/Helpers/flags.js.map +1 -1
- package/Helpers/intents.d.ts.map +1 -1
- package/Helpers/intents.js +22 -10
- package/Helpers/intents.js.map +1 -1
- package/Helpers/interactions.d.ts +22 -21
- package/Helpers/interactions.d.ts.map +1 -1
- package/Helpers/interactions.js +75 -39
- package/Helpers/interactions.js.map +1 -1
- package/Helpers/members.d.ts +3 -3
- package/Helpers/members.d.ts.map +1 -1
- package/Helpers/members.js +10 -3
- package/Helpers/members.js.map +1 -1
- package/Helpers/permissions.d.ts +5 -4
- package/Helpers/permissions.d.ts.map +1 -1
- package/Helpers/permissions.js +69 -52
- package/Helpers/permissions.js.map +1 -1
- package/Helpers/ui.d.ts +1 -1
- package/Helpers/ui.d.ts.map +1 -1
- package/Helpers/ui.js +44 -29
- package/Helpers/ui.js.map +1 -1
- package/Interactions/builder.d.ts +20 -19
- package/Interactions/builder.d.ts.map +1 -1
- package/Interactions/builder.js +66 -63
- package/Interactions/builder.js.map +1 -1
- package/Interactions/context.d.ts +26 -23
- package/Interactions/context.d.ts.map +1 -1
- package/Interactions/context.js +86 -57
- package/Interactions/context.js.map +1 -1
- package/Interactions/definitions.d.ts +33 -30
- package/Interactions/definitions.d.ts.map +1 -1
- package/Interactions/definitions.js +61 -47
- package/Interactions/definitions.js.map +1 -1
- package/Interactions/gateway.d.ts +15 -10
- package/Interactions/gateway.d.ts.map +1 -1
- package/Interactions/gateway.js +55 -42
- package/Interactions/gateway.js.map +1 -1
- package/Interactions/handlers.d.ts +6 -4
- package/Interactions/handlers.d.ts.map +1 -1
- package/Interactions/handlers.js +68 -57
- package/Interactions/handlers.js.map +1 -1
- package/Interactions/index.d.ts +11 -10
- package/Interactions/index.d.ts.map +1 -1
- package/Interactions/index.js +95 -10
- package/Interactions/index.js.map +1 -1
- package/Interactions/utils.d.ts +42 -40
- package/Interactions/utils.d.ts.map +1 -1
- package/Interactions/utils.js +40 -32
- package/Interactions/utils.js.map +1 -1
- package/Interactions/webhook.d.ts +20 -16
- package/Interactions/webhook.d.ts.map +1 -1
- package/Interactions/webhook.js +73 -41
- package/Interactions/webhook.js.map +1 -1
- package/Log.d.ts +8 -5
- package/Log.d.ts.map +1 -1
- package/Log.js +23 -14
- package/Log.js.map +1 -1
- package/RateLimit/memory.d.ts +1 -1
- package/RateLimit/memory.d.ts.map +1 -1
- package/RateLimit/memory.js +46 -33
- package/RateLimit/memory.js.map +1 -1
- package/RateLimit/utils.d.ts +1 -1
- package/RateLimit/utils.d.ts.map +1 -1
- package/RateLimit/utils.js +23 -16
- package/RateLimit/utils.js.map +1 -1
- package/RateLimit.d.ts +18 -14
- package/RateLimit.d.ts.map +1 -1
- package/RateLimit.js +40 -26
- package/RateLimit.js.map +1 -1
- package/gateway.d.ts +20 -13
- package/gateway.d.ts.map +1 -1
- package/gateway.js +72 -25
- package/gateway.js.map +1 -1
- package/index.d.ts +14 -13
- package/index.d.ts.map +1 -1
- package/index.js +71 -13
- package/index.js.map +1 -1
- package/mjs/Cache/driver.mjs +3 -0
- package/mjs/Cache/driver.mjs.map +1 -0
- package/mjs/Cache/memory.mjs +48 -0
- package/mjs/Cache/memory.mjs.map +1 -0
- package/mjs/Cache/memoryTTL.mjs +119 -0
- package/mjs/Cache/memoryTTL.mjs.map +1 -0
- package/mjs/Cache/prelude.mjs +125 -0
- package/mjs/Cache/prelude.mjs.map +1 -0
- package/mjs/Cache.mjs +87 -0
- package/mjs/Cache.mjs.map +1 -0
- package/mjs/DiscordConfig.mjs +34 -0
- package/mjs/DiscordConfig.mjs.map +1 -0
- package/mjs/DiscordGateway/DiscordWS.mjs +39 -0
- package/mjs/DiscordGateway/DiscordWS.mjs.map +1 -0
- package/mjs/DiscordGateway/Shard/heartbeats.mjs +21 -0
- package/mjs/DiscordGateway/Shard/heartbeats.mjs.map +1 -0
- package/mjs/DiscordGateway/Shard/identify.mjs +37 -0
- package/mjs/DiscordGateway/Shard/identify.mjs.map +1 -0
- package/mjs/DiscordGateway/Shard/invalidSession.mjs +6 -0
- package/mjs/DiscordGateway/Shard/invalidSession.mjs.map +1 -0
- package/mjs/DiscordGateway/Shard/sendEvents.mjs +25 -0
- package/mjs/DiscordGateway/Shard/sendEvents.mjs.map +1 -0
- package/mjs/DiscordGateway/Shard/utils.mjs +11 -0
- package/mjs/DiscordGateway/Shard/utils.mjs.map +1 -0
- package/mjs/DiscordGateway/Shard.mjs +99 -0
- package/mjs/DiscordGateway/Shard.mjs.map +1 -0
- package/mjs/DiscordGateway/ShardStore.mjs +24 -0
- package/mjs/DiscordGateway/ShardStore.mjs.map +1 -0
- package/mjs/DiscordGateway/Sharder.mjs +73 -0
- package/mjs/DiscordGateway/Sharder.mjs.map +1 -0
- package/mjs/DiscordGateway/WS.mjs +94 -0
- package/mjs/DiscordGateway/WS.mjs.map +1 -0
- package/mjs/DiscordGateway.mjs +36 -0
- package/mjs/DiscordGateway.mjs.map +1 -0
- package/mjs/DiscordREST/types.mjs +2 -0
- package/mjs/DiscordREST/types.mjs.map +1 -0
- package/mjs/DiscordREST/utils.mjs +19 -0
- package/mjs/DiscordREST/utils.mjs.map +1 -0
- package/mjs/DiscordREST.mjs +129 -0
- package/mjs/DiscordREST.mjs.map +1 -0
- package/mjs/Helpers/flags.mjs +36 -0
- package/mjs/Helpers/flags.mjs.map +1 -0
- package/mjs/Helpers/intents.mjs +27 -0
- package/mjs/Helpers/intents.mjs.map +1 -0
- package/mjs/Helpers/interactions.mjs +104 -0
- package/mjs/Helpers/interactions.mjs.map +1 -0
- package/mjs/Helpers/members.mjs +9 -0
- package/mjs/Helpers/members.mjs.map +1 -0
- package/mjs/Helpers/permissions.mjs +82 -0
- package/mjs/Helpers/permissions.mjs.map +1 -0
- package/mjs/Helpers/ui.mjs +66 -0
- package/mjs/Helpers/ui.mjs.map +1 -0
- package/mjs/Interactions/builder.mjs +62 -0
- package/mjs/Interactions/builder.mjs.map +1 -0
- package/mjs/Interactions/context.mjs +63 -0
- package/mjs/Interactions/context.mjs.map +1 -0
- package/mjs/Interactions/definitions.mjs +51 -0
- package/mjs/Interactions/definitions.mjs.map +1 -0
- package/mjs/Interactions/gateway.mjs +48 -0
- package/mjs/Interactions/gateway.mjs.map +1 -0
- package/mjs/Interactions/handlers.mjs +61 -0
- package/mjs/Interactions/handlers.mjs.map +1 -0
- package/mjs/Interactions/index.mjs +12 -0
- package/mjs/Interactions/index.mjs.map +1 -0
- package/mjs/Interactions/utils.mjs +35 -0
- package/mjs/Interactions/utils.mjs.map +1 -0
- package/mjs/Interactions/webhook.mjs +73 -0
- package/mjs/Interactions/webhook.mjs.map +1 -0
- package/mjs/Log.mjs +15 -0
- package/mjs/Log.mjs.map +1 -0
- package/mjs/RateLimit/memory.mjs +39 -0
- package/mjs/RateLimit/memory.mjs.map +1 -0
- package/mjs/RateLimit/utils.mjs +18 -0
- package/mjs/RateLimit/utils.mjs.map +1 -0
- package/mjs/RateLimit.mjs +29 -0
- package/mjs/RateLimit.mjs.map +1 -0
- package/mjs/gateway.mjs +27 -0
- package/mjs/gateway.mjs.map +1 -0
- package/mjs/index.mjs +15 -0
- package/mjs/index.mjs.map +1 -0
- package/mjs/types.mjs +1211 -0
- package/mjs/types.mjs.map +1 -0
- package/mjs/utils/Effect.mjs +28 -0
- package/mjs/utils/Effect.mjs.map +1 -0
- package/mjs/utils/tsplus.mjs +2 -0
- package/mjs/utils/tsplus.mjs.map +1 -0
- package/mjs/version.mjs +2 -0
- package/mjs/version.mjs.map +1 -0
- package/mjs/webhooks.mjs +30 -0
- package/mjs/webhooks.mjs.map +1 -0
- package/package.json +46 -50
- package/src/Cache/driver.ts +27 -15
- package/src/Cache/memory.ts +9 -5
- package/src/Cache/memoryTTL.ts +69 -53
- package/src/Cache/prelude.ts +113 -91
- package/src/Cache.ts +73 -58
- package/src/DiscordConfig.ts +33 -19
- package/src/DiscordGateway/DiscordWS.ts +28 -25
- package/src/DiscordGateway/Shard/heartbeats.ts +47 -27
- package/src/DiscordGateway/Shard/identify.ts +29 -25
- package/src/DiscordGateway/Shard/invalidSession.ts +9 -7
- package/src/DiscordGateway/Shard/sendEvents.ts +1 -1
- package/src/DiscordGateway/Shard/utils.ts +33 -9
- package/src/DiscordGateway/Shard.ts +119 -99
- package/src/DiscordGateway/ShardStore.ts +12 -5
- package/src/DiscordGateway/Sharder.ts +95 -74
- package/src/DiscordGateway/WS.ts +85 -60
- package/src/DiscordGateway.ts +58 -18
- package/src/DiscordREST/types.ts +5 -5
- package/src/DiscordREST/utils.ts +10 -7
- package/src/DiscordREST.ts +152 -132
- package/src/Helpers/intents.ts +1 -0
- package/src/Helpers/interactions.ts +51 -38
- package/src/Helpers/members.ts +2 -0
- package/src/Helpers/permissions.ts +6 -5
- package/src/Helpers/ui.ts +1 -1
- package/src/Interactions/builder.ts +56 -43
- package/src/Interactions/context.ts +68 -38
- package/src/Interactions/definitions.ts +32 -24
- package/src/Interactions/gateway.ts +72 -47
- package/src/Interactions/handlers.ts +56 -39
- package/src/Interactions/index.ts +6 -5
- package/src/Interactions/utils.ts +32 -21
- package/src/Interactions/webhook.ts +78 -42
- package/src/Log.ts +4 -0
- package/src/RateLimit/memory.ts +10 -4
- package/src/RateLimit/utils.ts +1 -1
- package/src/RateLimit.ts +38 -25
- package/src/gateway.ts +62 -25
- package/src/index.ts +29 -15
- package/src/utils/Effect.ts +69 -0
- package/src/version.ts +1 -0
- package/src/webhooks.ts +47 -20
- package/tsconfig.base.json +48 -0
- package/tsconfig.build.json +10 -0
- package/tsconfig.examples.json +11 -0
- package/tsconfig.json +12 -8
- package/tsconfig.madge.json +12 -0
- package/tsconfig.test.json +10 -0
- package/types.d.ts.map +1 -1
- package/types.js +1216 -1200
- package/types.js.map +1 -1
- package/utils/Effect.d.ts +8 -0
- package/utils/Effect.d.ts.map +1 -0
- package/utils/Effect.js +38 -0
- package/utils/Effect.js.map +1 -0
- package/utils/tsplus.js +5 -1
- package/utils/tsplus.js.map +1 -1
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +9 -0
- package/version.js.map +1 -0
- package/webhooks.d.ts +14 -9
- package/webhooks.d.ts.map +1 -1
- package/webhooks.js +76 -27
- package/webhooks.js.map +1 -1
- package/_common.d.ts +0 -37
- package/_common.d.ts.map +0 -1
- package/_common.js +0 -8
- package/_common.js.map +0 -1
- package/global.d.ts +0 -18
- package/global.d.ts.map +0 -1
- package/global.js +0 -2
- package/global.js.map +0 -1
- package/src/_common.ts +0 -43
- package/src/global.ts +0 -45
- package/src/package.json +0 -52
- package/src/utils/effect.ts +0 -0
- package/src/utils/hub.ts +0 -47
- package/tsplus.config.json +0 -8
- package/utils/effect.d.ts +0 -2
- package/utils/effect.d.ts.map +0 -1
- package/utils/effect.js +0 -2
- package/utils/effect.js.map +0 -1
- package/utils/hub.d.ts +0 -12
- package/utils/hub.d.ts.map +0 -1
- package/utils/hub.js +0 -26
- package/utils/hub.js.map +0 -1
package/types.js
CHANGED
|
@@ -1,1211 +1,1227 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.UserFlag = exports.SystemChannelFlag = exports.PermissionFlag = exports.MessageFlag = exports.GuildMemberFlag = exports.GatewayIntents = exports.ChannelFlag = exports.ApplicationFlag = exports.ActivityFlag = void 0;
|
|
7
|
+
exports.createRoutes = createRoutes;
|
|
8
|
+
const ActivityFlag = {
|
|
9
|
+
INSTANCE: 1 << 0,
|
|
10
|
+
JOIN: 1 << 1,
|
|
11
|
+
SPECTATE: 1 << 2,
|
|
12
|
+
JOIN_REQUEST: 1 << 3,
|
|
13
|
+
SYNC: 1 << 4,
|
|
14
|
+
PLAY: 1 << 5,
|
|
15
|
+
PARTY_PRIVACY_FRIENDS: 1 << 6,
|
|
16
|
+
PARTY_PRIVACY_VOICE_CHANNEL: 1 << 7,
|
|
17
|
+
EMBEDDED: 1 << 8
|
|
11
18
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
exports.ActivityFlag = ActivityFlag;
|
|
20
|
+
const ApplicationFlag = {
|
|
21
|
+
/** Indicates if an app uses the Auto Moderation API */
|
|
22
|
+
APPLICATION_AUTO_MODERATION_RULE_CREATE_BADGE: 1 << 6,
|
|
23
|
+
/** Intent required for bots in 100 or more servers to receive presence_update events */
|
|
24
|
+
GATEWAY_PRESENCE: 1 << 12,
|
|
25
|
+
/** Intent required for bots in under 100 servers to receive presence_update events, found on the Bot page in your app's settings */
|
|
26
|
+
GATEWAY_PRESENCE_LIMITED: 1 << 13,
|
|
27
|
+
/** Intent required for bots in 100 or more servers to receive member-related events like guild_member_add. See the list of member-related events under GUILD_MEMBERS */
|
|
28
|
+
GATEWAY_GUILD_MEMBERS: 1 << 14,
|
|
29
|
+
/** Intent required for bots in under 100 servers to receive member-related events like guild_member_add, found on the Bot page in your app's settings. See the list of member-related events under GUILD_MEMBERS */
|
|
30
|
+
GATEWAY_GUILD_MEMBERS_LIMITED: 1 << 15,
|
|
31
|
+
/** Indicates unusual growth of an app that prevents verification */
|
|
32
|
+
VERIFICATION_PENDING_GUILD_LIMIT: 1 << 16,
|
|
33
|
+
/** Indicates if an app is embedded within the Discord client (currently unavailable publicly) */
|
|
34
|
+
EMBEDDED: 1 << 17,
|
|
35
|
+
/** Intent required for bots in 100 or more servers to receive message content */
|
|
36
|
+
GATEWAY_MESSAGE_CONTENT: 1 << 18,
|
|
37
|
+
/** Intent required for bots in under 100 servers to receive message content, found on the Bot page in your app's settings */
|
|
38
|
+
GATEWAY_MESSAGE_CONTENT_LIMITED: 1 << 19,
|
|
39
|
+
/** Indicates if an app has registered global application commands */
|
|
40
|
+
APPLICATION_COMMAND_BADGE: 1 << 23
|
|
33
41
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
42
|
+
exports.ApplicationFlag = ApplicationFlag;
|
|
43
|
+
const ChannelFlag = {
|
|
44
|
+
/** this thread is pinned to the top of its parent GUILD_FORUM channel */
|
|
45
|
+
PINNED: 1 << 1,
|
|
46
|
+
/** whether a tag is required to be specified when creating a thread in a GUILD_FORUM channel. Tags are specified in the applied_tags field. */
|
|
47
|
+
REQUIRE_TAG: 1 << 4
|
|
39
48
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
}
|
|
49
|
+
exports.ChannelFlag = ChannelFlag;
|
|
50
|
+
function createRoutes(fetch) {
|
|
51
|
+
return {
|
|
52
|
+
addGuildMember: (guildId, userId, params, options) => fetch({
|
|
53
|
+
method: "PUT",
|
|
54
|
+
url: `/guilds/${guildId}/members/${userId}`,
|
|
55
|
+
params,
|
|
56
|
+
options
|
|
57
|
+
}),
|
|
58
|
+
addGuildMemberRole: (guildId, userId, roleId, options) => fetch({
|
|
59
|
+
method: "PUT",
|
|
60
|
+
url: `/guilds/${guildId}/members/${userId}/roles/${roleId}`,
|
|
61
|
+
options
|
|
62
|
+
}),
|
|
63
|
+
addThreadMember: (channelId, userId, options) => fetch({
|
|
64
|
+
method: "PUT",
|
|
65
|
+
url: `/channels/${channelId}/thread-members/${userId}`,
|
|
66
|
+
options
|
|
67
|
+
}),
|
|
68
|
+
batchEditApplicationCommandPermissions: (applicationId, guildId, options) => fetch({
|
|
69
|
+
method: "PUT",
|
|
70
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
|
|
71
|
+
options
|
|
72
|
+
}),
|
|
73
|
+
beginGuildPrune: (guildId, params, options) => fetch({
|
|
74
|
+
method: "POST",
|
|
75
|
+
url: `/guilds/${guildId}/prune`,
|
|
76
|
+
params,
|
|
77
|
+
options
|
|
78
|
+
}),
|
|
79
|
+
bulkDeleteMessages: (channelId, params, options) => fetch({
|
|
80
|
+
method: "POST",
|
|
81
|
+
url: `/channels/${channelId}/messages/bulk-delete`,
|
|
82
|
+
params,
|
|
83
|
+
options
|
|
84
|
+
}),
|
|
85
|
+
bulkOverwriteGlobalApplicationCommands: (applicationId, options) => fetch({
|
|
86
|
+
method: "PUT",
|
|
87
|
+
url: `/applications/${applicationId}/commands`,
|
|
88
|
+
options
|
|
89
|
+
}),
|
|
90
|
+
bulkOverwriteGuildApplicationCommands: (applicationId, guildId, params, options) => fetch({
|
|
91
|
+
method: "PUT",
|
|
92
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands`,
|
|
93
|
+
params,
|
|
94
|
+
options
|
|
95
|
+
}),
|
|
96
|
+
createAutoModerationRule: (guildId, params, options) => fetch({
|
|
97
|
+
method: "POST",
|
|
98
|
+
url: `/guilds/${guildId}/auto-moderation/rules`,
|
|
99
|
+
params,
|
|
100
|
+
options
|
|
101
|
+
}),
|
|
102
|
+
createChannelInvite: (channelId, params, options) => fetch({
|
|
103
|
+
method: "POST",
|
|
104
|
+
url: `/channels/${channelId}/invites`,
|
|
105
|
+
params,
|
|
106
|
+
options
|
|
107
|
+
}),
|
|
108
|
+
createDm: (params, options) => fetch({
|
|
109
|
+
method: "POST",
|
|
110
|
+
url: `/users/@me/channels`,
|
|
111
|
+
params,
|
|
112
|
+
options
|
|
113
|
+
}),
|
|
114
|
+
createFollowupMessage: (applicationId, interactionToken, params, options) => fetch({
|
|
115
|
+
method: "POST",
|
|
116
|
+
url: `/webhooks/${applicationId}/${interactionToken}`,
|
|
117
|
+
params,
|
|
118
|
+
options
|
|
119
|
+
}),
|
|
120
|
+
createGlobalApplicationCommand: (applicationId, params, options) => fetch({
|
|
121
|
+
method: "POST",
|
|
122
|
+
url: `/applications/${applicationId}/commands`,
|
|
123
|
+
params,
|
|
124
|
+
options
|
|
125
|
+
}),
|
|
126
|
+
createGroupDm: (params, options) => fetch({
|
|
127
|
+
method: "POST",
|
|
128
|
+
url: `/users/@me/channels`,
|
|
129
|
+
params,
|
|
130
|
+
options
|
|
131
|
+
}),
|
|
132
|
+
createGuild: (params, options) => fetch({
|
|
133
|
+
method: "POST",
|
|
134
|
+
url: `/guilds`,
|
|
135
|
+
params,
|
|
136
|
+
options
|
|
137
|
+
}),
|
|
138
|
+
createGuildApplicationCommand: (applicationId, guildId, params, options) => fetch({
|
|
139
|
+
method: "POST",
|
|
140
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands`,
|
|
141
|
+
params,
|
|
142
|
+
options
|
|
143
|
+
}),
|
|
144
|
+
createGuildBan: (guildId, userId, params, options) => fetch({
|
|
145
|
+
method: "PUT",
|
|
146
|
+
url: `/guilds/${guildId}/bans/${userId}`,
|
|
147
|
+
params,
|
|
148
|
+
options
|
|
149
|
+
}),
|
|
150
|
+
createGuildChannel: (guildId, params, options) => fetch({
|
|
151
|
+
method: "POST",
|
|
152
|
+
url: `/guilds/${guildId}/channels`,
|
|
153
|
+
params,
|
|
154
|
+
options
|
|
155
|
+
}),
|
|
156
|
+
createGuildEmoji: (guildId, params, options) => fetch({
|
|
157
|
+
method: "POST",
|
|
158
|
+
url: `/guilds/${guildId}/emojis`,
|
|
159
|
+
params,
|
|
160
|
+
options
|
|
161
|
+
}),
|
|
162
|
+
createGuildFromGuildTemplate: (templateCode, params, options) => fetch({
|
|
163
|
+
method: "POST",
|
|
164
|
+
url: `/guilds/templates/${templateCode}`,
|
|
165
|
+
params,
|
|
166
|
+
options
|
|
167
|
+
}),
|
|
168
|
+
createGuildRole: (guildId, params, options) => fetch({
|
|
169
|
+
method: "POST",
|
|
170
|
+
url: `/guilds/${guildId}/roles`,
|
|
171
|
+
params,
|
|
172
|
+
options
|
|
173
|
+
}),
|
|
174
|
+
createGuildScheduledEvent: (guildId, params, options) => fetch({
|
|
175
|
+
method: "POST",
|
|
176
|
+
url: `/guilds/${guildId}/scheduled-events`,
|
|
177
|
+
params,
|
|
178
|
+
options
|
|
179
|
+
}),
|
|
180
|
+
createGuildSticker: (guildId, params, options) => fetch({
|
|
181
|
+
method: "POST",
|
|
182
|
+
url: `/guilds/${guildId}/stickers`,
|
|
183
|
+
params,
|
|
184
|
+
options
|
|
185
|
+
}),
|
|
186
|
+
createGuildTemplate: (guildId, params, options) => fetch({
|
|
187
|
+
method: "POST",
|
|
188
|
+
url: `/guilds/${guildId}/templates`,
|
|
189
|
+
params,
|
|
190
|
+
options
|
|
191
|
+
}),
|
|
192
|
+
createInteractionResponse: (interactionId, interactionToken, params, options) => fetch({
|
|
193
|
+
method: "POST",
|
|
194
|
+
url: `/interactions/${interactionId}/${interactionToken}/callback`,
|
|
195
|
+
params,
|
|
196
|
+
options
|
|
197
|
+
}),
|
|
198
|
+
createMessage: (channelId, params, options) => fetch({
|
|
199
|
+
method: "POST",
|
|
200
|
+
url: `/channels/${channelId}/messages`,
|
|
201
|
+
params,
|
|
202
|
+
options
|
|
203
|
+
}),
|
|
204
|
+
createReaction: (channelId, messageId, emoji, options) => fetch({
|
|
205
|
+
method: "PUT",
|
|
206
|
+
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
|
|
207
|
+
options
|
|
208
|
+
}),
|
|
209
|
+
createStageInstance: (params, options) => fetch({
|
|
210
|
+
method: "POST",
|
|
211
|
+
url: `/stage-instances`,
|
|
212
|
+
params,
|
|
213
|
+
options
|
|
214
|
+
}),
|
|
215
|
+
createWebhook: (channelId, params, options) => fetch({
|
|
216
|
+
method: "POST",
|
|
217
|
+
url: `/channels/${channelId}/webhooks`,
|
|
218
|
+
params,
|
|
219
|
+
options
|
|
220
|
+
}),
|
|
221
|
+
crosspostMessage: (channelId, messageId, options) => fetch({
|
|
222
|
+
method: "POST",
|
|
223
|
+
url: `/channels/${channelId}/messages/${messageId}/crosspost`,
|
|
224
|
+
options
|
|
225
|
+
}),
|
|
226
|
+
deleteAllReactions: (channelId, messageId, options) => fetch({
|
|
227
|
+
method: "DELETE",
|
|
228
|
+
url: `/channels/${channelId}/messages/${messageId}/reactions`,
|
|
229
|
+
options
|
|
230
|
+
}),
|
|
231
|
+
deleteAllReactionsForEmoji: (channelId, messageId, emoji, options) => fetch({
|
|
232
|
+
method: "DELETE",
|
|
233
|
+
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}`,
|
|
234
|
+
options
|
|
235
|
+
}),
|
|
236
|
+
deleteAutoModerationRule: (guildId, autoModerationRuleId, options) => fetch({
|
|
237
|
+
method: "DELETE",
|
|
238
|
+
url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
|
|
239
|
+
options
|
|
240
|
+
}),
|
|
241
|
+
deleteChannelPermission: (channelId, overwriteId, options) => fetch({
|
|
242
|
+
method: "DELETE",
|
|
243
|
+
url: `/channels/${channelId}/permissions/${overwriteId}`,
|
|
244
|
+
options
|
|
245
|
+
}),
|
|
246
|
+
deletecloseChannel: (channelId, options) => fetch({
|
|
247
|
+
method: "DELETE",
|
|
248
|
+
url: `/channels/${channelId}`,
|
|
249
|
+
options
|
|
250
|
+
}),
|
|
251
|
+
deleteFollowupMessage: (applicationId, interactionToken, messageId, options) => fetch({
|
|
252
|
+
method: "DELETE",
|
|
253
|
+
url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
|
|
254
|
+
options
|
|
255
|
+
}),
|
|
256
|
+
deleteGlobalApplicationCommand: (applicationId, commandId, options) => fetch({
|
|
257
|
+
method: "DELETE",
|
|
258
|
+
url: `/applications/${applicationId}/commands/${commandId}`,
|
|
259
|
+
options
|
|
260
|
+
}),
|
|
261
|
+
deleteGuild: (guildId, options) => fetch({
|
|
262
|
+
method: "DELETE",
|
|
263
|
+
url: `/guilds/${guildId}`,
|
|
264
|
+
options
|
|
265
|
+
}),
|
|
266
|
+
deleteGuildApplicationCommand: (applicationId, guildId, commandId, options) => fetch({
|
|
267
|
+
method: "DELETE",
|
|
268
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
|
|
269
|
+
options
|
|
270
|
+
}),
|
|
271
|
+
deleteGuildEmoji: (guildId, emojiId, options) => fetch({
|
|
272
|
+
method: "DELETE",
|
|
273
|
+
url: `/guilds/${guildId}/emojis/${emojiId}`,
|
|
274
|
+
options
|
|
275
|
+
}),
|
|
276
|
+
deleteGuildIntegration: (guildId, integrationId, options) => fetch({
|
|
277
|
+
method: "DELETE",
|
|
278
|
+
url: `/guilds/${guildId}/integrations/${integrationId}`,
|
|
279
|
+
options
|
|
280
|
+
}),
|
|
281
|
+
deleteGuildRole: (guildId, roleId, options) => fetch({
|
|
282
|
+
method: "DELETE",
|
|
283
|
+
url: `/guilds/${guildId}/roles/${roleId}`,
|
|
284
|
+
options
|
|
285
|
+
}),
|
|
286
|
+
deleteGuildScheduledEvent: (guildId, guildScheduledEventId, options) => fetch({
|
|
287
|
+
method: "DELETE",
|
|
288
|
+
url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
|
|
289
|
+
options
|
|
290
|
+
}),
|
|
291
|
+
deleteGuildSticker: (guildId, stickerId, options) => fetch({
|
|
292
|
+
method: "DELETE",
|
|
293
|
+
url: `/guilds/${guildId}/stickers/${stickerId}`,
|
|
294
|
+
options
|
|
295
|
+
}),
|
|
296
|
+
deleteGuildTemplate: (guildId, templateCode, options) => fetch({
|
|
297
|
+
method: "DELETE",
|
|
298
|
+
url: `/guilds/${guildId}/templates/${templateCode}`,
|
|
299
|
+
options
|
|
300
|
+
}),
|
|
301
|
+
deleteInvite: (inviteCode, options) => fetch({
|
|
302
|
+
method: "DELETE",
|
|
303
|
+
url: `/invites/${inviteCode}`,
|
|
304
|
+
options
|
|
305
|
+
}),
|
|
306
|
+
deleteMessage: (channelId, messageId, options) => fetch({
|
|
307
|
+
method: "DELETE",
|
|
308
|
+
url: `/channels/${channelId}/messages/${messageId}`,
|
|
309
|
+
options
|
|
310
|
+
}),
|
|
311
|
+
deleteOriginalInteractionResponse: (applicationId, interactionToken, options) => fetch({
|
|
312
|
+
method: "DELETE",
|
|
313
|
+
url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
|
|
314
|
+
options
|
|
315
|
+
}),
|
|
316
|
+
deleteOwnReaction: (channelId, messageId, emoji, options) => fetch({
|
|
317
|
+
method: "DELETE",
|
|
318
|
+
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/@me`,
|
|
319
|
+
options
|
|
320
|
+
}),
|
|
321
|
+
deleteStageInstance: (channelId, options) => fetch({
|
|
322
|
+
method: "DELETE",
|
|
323
|
+
url: `/stage-instances/${channelId}`,
|
|
324
|
+
options
|
|
325
|
+
}),
|
|
326
|
+
deleteUserReaction: (channelId, messageId, emoji, userId, options) => fetch({
|
|
327
|
+
method: "DELETE",
|
|
328
|
+
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}/${userId}`,
|
|
329
|
+
options
|
|
330
|
+
}),
|
|
331
|
+
deleteWebhook: (webhookId, options) => fetch({
|
|
332
|
+
method: "DELETE",
|
|
333
|
+
url: `/webhooks/${webhookId}`,
|
|
334
|
+
options
|
|
335
|
+
}),
|
|
336
|
+
deleteWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
|
|
337
|
+
method: "DELETE",
|
|
338
|
+
url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
|
|
339
|
+
params,
|
|
340
|
+
options
|
|
341
|
+
}),
|
|
342
|
+
deleteWebhookWithToken: (webhookId, webhookToken, options) => fetch({
|
|
343
|
+
method: "DELETE",
|
|
344
|
+
url: `/webhooks/${webhookId}/${webhookToken}`,
|
|
345
|
+
options
|
|
346
|
+
}),
|
|
347
|
+
editApplicationCommandPermissions: (applicationId, guildId, commandId, params, options) => fetch({
|
|
348
|
+
method: "PUT",
|
|
349
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
|
|
350
|
+
params,
|
|
351
|
+
options
|
|
352
|
+
}),
|
|
353
|
+
editChannelPermissions: (channelId, overwriteId, params, options) => fetch({
|
|
354
|
+
method: "PUT",
|
|
355
|
+
url: `/channels/${channelId}/permissions/${overwriteId}`,
|
|
356
|
+
params,
|
|
357
|
+
options
|
|
358
|
+
}),
|
|
359
|
+
editFollowupMessage: (applicationId, interactionToken, messageId, params, options) => fetch({
|
|
360
|
+
method: "PATCH",
|
|
361
|
+
url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
|
|
362
|
+
params,
|
|
363
|
+
options
|
|
364
|
+
}),
|
|
365
|
+
editGlobalApplicationCommand: (applicationId, commandId, params, options) => fetch({
|
|
366
|
+
method: "PATCH",
|
|
367
|
+
url: `/applications/${applicationId}/commands/${commandId}`,
|
|
368
|
+
params,
|
|
369
|
+
options
|
|
370
|
+
}),
|
|
371
|
+
editGuildApplicationCommand: (applicationId, guildId, commandId, params, options) => fetch({
|
|
372
|
+
method: "PATCH",
|
|
373
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
|
|
374
|
+
params,
|
|
375
|
+
options
|
|
376
|
+
}),
|
|
377
|
+
editMessage: (channelId, messageId, params, options) => fetch({
|
|
378
|
+
method: "PATCH",
|
|
379
|
+
url: `/channels/${channelId}/messages/${messageId}`,
|
|
380
|
+
params,
|
|
381
|
+
options
|
|
382
|
+
}),
|
|
383
|
+
editOriginalInteractionResponse: (applicationId, interactionToken, params, options) => fetch({
|
|
384
|
+
method: "PATCH",
|
|
385
|
+
url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
|
|
386
|
+
params,
|
|
387
|
+
options
|
|
388
|
+
}),
|
|
389
|
+
editWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
|
|
390
|
+
method: "PATCH",
|
|
391
|
+
url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
|
|
392
|
+
params,
|
|
393
|
+
options
|
|
394
|
+
}),
|
|
395
|
+
executeGitHubCompatibleWebhook: (webhookId, webhookToken, options) => fetch({
|
|
396
|
+
method: "POST",
|
|
397
|
+
url: `/webhooks/${webhookId}/${webhookToken}/github`,
|
|
398
|
+
options
|
|
399
|
+
}),
|
|
400
|
+
executeSlackCompatibleWebhook: (webhookId, webhookToken, options) => fetch({
|
|
401
|
+
method: "POST",
|
|
402
|
+
url: `/webhooks/${webhookId}/${webhookToken}/slack`,
|
|
403
|
+
options
|
|
404
|
+
}),
|
|
405
|
+
executeWebhook: (webhookId, webhookToken, params, options) => fetch({
|
|
406
|
+
method: "POST",
|
|
407
|
+
url: `/webhooks/${webhookId}/${webhookToken}`,
|
|
408
|
+
params,
|
|
409
|
+
options
|
|
410
|
+
}),
|
|
411
|
+
followAnnouncementChannel: (channelId, params, options) => fetch({
|
|
412
|
+
method: "POST",
|
|
413
|
+
url: `/channels/${channelId}/followers`,
|
|
414
|
+
params,
|
|
415
|
+
options
|
|
416
|
+
}),
|
|
417
|
+
getApplicationCommandPermissions: (applicationId, guildId, commandId, options) => fetch({
|
|
418
|
+
method: "GET",
|
|
419
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
|
|
420
|
+
options
|
|
421
|
+
}),
|
|
422
|
+
getApplicationRoleConnectionMetadataRecords: (applicationId, options) => fetch({
|
|
423
|
+
method: "GET",
|
|
424
|
+
url: `/applications/${applicationId}/role-connections/metadata`,
|
|
425
|
+
options
|
|
426
|
+
}),
|
|
427
|
+
getAutoModerationRule: (guildId, autoModerationRuleId, options) => fetch({
|
|
428
|
+
method: "GET",
|
|
429
|
+
url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
|
|
430
|
+
options
|
|
431
|
+
}),
|
|
432
|
+
getChannel: (channelId, options) => fetch({
|
|
433
|
+
method: "GET",
|
|
434
|
+
url: `/channels/${channelId}`,
|
|
435
|
+
options
|
|
436
|
+
}),
|
|
437
|
+
getChannelInvites: (channelId, options) => fetch({
|
|
438
|
+
method: "GET",
|
|
439
|
+
url: `/channels/${channelId}/invites`,
|
|
440
|
+
options
|
|
441
|
+
}),
|
|
442
|
+
getChannelMessage: (channelId, messageId, options) => fetch({
|
|
443
|
+
method: "GET",
|
|
444
|
+
url: `/channels/${channelId}/messages/${messageId}`,
|
|
445
|
+
options
|
|
446
|
+
}),
|
|
447
|
+
getChannelMessages: (channelId, params, options) => fetch({
|
|
448
|
+
method: "GET",
|
|
449
|
+
url: `/channels/${channelId}/messages`,
|
|
450
|
+
params,
|
|
451
|
+
options
|
|
452
|
+
}),
|
|
453
|
+
getChannelWebhooks: (channelId, options) => fetch({
|
|
454
|
+
method: "GET",
|
|
455
|
+
url: `/channels/${channelId}/webhooks`,
|
|
456
|
+
options
|
|
457
|
+
}),
|
|
458
|
+
getCurrentAuthorizationInformation: options => fetch({
|
|
459
|
+
method: "GET",
|
|
460
|
+
url: `/oauth2/@me`,
|
|
461
|
+
options
|
|
462
|
+
}),
|
|
463
|
+
getCurrentBotApplicationInformation: options => fetch({
|
|
464
|
+
method: "GET",
|
|
465
|
+
url: `/oauth2/applications/@me`,
|
|
466
|
+
options
|
|
467
|
+
}),
|
|
468
|
+
getCurrentUser: options => fetch({
|
|
469
|
+
method: "GET",
|
|
470
|
+
url: `/users/@me`,
|
|
471
|
+
options
|
|
472
|
+
}),
|
|
473
|
+
getCurrentUserGuildMember: (guildId, options) => fetch({
|
|
474
|
+
method: "GET",
|
|
475
|
+
url: `/users/@me/guilds/${guildId}/member`,
|
|
476
|
+
options
|
|
477
|
+
}),
|
|
478
|
+
getCurrentUserGuilds: (params, options) => fetch({
|
|
479
|
+
method: "GET",
|
|
480
|
+
url: `/users/@me/guilds`,
|
|
481
|
+
params,
|
|
482
|
+
options
|
|
483
|
+
}),
|
|
484
|
+
getFollowupMessage: (applicationId, interactionToken, messageId, params, options) => fetch({
|
|
485
|
+
method: "GET",
|
|
486
|
+
url: `/webhooks/${applicationId}/${interactionToken}/messages/${messageId}`,
|
|
487
|
+
params,
|
|
488
|
+
options
|
|
489
|
+
}),
|
|
490
|
+
getGateway: options => fetch({
|
|
491
|
+
method: "GET",
|
|
492
|
+
url: `/gateway`,
|
|
493
|
+
options
|
|
494
|
+
}),
|
|
495
|
+
getGatewayBot: options => fetch({
|
|
496
|
+
method: "GET",
|
|
497
|
+
url: `/gateway/bot`,
|
|
498
|
+
options
|
|
499
|
+
}),
|
|
500
|
+
getGlobalApplicationCommand: (applicationId, commandId, options) => fetch({
|
|
501
|
+
method: "GET",
|
|
502
|
+
url: `/applications/${applicationId}/commands/${commandId}`,
|
|
503
|
+
options
|
|
504
|
+
}),
|
|
505
|
+
getGlobalApplicationCommands: (applicationId, params, options) => fetch({
|
|
506
|
+
method: "GET",
|
|
507
|
+
url: `/applications/${applicationId}/commands`,
|
|
508
|
+
params,
|
|
509
|
+
options
|
|
510
|
+
}),
|
|
511
|
+
getGuild: (guildId, params, options) => fetch({
|
|
512
|
+
method: "GET",
|
|
513
|
+
url: `/guilds/${guildId}`,
|
|
514
|
+
params,
|
|
515
|
+
options
|
|
516
|
+
}),
|
|
517
|
+
getGuildApplicationCommand: (applicationId, guildId, commandId, options) => fetch({
|
|
518
|
+
method: "GET",
|
|
519
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}`,
|
|
520
|
+
options
|
|
521
|
+
}),
|
|
522
|
+
getGuildApplicationCommandPermissions: (applicationId, guildId, options) => fetch({
|
|
523
|
+
method: "GET",
|
|
524
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
|
|
525
|
+
options
|
|
526
|
+
}),
|
|
527
|
+
getGuildApplicationCommands: (applicationId, guildId, params, options) => fetch({
|
|
528
|
+
method: "GET",
|
|
529
|
+
url: `/applications/${applicationId}/guilds/${guildId}/commands`,
|
|
530
|
+
params,
|
|
531
|
+
options
|
|
532
|
+
}),
|
|
533
|
+
getGuildAuditLog: (guildId, params, options) => fetch({
|
|
534
|
+
method: "GET",
|
|
535
|
+
url: `/guilds/${guildId}/audit-logs`,
|
|
536
|
+
params,
|
|
537
|
+
options
|
|
538
|
+
}),
|
|
539
|
+
getGuildBan: (guildId, userId, options) => fetch({
|
|
540
|
+
method: "GET",
|
|
541
|
+
url: `/guilds/${guildId}/bans/${userId}`,
|
|
542
|
+
options
|
|
543
|
+
}),
|
|
544
|
+
getGuildBans: (guildId, params, options) => fetch({
|
|
545
|
+
method: "GET",
|
|
546
|
+
url: `/guilds/${guildId}/bans`,
|
|
547
|
+
params,
|
|
548
|
+
options
|
|
549
|
+
}),
|
|
550
|
+
getGuildChannels: (guildId, options) => fetch({
|
|
551
|
+
method: "GET",
|
|
552
|
+
url: `/guilds/${guildId}/channels`,
|
|
553
|
+
options
|
|
554
|
+
}),
|
|
555
|
+
getGuildEmoji: (guildId, emojiId, options) => fetch({
|
|
556
|
+
method: "GET",
|
|
557
|
+
url: `/guilds/${guildId}/emojis/${emojiId}`,
|
|
558
|
+
options
|
|
559
|
+
}),
|
|
560
|
+
getGuildIntegrations: (guildId, options) => fetch({
|
|
561
|
+
method: "GET",
|
|
562
|
+
url: `/guilds/${guildId}/integrations`,
|
|
563
|
+
options
|
|
564
|
+
}),
|
|
565
|
+
getGuildInvites: (guildId, options) => fetch({
|
|
566
|
+
method: "GET",
|
|
567
|
+
url: `/guilds/${guildId}/invites`,
|
|
568
|
+
options
|
|
569
|
+
}),
|
|
570
|
+
getGuildMember: (guildId, userId, options) => fetch({
|
|
571
|
+
method: "GET",
|
|
572
|
+
url: `/guilds/${guildId}/members/${userId}`,
|
|
573
|
+
options
|
|
574
|
+
}),
|
|
575
|
+
getGuildOnboarding: (guildId, options) => fetch({
|
|
576
|
+
method: "GET",
|
|
577
|
+
url: `/guilds/${guildId}/onboarding`,
|
|
578
|
+
options
|
|
579
|
+
}),
|
|
580
|
+
getGuildPreview: (guildId, options) => fetch({
|
|
581
|
+
method: "GET",
|
|
582
|
+
url: `/guilds/${guildId}/preview`,
|
|
583
|
+
options
|
|
584
|
+
}),
|
|
585
|
+
getGuildPruneCount: (guildId, params, options) => fetch({
|
|
586
|
+
method: "GET",
|
|
587
|
+
url: `/guilds/${guildId}/prune`,
|
|
588
|
+
params,
|
|
589
|
+
options
|
|
590
|
+
}),
|
|
591
|
+
getGuildRoles: (guildId, options) => fetch({
|
|
592
|
+
method: "GET",
|
|
593
|
+
url: `/guilds/${guildId}/roles`,
|
|
594
|
+
options
|
|
595
|
+
}),
|
|
596
|
+
getGuildScheduledEvent: (guildId, guildScheduledEventId, params, options) => fetch({
|
|
597
|
+
method: "GET",
|
|
598
|
+
url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
|
|
599
|
+
params,
|
|
600
|
+
options
|
|
601
|
+
}),
|
|
602
|
+
getGuildScheduledEventUsers: (guildId, guildScheduledEventId, params, options) => fetch({
|
|
603
|
+
method: "GET",
|
|
604
|
+
url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}/users`,
|
|
605
|
+
params,
|
|
606
|
+
options
|
|
607
|
+
}),
|
|
608
|
+
getGuildSticker: (guildId, stickerId, options) => fetch({
|
|
609
|
+
method: "GET",
|
|
610
|
+
url: `/guilds/${guildId}/stickers/${stickerId}`,
|
|
611
|
+
options
|
|
612
|
+
}),
|
|
613
|
+
getGuildTemplate: (templateCode, options) => fetch({
|
|
614
|
+
method: "GET",
|
|
615
|
+
url: `/guilds/templates/${templateCode}`,
|
|
616
|
+
options
|
|
617
|
+
}),
|
|
618
|
+
getGuildTemplates: (guildId, options) => fetch({
|
|
619
|
+
method: "GET",
|
|
620
|
+
url: `/guilds/${guildId}/templates`,
|
|
621
|
+
options
|
|
622
|
+
}),
|
|
623
|
+
getGuildVanityUrl: (guildId, options) => fetch({
|
|
624
|
+
method: "GET",
|
|
625
|
+
url: `/guilds/${guildId}/vanity-url`,
|
|
626
|
+
options
|
|
627
|
+
}),
|
|
628
|
+
getGuildVoiceRegions: (guildId, options) => fetch({
|
|
629
|
+
method: "GET",
|
|
630
|
+
url: `/guilds/${guildId}/regions`,
|
|
631
|
+
options
|
|
632
|
+
}),
|
|
633
|
+
getGuildWebhooks: (guildId, options) => fetch({
|
|
634
|
+
method: "GET",
|
|
635
|
+
url: `/guilds/${guildId}/webhooks`,
|
|
636
|
+
options
|
|
637
|
+
}),
|
|
638
|
+
getGuildWelcomeScreen: (guildId, options) => fetch({
|
|
639
|
+
method: "GET",
|
|
640
|
+
url: `/guilds/${guildId}/welcome-screen`,
|
|
641
|
+
options
|
|
642
|
+
}),
|
|
643
|
+
getGuildWidget: (guildId, options) => fetch({
|
|
644
|
+
method: "GET",
|
|
645
|
+
url: `/guilds/${guildId}/widget.json`,
|
|
646
|
+
options
|
|
647
|
+
}),
|
|
648
|
+
getGuildWidgetImage: (guildId, params, options) => fetch({
|
|
649
|
+
method: "GET",
|
|
650
|
+
url: `/guilds/${guildId}/widget.png`,
|
|
651
|
+
params,
|
|
652
|
+
options
|
|
653
|
+
}),
|
|
654
|
+
getGuildWidgetSettings: (guildId, options) => fetch({
|
|
655
|
+
method: "GET",
|
|
656
|
+
url: `/guilds/${guildId}/widget`,
|
|
657
|
+
options
|
|
658
|
+
}),
|
|
659
|
+
getInvite: (inviteCode, params, options) => fetch({
|
|
660
|
+
method: "GET",
|
|
661
|
+
url: `/invites/${inviteCode}`,
|
|
662
|
+
params,
|
|
663
|
+
options
|
|
664
|
+
}),
|
|
665
|
+
getOriginalInteractionResponse: (applicationId, interactionToken, params, options) => fetch({
|
|
666
|
+
method: "GET",
|
|
667
|
+
url: `/webhooks/${applicationId}/${interactionToken}/messages/@original`,
|
|
668
|
+
params,
|
|
669
|
+
options
|
|
670
|
+
}),
|
|
671
|
+
getPinnedMessages: (channelId, options) => fetch({
|
|
672
|
+
method: "GET",
|
|
673
|
+
url: `/channels/${channelId}/pins`,
|
|
674
|
+
options
|
|
675
|
+
}),
|
|
676
|
+
getReactions: (channelId, messageId, emoji, params, options) => fetch({
|
|
677
|
+
method: "GET",
|
|
678
|
+
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}`,
|
|
679
|
+
params,
|
|
680
|
+
options
|
|
681
|
+
}),
|
|
682
|
+
getStageInstance: (channelId, options) => fetch({
|
|
683
|
+
method: "GET",
|
|
684
|
+
url: `/stage-instances/${channelId}`,
|
|
685
|
+
options
|
|
686
|
+
}),
|
|
687
|
+
getSticker: (stickerId, options) => fetch({
|
|
688
|
+
method: "GET",
|
|
689
|
+
url: `/stickers/${stickerId}`,
|
|
690
|
+
options
|
|
691
|
+
}),
|
|
692
|
+
getThreadMember: (channelId, userId, params, options) => fetch({
|
|
693
|
+
method: "GET",
|
|
694
|
+
url: `/channels/${channelId}/thread-members/${userId}`,
|
|
695
|
+
params,
|
|
696
|
+
options
|
|
697
|
+
}),
|
|
698
|
+
getUser: (userId, options) => fetch({
|
|
699
|
+
method: "GET",
|
|
700
|
+
url: `/users/${userId}`,
|
|
701
|
+
options
|
|
702
|
+
}),
|
|
703
|
+
getUserApplicationRoleConnection: (applicationId, options) => fetch({
|
|
704
|
+
method: "GET",
|
|
705
|
+
url: `/users/@me/applications/${applicationId}/role-connection`,
|
|
706
|
+
options
|
|
707
|
+
}),
|
|
708
|
+
getUserConnections: options => fetch({
|
|
709
|
+
method: "GET",
|
|
710
|
+
url: `/users/@me/connections`,
|
|
711
|
+
options
|
|
712
|
+
}),
|
|
713
|
+
getWebhook: (webhookId, options) => fetch({
|
|
714
|
+
method: "GET",
|
|
715
|
+
url: `/webhooks/${webhookId}`,
|
|
716
|
+
options
|
|
717
|
+
}),
|
|
718
|
+
getWebhookMessage: (webhookId, webhookToken, messageId, params, options) => fetch({
|
|
719
|
+
method: "GET",
|
|
720
|
+
url: `/webhooks/${webhookId}/${webhookToken}/messages/${messageId}`,
|
|
721
|
+
params,
|
|
722
|
+
options
|
|
723
|
+
}),
|
|
724
|
+
getWebhookWithToken: (webhookId, webhookToken, options) => fetch({
|
|
725
|
+
method: "GET",
|
|
726
|
+
url: `/webhooks/${webhookId}/${webhookToken}`,
|
|
727
|
+
options
|
|
728
|
+
}),
|
|
729
|
+
groupDmAddRecipient: (channelId, userId, params, options) => fetch({
|
|
730
|
+
method: "PUT",
|
|
731
|
+
url: `/channels/${channelId}/recipients/${userId}`,
|
|
732
|
+
params,
|
|
733
|
+
options
|
|
734
|
+
}),
|
|
735
|
+
groupDmRemoveRecipient: (channelId, userId, options) => fetch({
|
|
736
|
+
method: "DELETE",
|
|
737
|
+
url: `/channels/${channelId}/recipients/${userId}`,
|
|
738
|
+
options
|
|
739
|
+
}),
|
|
740
|
+
joinThread: (channelId, options) => fetch({
|
|
741
|
+
method: "PUT",
|
|
742
|
+
url: `/channels/${channelId}/thread-members/@me`,
|
|
743
|
+
options
|
|
744
|
+
}),
|
|
745
|
+
leaveGuild: (guildId, options) => fetch({
|
|
746
|
+
method: "DELETE",
|
|
747
|
+
url: `/users/@me/guilds/${guildId}`,
|
|
748
|
+
options
|
|
749
|
+
}),
|
|
750
|
+
leaveThread: (channelId, options) => fetch({
|
|
751
|
+
method: "DELETE",
|
|
752
|
+
url: `/channels/${channelId}/thread-members/@me`,
|
|
753
|
+
options
|
|
754
|
+
}),
|
|
755
|
+
listActiveGuildThreads: (guildId, options) => fetch({
|
|
756
|
+
method: "GET",
|
|
757
|
+
url: `/guilds/${guildId}/threads/active`,
|
|
758
|
+
options
|
|
759
|
+
}),
|
|
760
|
+
listAutoModerationRulesForGuild: (guildId, options) => fetch({
|
|
761
|
+
method: "GET",
|
|
762
|
+
url: `/guilds/${guildId}/auto-moderation/rules`,
|
|
763
|
+
options
|
|
764
|
+
}),
|
|
765
|
+
listGuildEmojis: (guildId, options) => fetch({
|
|
766
|
+
method: "GET",
|
|
767
|
+
url: `/guilds/${guildId}/emojis`,
|
|
768
|
+
options
|
|
769
|
+
}),
|
|
770
|
+
listGuildMembers: (guildId, params, options) => fetch({
|
|
771
|
+
method: "GET",
|
|
772
|
+
url: `/guilds/${guildId}/members`,
|
|
773
|
+
params,
|
|
774
|
+
options
|
|
775
|
+
}),
|
|
776
|
+
listGuildStickers: (guildId, options) => fetch({
|
|
777
|
+
method: "GET",
|
|
778
|
+
url: `/guilds/${guildId}/stickers`,
|
|
779
|
+
options
|
|
780
|
+
}),
|
|
781
|
+
listJoinedPrivateArchivedThreads: (channelId, params, options) => fetch({
|
|
782
|
+
method: "GET",
|
|
783
|
+
url: `/channels/${channelId}/users/@me/threads/archived/private`,
|
|
784
|
+
params,
|
|
785
|
+
options
|
|
786
|
+
}),
|
|
787
|
+
listNitroStickerPacks: options => fetch({
|
|
788
|
+
method: "GET",
|
|
789
|
+
url: `/sticker-packs`,
|
|
790
|
+
options
|
|
791
|
+
}),
|
|
792
|
+
listPrivateArchivedThreads: (channelId, params, options) => fetch({
|
|
793
|
+
method: "GET",
|
|
794
|
+
url: `/channels/${channelId}/threads/archived/private`,
|
|
795
|
+
params,
|
|
796
|
+
options
|
|
797
|
+
}),
|
|
798
|
+
listPublicArchivedThreads: (channelId, params, options) => fetch({
|
|
799
|
+
method: "GET",
|
|
800
|
+
url: `/channels/${channelId}/threads/archived/public`,
|
|
801
|
+
params,
|
|
802
|
+
options
|
|
803
|
+
}),
|
|
804
|
+
listScheduledEventsForGuild: (guildId, params, options) => fetch({
|
|
805
|
+
method: "GET",
|
|
806
|
+
url: `/guilds/${guildId}/scheduled-events`,
|
|
807
|
+
params,
|
|
808
|
+
options
|
|
809
|
+
}),
|
|
810
|
+
listThreadMembers: (channelId, params, options) => fetch({
|
|
811
|
+
method: "GET",
|
|
812
|
+
url: `/channels/${channelId}/thread-members`,
|
|
813
|
+
params,
|
|
814
|
+
options
|
|
815
|
+
}),
|
|
816
|
+
listVoiceRegions: options => fetch({
|
|
817
|
+
method: "GET",
|
|
818
|
+
url: `/voice/regions`,
|
|
819
|
+
options
|
|
820
|
+
}),
|
|
821
|
+
modifyAutoModerationRule: (guildId, autoModerationRuleId, params, options) => fetch({
|
|
822
|
+
method: "PATCH",
|
|
823
|
+
url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
|
|
824
|
+
params,
|
|
825
|
+
options
|
|
826
|
+
}),
|
|
827
|
+
modifyChannel: (channelId, params, options) => fetch({
|
|
828
|
+
method: "PATCH",
|
|
829
|
+
url: `/channels/${channelId}`,
|
|
830
|
+
params,
|
|
831
|
+
options
|
|
832
|
+
}),
|
|
833
|
+
modifyCurrentMember: (guildId, params, options) => fetch({
|
|
834
|
+
method: "PATCH",
|
|
835
|
+
url: `/guilds/${guildId}/members/@me`,
|
|
836
|
+
params,
|
|
837
|
+
options
|
|
838
|
+
}),
|
|
839
|
+
modifyCurrentUser: (params, options) => fetch({
|
|
840
|
+
method: "PATCH",
|
|
841
|
+
url: `/users/@me`,
|
|
842
|
+
params,
|
|
843
|
+
options
|
|
844
|
+
}),
|
|
845
|
+
modifyCurrentUserNick: (guildId, params, options) => fetch({
|
|
846
|
+
method: "PATCH",
|
|
847
|
+
url: `/guilds/${guildId}/members/@me/nick`,
|
|
848
|
+
params,
|
|
849
|
+
options
|
|
850
|
+
}),
|
|
851
|
+
modifyCurrentUserVoiceState: (guildId, params, options) => fetch({
|
|
852
|
+
method: "PATCH",
|
|
853
|
+
url: `/guilds/${guildId}/voice-states/@me`,
|
|
854
|
+
params,
|
|
855
|
+
options
|
|
856
|
+
}),
|
|
857
|
+
modifyGuild: (guildId, params, options) => fetch({
|
|
858
|
+
method: "PATCH",
|
|
859
|
+
url: `/guilds/${guildId}`,
|
|
860
|
+
params,
|
|
861
|
+
options
|
|
862
|
+
}),
|
|
863
|
+
modifyGuildChannelPositions: (guildId, params, options) => fetch({
|
|
864
|
+
method: "PATCH",
|
|
865
|
+
url: `/guilds/${guildId}/channels`,
|
|
866
|
+
params,
|
|
867
|
+
options
|
|
868
|
+
}),
|
|
869
|
+
modifyGuildEmoji: (guildId, emojiId, params, options) => fetch({
|
|
870
|
+
method: "PATCH",
|
|
871
|
+
url: `/guilds/${guildId}/emojis/${emojiId}`,
|
|
872
|
+
params,
|
|
873
|
+
options
|
|
874
|
+
}),
|
|
875
|
+
modifyGuildMember: (guildId, userId, params, options) => fetch({
|
|
876
|
+
method: "PATCH",
|
|
877
|
+
url: `/guilds/${guildId}/members/${userId}`,
|
|
878
|
+
params,
|
|
879
|
+
options
|
|
880
|
+
}),
|
|
881
|
+
modifyGuildMfaLevel: (guildId, params, options) => fetch({
|
|
882
|
+
method: "POST",
|
|
883
|
+
url: `/guilds/${guildId}/mfa`,
|
|
884
|
+
params,
|
|
885
|
+
options
|
|
886
|
+
}),
|
|
887
|
+
modifyGuildRole: (guildId, roleId, params, options) => fetch({
|
|
888
|
+
method: "PATCH",
|
|
889
|
+
url: `/guilds/${guildId}/roles/${roleId}`,
|
|
890
|
+
params,
|
|
891
|
+
options
|
|
892
|
+
}),
|
|
893
|
+
modifyGuildRolePositions: (guildId, params, options) => fetch({
|
|
894
|
+
method: "PATCH",
|
|
895
|
+
url: `/guilds/${guildId}/roles`,
|
|
896
|
+
params,
|
|
897
|
+
options
|
|
898
|
+
}),
|
|
899
|
+
modifyGuildScheduledEvent: (guildId, guildScheduledEventId, params, options) => fetch({
|
|
900
|
+
method: "PATCH",
|
|
901
|
+
url: `/guilds/${guildId}/scheduled-events/${guildScheduledEventId}`,
|
|
902
|
+
params,
|
|
903
|
+
options
|
|
904
|
+
}),
|
|
905
|
+
modifyGuildSticker: (guildId, stickerId, params, options) => fetch({
|
|
906
|
+
method: "PATCH",
|
|
907
|
+
url: `/guilds/${guildId}/stickers/${stickerId}`,
|
|
908
|
+
params,
|
|
909
|
+
options
|
|
910
|
+
}),
|
|
911
|
+
modifyGuildTemplate: (guildId, templateCode, params, options) => fetch({
|
|
912
|
+
method: "PATCH",
|
|
913
|
+
url: `/guilds/${guildId}/templates/${templateCode}`,
|
|
914
|
+
params,
|
|
915
|
+
options
|
|
916
|
+
}),
|
|
917
|
+
modifyGuildWelcomeScreen: (guildId, params, options) => fetch({
|
|
918
|
+
method: "PATCH",
|
|
919
|
+
url: `/guilds/${guildId}/welcome-screen`,
|
|
920
|
+
params,
|
|
921
|
+
options
|
|
922
|
+
}),
|
|
923
|
+
modifyGuildWidget: (guildId, options) => fetch({
|
|
924
|
+
method: "PATCH",
|
|
925
|
+
url: `/guilds/${guildId}/widget`,
|
|
926
|
+
options
|
|
927
|
+
}),
|
|
928
|
+
modifyStageInstance: (channelId, params, options) => fetch({
|
|
929
|
+
method: "PATCH",
|
|
930
|
+
url: `/stage-instances/${channelId}`,
|
|
931
|
+
params,
|
|
932
|
+
options
|
|
933
|
+
}),
|
|
934
|
+
modifyUserVoiceState: (guildId, userId, params, options) => fetch({
|
|
935
|
+
method: "PATCH",
|
|
936
|
+
url: `/guilds/${guildId}/voice-states/${userId}`,
|
|
937
|
+
params,
|
|
938
|
+
options
|
|
939
|
+
}),
|
|
940
|
+
modifyWebhook: (webhookId, params, options) => fetch({
|
|
941
|
+
method: "PATCH",
|
|
942
|
+
url: `/webhooks/${webhookId}`,
|
|
943
|
+
params,
|
|
944
|
+
options
|
|
945
|
+
}),
|
|
946
|
+
modifyWebhookWithToken: (webhookId, webhookToken, options) => fetch({
|
|
947
|
+
method: "PATCH",
|
|
948
|
+
url: `/webhooks/${webhookId}/${webhookToken}`,
|
|
949
|
+
options
|
|
950
|
+
}),
|
|
951
|
+
pinMessage: (channelId, messageId, options) => fetch({
|
|
952
|
+
method: "PUT",
|
|
953
|
+
url: `/channels/${channelId}/pins/${messageId}`,
|
|
954
|
+
options
|
|
955
|
+
}),
|
|
956
|
+
removeGuildBan: (guildId, userId, options) => fetch({
|
|
957
|
+
method: "DELETE",
|
|
958
|
+
url: `/guilds/${guildId}/bans/${userId}`,
|
|
959
|
+
options
|
|
960
|
+
}),
|
|
961
|
+
removeGuildMember: (guildId, userId, options) => fetch({
|
|
962
|
+
method: "DELETE",
|
|
963
|
+
url: `/guilds/${guildId}/members/${userId}`,
|
|
964
|
+
options
|
|
965
|
+
}),
|
|
966
|
+
removeGuildMemberRole: (guildId, userId, roleId, options) => fetch({
|
|
967
|
+
method: "DELETE",
|
|
968
|
+
url: `/guilds/${guildId}/members/${userId}/roles/${roleId}`,
|
|
969
|
+
options
|
|
970
|
+
}),
|
|
971
|
+
removeThreadMember: (channelId, userId, options) => fetch({
|
|
972
|
+
method: "DELETE",
|
|
973
|
+
url: `/channels/${channelId}/thread-members/${userId}`,
|
|
974
|
+
options
|
|
975
|
+
}),
|
|
976
|
+
searchGuildMembers: (guildId, params, options) => fetch({
|
|
977
|
+
method: "GET",
|
|
978
|
+
url: `/guilds/${guildId}/members/search`,
|
|
979
|
+
params,
|
|
980
|
+
options
|
|
981
|
+
}),
|
|
982
|
+
startThreadFromMessage: (channelId, messageId, params, options) => fetch({
|
|
983
|
+
method: "POST",
|
|
984
|
+
url: `/channels/${channelId}/messages/${messageId}/threads`,
|
|
985
|
+
params,
|
|
986
|
+
options
|
|
987
|
+
}),
|
|
988
|
+
startThreadInForumChannel: (channelId, params, options) => fetch({
|
|
989
|
+
method: "POST",
|
|
990
|
+
url: `/channels/${channelId}/threads`,
|
|
991
|
+
params,
|
|
992
|
+
options
|
|
993
|
+
}),
|
|
994
|
+
startThreadWithoutMessage: (channelId, params, options) => fetch({
|
|
995
|
+
method: "POST",
|
|
996
|
+
url: `/channels/${channelId}/threads`,
|
|
997
|
+
params,
|
|
998
|
+
options
|
|
999
|
+
}),
|
|
1000
|
+
syncGuildTemplate: (guildId, templateCode, options) => fetch({
|
|
1001
|
+
method: "PUT",
|
|
1002
|
+
url: `/guilds/${guildId}/templates/${templateCode}`,
|
|
1003
|
+
options
|
|
1004
|
+
}),
|
|
1005
|
+
triggerTypingIndicator: (channelId, options) => fetch({
|
|
1006
|
+
method: "POST",
|
|
1007
|
+
url: `/channels/${channelId}/typing`,
|
|
1008
|
+
options
|
|
1009
|
+
}),
|
|
1010
|
+
unpinMessage: (channelId, messageId, options) => fetch({
|
|
1011
|
+
method: "DELETE",
|
|
1012
|
+
url: `/channels/${channelId}/pins/${messageId}`,
|
|
1013
|
+
options
|
|
1014
|
+
}),
|
|
1015
|
+
updateApplicationRoleConnectionMetadataRecords: (applicationId, options) => fetch({
|
|
1016
|
+
method: "PUT",
|
|
1017
|
+
url: `/applications/${applicationId}/role-connections/metadata`,
|
|
1018
|
+
options
|
|
1019
|
+
}),
|
|
1020
|
+
updateUserApplicationRoleConnection: (applicationId, params, options) => fetch({
|
|
1021
|
+
method: "PUT",
|
|
1022
|
+
url: `/users/@me/applications/${applicationId}/role-connection`,
|
|
1023
|
+
params,
|
|
1024
|
+
options
|
|
1025
|
+
})
|
|
1026
|
+
};
|
|
1017
1027
|
}
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1028
|
+
const GatewayIntents = {
|
|
1029
|
+
GUILDS: 1 << 0,
|
|
1030
|
+
GUILD_MEMBERS: 1 << 1,
|
|
1031
|
+
GUILD_MODERATION: 1 << 2,
|
|
1032
|
+
GUILD_EMOJIS_AND_STICKERS: 1 << 3,
|
|
1033
|
+
GUILD_INTEGRATIONS: 1 << 4,
|
|
1034
|
+
GUILD_WEBHOOKS: 1 << 5,
|
|
1035
|
+
GUILD_INVITES: 1 << 6,
|
|
1036
|
+
GUILD_VOICE_STATES: 1 << 7,
|
|
1037
|
+
GUILD_PRESENCES: 1 << 8,
|
|
1038
|
+
GUILD_MESSAGES: 1 << 9,
|
|
1039
|
+
GUILD_MESSAGE_REACTIONS: 1 << 10,
|
|
1040
|
+
GUILD_MESSAGE_TYPING: 1 << 11,
|
|
1041
|
+
DIRECT_MESSAGES: 1 << 12,
|
|
1042
|
+
DIRECT_MESSAGE_REACTIONS: 1 << 13,
|
|
1043
|
+
DIRECT_MESSAGE_TYPING: 1 << 14,
|
|
1044
|
+
MESSAGE_CONTENT: 1 << 15,
|
|
1045
|
+
GUILD_SCHEDULED_EVENTS: 1 << 16,
|
|
1046
|
+
AUTO_MODERATION_CONFIGURATION: 1 << 20,
|
|
1047
|
+
AUTO_MODERATION_EXECUTION: 1 << 21
|
|
1038
1048
|
};
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1049
|
+
exports.GatewayIntents = GatewayIntents;
|
|
1050
|
+
const GuildMemberFlag = {
|
|
1051
|
+
/** Member has left and rejoined the guild */
|
|
1052
|
+
DID_REJOIN: 1 << 0,
|
|
1053
|
+
/** Member has completed onboarding */
|
|
1054
|
+
COMPLETED_ONBOARDING: 1 << 1,
|
|
1055
|
+
/** Member is exempt from guild verification requirements */
|
|
1056
|
+
BYPASSES_VERIFICATION: 1 << 2,
|
|
1057
|
+
/** Member has started onboarding */
|
|
1058
|
+
STARTED_ONBOARDING: 1 << 3
|
|
1048
1059
|
};
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1060
|
+
exports.GuildMemberFlag = GuildMemberFlag;
|
|
1061
|
+
const MessageFlag = {
|
|
1062
|
+
/** this message has been published to subscribed channels (via Channel Following) */
|
|
1063
|
+
CROSSPOSTED: 1 << 0,
|
|
1064
|
+
/** this message originated from a message in another channel (via Channel Following) */
|
|
1065
|
+
IS_CROSSPOST: 1 << 1,
|
|
1066
|
+
/** do not include any embeds when serializing this message */
|
|
1067
|
+
SUPPRESS_EMBEDS: 1 << 2,
|
|
1068
|
+
/** the source message for this crosspost has been deleted (via Channel Following) */
|
|
1069
|
+
SOURCE_MESSAGE_DELETED: 1 << 3,
|
|
1070
|
+
/** this message came from the urgent message system */
|
|
1071
|
+
URGENT: 1 << 4,
|
|
1072
|
+
/** this message has an associated thread, with the same id as the message */
|
|
1073
|
+
HAS_THREAD: 1 << 5,
|
|
1074
|
+
/** this message is only visible to the user who invoked the Interaction */
|
|
1075
|
+
EPHEMERAL: 1 << 6,
|
|
1076
|
+
/** this message is an Interaction Response and the bot is "thinking" */
|
|
1077
|
+
LOADING: 1 << 7,
|
|
1078
|
+
/** this message failed to mention some roles and add their members to the thread */
|
|
1079
|
+
FAILED_TO_MENTION_SOME_ROLES_IN_THREAD: 1 << 8,
|
|
1080
|
+
/** this message will not trigger push and desktop notifications */
|
|
1081
|
+
SUPPRESS_NOTIFICATIONS: 1 << 12,
|
|
1082
|
+
/** this message is a voice message */
|
|
1083
|
+
IS_VOICE_MESSAGE: 1 << 13
|
|
1072
1084
|
};
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1085
|
+
exports.MessageFlag = MessageFlag;
|
|
1086
|
+
const PermissionFlag = {
|
|
1087
|
+
/** Allows creation of instant invites */
|
|
1088
|
+
CREATE_INSTANT_INVITE: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(0),
|
|
1089
|
+
/** Allows kicking members */
|
|
1090
|
+
KICK_MEMBERS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(1),
|
|
1091
|
+
/** Allows banning members */
|
|
1092
|
+
BAN_MEMBERS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(2),
|
|
1093
|
+
/** Allows all permissions and bypasses channel permission overwrites */
|
|
1094
|
+
ADMINISTRATOR: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(3),
|
|
1095
|
+
/** Allows management and editing of channels */
|
|
1096
|
+
MANAGE_CHANNELS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(4),
|
|
1097
|
+
/** Allows management and editing of the guild */
|
|
1098
|
+
MANAGE_GUILD: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(5),
|
|
1099
|
+
/** Allows for the addition of reactions to messages */
|
|
1100
|
+
ADD_REACTIONS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(6),
|
|
1101
|
+
/** Allows for viewing of audit logs */
|
|
1102
|
+
VIEW_AUDIT_LOG: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(7),
|
|
1103
|
+
/** Allows for using priority speaker in a voice channel */
|
|
1104
|
+
PRIORITY_SPEAKER: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(8),
|
|
1105
|
+
/** Allows the user to go live */
|
|
1106
|
+
STREAM: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(9),
|
|
1107
|
+
/** Allows guild members to view a channel, which includes reading messages in text channels and joining voice channels */
|
|
1108
|
+
VIEW_CHANNEL: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(10),
|
|
1109
|
+
/** Allows for sending messages in a channel and creating threads in a forum (does not allow sending messages in threads) */
|
|
1110
|
+
SEND_MESSAGES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(11),
|
|
1111
|
+
/** Allows for sending of /tts messages */
|
|
1112
|
+
SEND_TTS_MESSAGES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(12),
|
|
1113
|
+
/** Allows for deletion of other users messages */
|
|
1114
|
+
MANAGE_MESSAGES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(13),
|
|
1115
|
+
/** Links sent by users with this permission will be auto-embedded */
|
|
1116
|
+
EMBED_LINKS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(14),
|
|
1117
|
+
/** Allows for uploading images and files */
|
|
1118
|
+
ATTACH_FILES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(15),
|
|
1119
|
+
/** Allows for reading of message history */
|
|
1120
|
+
READ_MESSAGE_HISTORY: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(16),
|
|
1121
|
+
/** 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 */
|
|
1122
|
+
MENTION_EVERYONE: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(17),
|
|
1123
|
+
/** Allows the usage of custom emojis from other servers */
|
|
1124
|
+
USE_EXTERNAL_EMOJIS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(18),
|
|
1125
|
+
/** Allows for viewing guild insights */
|
|
1126
|
+
VIEW_GUILD_INSIGHTS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(19),
|
|
1127
|
+
/** Allows for joining of a voice channel */
|
|
1128
|
+
CONNECT: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(20),
|
|
1129
|
+
/** Allows for speaking in a voice channel */
|
|
1130
|
+
SPEAK: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(21),
|
|
1131
|
+
/** Allows for muting members in a voice channel */
|
|
1132
|
+
MUTE_MEMBERS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(22),
|
|
1133
|
+
/** Allows for deafening of members in a voice channel */
|
|
1134
|
+
DEAFEN_MEMBERS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(23),
|
|
1135
|
+
/** Allows for moving of members between voice channels */
|
|
1136
|
+
MOVE_MEMBERS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(24),
|
|
1137
|
+
/** Allows for using voice-activity-detection in a voice channel */
|
|
1138
|
+
USE_VAD: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(25),
|
|
1139
|
+
/** Allows for modification of own nickname */
|
|
1140
|
+
CHANGE_NICKNAME: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(26),
|
|
1141
|
+
/** Allows for modification of other users nicknames */
|
|
1142
|
+
MANAGE_NICKNAMES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(27),
|
|
1143
|
+
/** Allows management and editing of roles */
|
|
1144
|
+
MANAGE_ROLES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(28),
|
|
1145
|
+
/** Allows management and editing of webhooks */
|
|
1146
|
+
MANAGE_WEBHOOKS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(29),
|
|
1147
|
+
/** Allows management and editing of emojis, stickers, and soundboard sounds */
|
|
1148
|
+
MANAGE_GUILD_EXPRESSIONS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(30),
|
|
1149
|
+
/** Allows members to use application commands, including slash commands and context menu commands. */
|
|
1150
|
+
USE_APPLICATION_COMMANDS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(31),
|
|
1151
|
+
/** Allows for requesting to speak in stage channels. (This permission is under active development and may be changed or removed.) */
|
|
1152
|
+
REQUEST_TO_SPEAK: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(32),
|
|
1153
|
+
/** Allows for creating, editing, and deleting scheduled events */
|
|
1154
|
+
MANAGE_EVENTS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(33),
|
|
1155
|
+
/** Allows for deleting and archiving threads, and viewing all private threads */
|
|
1156
|
+
MANAGE_THREADS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(34),
|
|
1157
|
+
/** Allows for creating public and announcement threads */
|
|
1158
|
+
CREATE_PUBLIC_THREADS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(35),
|
|
1159
|
+
/** Allows for creating private threads */
|
|
1160
|
+
CREATE_PRIVATE_THREADS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(36),
|
|
1161
|
+
/** Allows the usage of custom stickers from other servers */
|
|
1162
|
+
USE_EXTERNAL_STICKERS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(37),
|
|
1163
|
+
/** Allows for sending messages in threads */
|
|
1164
|
+
SEND_MESSAGES_IN_THREADS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(38),
|
|
1165
|
+
/** Allows for using Activities (applications with the EMBEDDED flag) in a voice channel */
|
|
1166
|
+
USE_EMBEDDED_ACTIVITIES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(39),
|
|
1167
|
+
/** 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 */
|
|
1168
|
+
MODERATE_MEMBERS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(40),
|
|
1169
|
+
/** Allows for viewing role subscription insights */
|
|
1170
|
+
VIEW_CREATOR_MONETIZATION_ANALYTICS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(41),
|
|
1171
|
+
/** Allows for using soundboard in a voice channel */
|
|
1172
|
+
USE_SOUNDBOARD: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(42),
|
|
1173
|
+
/** Allows the usage of custom soundboard sounds from other servers */
|
|
1174
|
+
USE_EXTERNAL_SOUNDS: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(45),
|
|
1175
|
+
/** Allows sending voice messages */
|
|
1176
|
+
SEND_VOICE_MESSAGES: /*#__PURE__*/BigInt(1) << /*#__PURE__*/BigInt(46)
|
|
1164
1177
|
};
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
+
exports.PermissionFlag = PermissionFlag;
|
|
1179
|
+
const SystemChannelFlag = {
|
|
1180
|
+
/** Suppress member join notifications */
|
|
1181
|
+
SUPPRESS_JOIN_NOTIFICATIONS: 1 << 0,
|
|
1182
|
+
/** Suppress server boost notifications */
|
|
1183
|
+
SUPPRESS_PREMIUM_SUBSCRIPTIONS: 1 << 1,
|
|
1184
|
+
/** Suppress server setup tips */
|
|
1185
|
+
SUPPRESS_GUILD_REMINDER_NOTIFICATIONS: 1 << 2,
|
|
1186
|
+
/** Hide member join sticker reply buttons */
|
|
1187
|
+
SUPPRESS_JOIN_NOTIFICATION_REPLIES: 1 << 3,
|
|
1188
|
+
/** Suppress role subscription purchase and renewal notifications */
|
|
1189
|
+
SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS: 1 << 4,
|
|
1190
|
+
/** Hide role subscription sticker reply buttons */
|
|
1191
|
+
SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES: 1 << 5
|
|
1178
1192
|
};
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1193
|
+
exports.SystemChannelFlag = SystemChannelFlag;
|
|
1194
|
+
const UserFlag = {
|
|
1195
|
+
/** Discord Employee */
|
|
1196
|
+
STAFF: 1 << 0,
|
|
1197
|
+
/** Partnered Server Owner */
|
|
1198
|
+
PARTNER: 1 << 1,
|
|
1199
|
+
/** HypeSquad Events Member */
|
|
1200
|
+
HYPESQUAD: 1 << 2,
|
|
1201
|
+
/** Bug Hunter Level 1 */
|
|
1202
|
+
BUG_HUNTER_LEVEL_1: 1 << 3,
|
|
1203
|
+
/** House Bravery Member */
|
|
1204
|
+
HYPESQUAD_ONLINE_HOUSE_1: 1 << 6,
|
|
1205
|
+
/** House Brilliance Member */
|
|
1206
|
+
HYPESQUAD_ONLINE_HOUSE_2: 1 << 7,
|
|
1207
|
+
/** House Balance Member */
|
|
1208
|
+
HYPESQUAD_ONLINE_HOUSE_3: 1 << 8,
|
|
1209
|
+
/** Early Nitro Supporter */
|
|
1210
|
+
PREMIUM_EARLY_SUPPORTER: 1 << 9,
|
|
1211
|
+
/** User is a team */
|
|
1212
|
+
TEAM_PSEUDO_USER: 1 << 10,
|
|
1213
|
+
/** Bug Hunter Level 2 */
|
|
1214
|
+
BUG_HUNTER_LEVEL_2: 1 << 14,
|
|
1215
|
+
/** Verified Bot */
|
|
1216
|
+
VERIFIED_BOT: 1 << 16,
|
|
1217
|
+
/** Early Verified Bot Developer */
|
|
1218
|
+
VERIFIED_DEVELOPER: 1 << 17,
|
|
1219
|
+
/** Moderator Programs Alumni */
|
|
1220
|
+
CERTIFIED_MODERATOR: 1 << 18,
|
|
1221
|
+
/** Bot uses only HTTP interactions and is shown in the online member list */
|
|
1222
|
+
BOT_HTTP_INTERACTIONS: 1 << 19,
|
|
1223
|
+
/** User is an Active Developer */
|
|
1224
|
+
ACTIVE_DEVELOPER: 1 << 22
|
|
1210
1225
|
};
|
|
1226
|
+
exports.UserFlag = UserFlag;
|
|
1211
1227
|
//# sourceMappingURL=types.js.map
|