dfx 0.3.0 → 0.5.0
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/example.d.ts +2 -0
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +47 -0
- package/dist/example.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} +1456 -825
- 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 +36 -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/example.ts +52 -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} +1616 -876
- 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 -63
- package/DiscordShard/index.js.map +0 -1
- package/DiscordShard/index.ts +0 -122
- 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 -39
- package/DiscordWS/index.js.map +0 -1
- package/DiscordWS/index.ts +0 -82
- 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 -113
- 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 -58
- 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 -34
- 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/{esm → dist}/types.js
RENAMED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export var ActionType;
|
|
2
|
+
(function (ActionType) {
|
|
3
|
+
/** blocks the content of a message according to the rule */
|
|
4
|
+
ActionType[ActionType["BLOCK_MESSAGE"] = 1] = "BLOCK_MESSAGE";
|
|
5
|
+
/** logs user content to a specified channel */
|
|
6
|
+
ActionType[ActionType["SEND_ALERT_MESSAGE"] = 2] = "SEND_ALERT_MESSAGE";
|
|
7
|
+
/** timeout user for a specified duration * */
|
|
8
|
+
ActionType[ActionType["TIMEOUT"] = 3] = "TIMEOUT";
|
|
9
|
+
})(ActionType || (ActionType = {}));
|
|
3
10
|
export const ActivityFlag = {
|
|
4
11
|
INSTANCE: 1 << 0,
|
|
5
12
|
JOIN: 1 << 1,
|
|
@@ -47,6 +54,7 @@ export var ApplicationCommandPermissionType;
|
|
|
47
54
|
(function (ApplicationCommandPermissionType) {
|
|
48
55
|
ApplicationCommandPermissionType[ApplicationCommandPermissionType["ROLE"] = 1] = "ROLE";
|
|
49
56
|
ApplicationCommandPermissionType[ApplicationCommandPermissionType["USER"] = 2] = "USER";
|
|
57
|
+
ApplicationCommandPermissionType[ApplicationCommandPermissionType["CHANNEL"] = 3] = "CHANNEL";
|
|
50
58
|
})(ApplicationCommandPermissionType || (ApplicationCommandPermissionType = {}));
|
|
51
59
|
export var ApplicationCommandType;
|
|
52
60
|
(function (ApplicationCommandType) {
|
|
@@ -74,56 +82,119 @@ export const ApplicationFlag = {
|
|
|
74
82
|
GATEWAY_MESSAGE_CONTENT: 1 << 18,
|
|
75
83
|
/** Intent required for bots in under 100 servers to receive message content, found in Bot Settings */
|
|
76
84
|
GATEWAY_MESSAGE_CONTENT_LIMITED: 1 << 19,
|
|
85
|
+
/** Indicates if an app has registered global application commands */
|
|
86
|
+
APPLICATION_COMMAND_BADGE: 1 << 23,
|
|
77
87
|
};
|
|
78
88
|
export var AuditLogEvent;
|
|
79
89
|
(function (AuditLogEvent) {
|
|
90
|
+
/** Server settings were updated */
|
|
80
91
|
AuditLogEvent[AuditLogEvent["GUILD_UPDATE"] = 1] = "GUILD_UPDATE";
|
|
92
|
+
/** Channel was created */
|
|
81
93
|
AuditLogEvent[AuditLogEvent["CHANNEL_CREATE"] = 10] = "CHANNEL_CREATE";
|
|
94
|
+
/** Channel settings were updated */
|
|
82
95
|
AuditLogEvent[AuditLogEvent["CHANNEL_UPDATE"] = 11] = "CHANNEL_UPDATE";
|
|
96
|
+
/** Channel was deleted */
|
|
83
97
|
AuditLogEvent[AuditLogEvent["CHANNEL_DELETE"] = 12] = "CHANNEL_DELETE";
|
|
98
|
+
/** Permission overwrite was added to a channel */
|
|
84
99
|
AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_CREATE"] = 13] = "CHANNEL_OVERWRITE_CREATE";
|
|
100
|
+
/** Permission overwrite was updated for a channel */
|
|
85
101
|
AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_UPDATE"] = 14] = "CHANNEL_OVERWRITE_UPDATE";
|
|
102
|
+
/** Permission overwrite was deleted from a channel */
|
|
86
103
|
AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_DELETE"] = 15] = "CHANNEL_OVERWRITE_DELETE";
|
|
104
|
+
/** Member was removed from server */
|
|
87
105
|
AuditLogEvent[AuditLogEvent["MEMBER_KICK"] = 20] = "MEMBER_KICK";
|
|
106
|
+
/** Members were pruned from server */
|
|
88
107
|
AuditLogEvent[AuditLogEvent["MEMBER_PRUNE"] = 21] = "MEMBER_PRUNE";
|
|
108
|
+
/** Member was banned from server */
|
|
89
109
|
AuditLogEvent[AuditLogEvent["MEMBER_BAN_ADD"] = 22] = "MEMBER_BAN_ADD";
|
|
110
|
+
/** Server ban was lifted for a member */
|
|
90
111
|
AuditLogEvent[AuditLogEvent["MEMBER_BAN_REMOVE"] = 23] = "MEMBER_BAN_REMOVE";
|
|
112
|
+
/** Member was updated in server */
|
|
91
113
|
AuditLogEvent[AuditLogEvent["MEMBER_UPDATE"] = 24] = "MEMBER_UPDATE";
|
|
114
|
+
/** Member was added or removed from a role */
|
|
92
115
|
AuditLogEvent[AuditLogEvent["MEMBER_ROLE_UPDATE"] = 25] = "MEMBER_ROLE_UPDATE";
|
|
116
|
+
/** Member was moved to a different voice channel */
|
|
93
117
|
AuditLogEvent[AuditLogEvent["MEMBER_MOVE"] = 26] = "MEMBER_MOVE";
|
|
118
|
+
/** Member was disconnected from a voice channel */
|
|
94
119
|
AuditLogEvent[AuditLogEvent["MEMBER_DISCONNECT"] = 27] = "MEMBER_DISCONNECT";
|
|
120
|
+
/** Bot user was added to server */
|
|
95
121
|
AuditLogEvent[AuditLogEvent["BOT_ADD"] = 28] = "BOT_ADD";
|
|
122
|
+
/** Role was created */
|
|
96
123
|
AuditLogEvent[AuditLogEvent["ROLE_CREATE"] = 30] = "ROLE_CREATE";
|
|
124
|
+
/** Role was edited */
|
|
97
125
|
AuditLogEvent[AuditLogEvent["ROLE_UPDATE"] = 31] = "ROLE_UPDATE";
|
|
126
|
+
/** Role was deleted */
|
|
98
127
|
AuditLogEvent[AuditLogEvent["ROLE_DELETE"] = 32] = "ROLE_DELETE";
|
|
128
|
+
/** Server invite was created */
|
|
99
129
|
AuditLogEvent[AuditLogEvent["INVITE_CREATE"] = 40] = "INVITE_CREATE";
|
|
130
|
+
/** Server invite was updated */
|
|
100
131
|
AuditLogEvent[AuditLogEvent["INVITE_UPDATE"] = 41] = "INVITE_UPDATE";
|
|
132
|
+
/** Server invite was deleted */
|
|
101
133
|
AuditLogEvent[AuditLogEvent["INVITE_DELETE"] = 42] = "INVITE_DELETE";
|
|
134
|
+
/** Webhook was created */
|
|
102
135
|
AuditLogEvent[AuditLogEvent["WEBHOOK_CREATE"] = 50] = "WEBHOOK_CREATE";
|
|
136
|
+
/** Webhook properties or channel were updated */
|
|
103
137
|
AuditLogEvent[AuditLogEvent["WEBHOOK_UPDATE"] = 51] = "WEBHOOK_UPDATE";
|
|
138
|
+
/** Webhook was deleted */
|
|
104
139
|
AuditLogEvent[AuditLogEvent["WEBHOOK_DELETE"] = 52] = "WEBHOOK_DELETE";
|
|
140
|
+
/** Emoji was created */
|
|
105
141
|
AuditLogEvent[AuditLogEvent["EMOJI_CREATE"] = 60] = "EMOJI_CREATE";
|
|
142
|
+
/** Emoji name was updated */
|
|
106
143
|
AuditLogEvent[AuditLogEvent["EMOJI_UPDATE"] = 61] = "EMOJI_UPDATE";
|
|
144
|
+
/** Emoji was deleted */
|
|
107
145
|
AuditLogEvent[AuditLogEvent["EMOJI_DELETE"] = 62] = "EMOJI_DELETE";
|
|
146
|
+
/** Single message was deleted */
|
|
108
147
|
AuditLogEvent[AuditLogEvent["MESSAGE_DELETE"] = 72] = "MESSAGE_DELETE";
|
|
148
|
+
/** Multiple messages were deleted */
|
|
109
149
|
AuditLogEvent[AuditLogEvent["MESSAGE_BULK_DELETE"] = 73] = "MESSAGE_BULK_DELETE";
|
|
150
|
+
/** Message was pinned to a channel */
|
|
110
151
|
AuditLogEvent[AuditLogEvent["MESSAGE_PIN"] = 74] = "MESSAGE_PIN";
|
|
152
|
+
/** Message was unpinned from a channel */
|
|
111
153
|
AuditLogEvent[AuditLogEvent["MESSAGE_UNPIN"] = 75] = "MESSAGE_UNPIN";
|
|
154
|
+
/** App was added to server */
|
|
112
155
|
AuditLogEvent[AuditLogEvent["INTEGRATION_CREATE"] = 80] = "INTEGRATION_CREATE";
|
|
156
|
+
/** App was updated (as an example, its scopes were updated) */
|
|
113
157
|
AuditLogEvent[AuditLogEvent["INTEGRATION_UPDATE"] = 81] = "INTEGRATION_UPDATE";
|
|
158
|
+
/** App was removed from server */
|
|
114
159
|
AuditLogEvent[AuditLogEvent["INTEGRATION_DELETE"] = 82] = "INTEGRATION_DELETE";
|
|
160
|
+
/** Stage instance was created (stage channel becomes live) */
|
|
115
161
|
AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_CREATE"] = 83] = "STAGE_INSTANCE_CREATE";
|
|
162
|
+
/** Stage instance details were updated */
|
|
116
163
|
AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_UPDATE"] = 84] = "STAGE_INSTANCE_UPDATE";
|
|
164
|
+
/** Stage instance was deleted (stage channel no longer live) */
|
|
117
165
|
AuditLogEvent[AuditLogEvent["STAGE_INSTANCE_DELETE"] = 85] = "STAGE_INSTANCE_DELETE";
|
|
166
|
+
/** Sticker was created */
|
|
118
167
|
AuditLogEvent[AuditLogEvent["STICKER_CREATE"] = 90] = "STICKER_CREATE";
|
|
168
|
+
/** Sticker details were updated */
|
|
119
169
|
AuditLogEvent[AuditLogEvent["STICKER_UPDATE"] = 91] = "STICKER_UPDATE";
|
|
170
|
+
/** Sticker was deleted */
|
|
120
171
|
AuditLogEvent[AuditLogEvent["STICKER_DELETE"] = 92] = "STICKER_DELETE";
|
|
172
|
+
/** Event was created */
|
|
121
173
|
AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_CREATE"] = 100] = "GUILD_SCHEDULED_EVENT_CREATE";
|
|
174
|
+
/** Event was updated */
|
|
122
175
|
AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_UPDATE"] = 101] = "GUILD_SCHEDULED_EVENT_UPDATE";
|
|
176
|
+
/** Event was cancelled */
|
|
123
177
|
AuditLogEvent[AuditLogEvent["GUILD_SCHEDULED_EVENT_DELETE"] = 102] = "GUILD_SCHEDULED_EVENT_DELETE";
|
|
178
|
+
/** Thread was created in a channel */
|
|
124
179
|
AuditLogEvent[AuditLogEvent["THREAD_CREATE"] = 110] = "THREAD_CREATE";
|
|
180
|
+
/** Thread was updated */
|
|
125
181
|
AuditLogEvent[AuditLogEvent["THREAD_UPDATE"] = 111] = "THREAD_UPDATE";
|
|
182
|
+
/** Thread was deleted */
|
|
126
183
|
AuditLogEvent[AuditLogEvent["THREAD_DELETE"] = 112] = "THREAD_DELETE";
|
|
184
|
+
/** Permissions were updated for a command */
|
|
185
|
+
AuditLogEvent[AuditLogEvent["APPLICATION_COMMAND_PERMISSION_UPDATE"] = 121] = "APPLICATION_COMMAND_PERMISSION_UPDATE";
|
|
186
|
+
/** Auto Moderation rule was created */
|
|
187
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_CREATE"] = 140] = "AUTO_MODERATION_RULE_CREATE";
|
|
188
|
+
/** Auto Moderation rule was updated */
|
|
189
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_UPDATE"] = 141] = "AUTO_MODERATION_RULE_UPDATE";
|
|
190
|
+
/** Auto Moderation rule was deleted */
|
|
191
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_RULE_DELETE"] = 142] = "AUTO_MODERATION_RULE_DELETE";
|
|
192
|
+
/** Message was blocked by Auto Moderation */
|
|
193
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_BLOCK_MESSAGE"] = 143] = "AUTO_MODERATION_BLOCK_MESSAGE";
|
|
194
|
+
/** Message was flagged by Auto Moderation */
|
|
195
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_FLAG_TO_CHANNEL"] = 144] = "AUTO_MODERATION_FLAG_TO_CHANNEL";
|
|
196
|
+
/** Member was timed out by Auto Moderation */
|
|
197
|
+
AuditLogEvent[AuditLogEvent["AUTO_MODERATION_USER_COMMUNICATION_DISABLED"] = 145] = "AUTO_MODERATION_USER_COMMUNICATION_DISABLED";
|
|
127
198
|
})(AuditLogEvent || (AuditLogEvent = {}));
|
|
128
199
|
export var ButtonStyle;
|
|
129
200
|
(function (ButtonStyle) {
|
|
@@ -133,6 +204,12 @@ export var ButtonStyle;
|
|
|
133
204
|
ButtonStyle[ButtonStyle["DANGER"] = 4] = "DANGER";
|
|
134
205
|
ButtonStyle[ButtonStyle["LINK"] = 5] = "LINK";
|
|
135
206
|
})(ButtonStyle || (ButtonStyle = {}));
|
|
207
|
+
export const ChannelFlag = {
|
|
208
|
+
/** this thread is pinned to the top of its parent GUILD_FORUM channel */
|
|
209
|
+
PINNED: 1 << 1,
|
|
210
|
+
/** 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. */
|
|
211
|
+
REQUIRE_TAG: 1 << 4,
|
|
212
|
+
};
|
|
136
213
|
export var ChannelType;
|
|
137
214
|
(function (ChannelType) {
|
|
138
215
|
/** a text channel within a server */
|
|
@@ -145,29 +222,39 @@ export var ChannelType;
|
|
|
145
222
|
ChannelType[ChannelType["GROUP_DM"] = 3] = "GROUP_DM";
|
|
146
223
|
/** an organizational category that contains up to 50 channels */
|
|
147
224
|
ChannelType[ChannelType["GUILD_CATEGORY"] = 4] = "GUILD_CATEGORY";
|
|
148
|
-
/** a channel that users can follow and crosspost into their own server */
|
|
149
|
-
ChannelType[ChannelType["
|
|
150
|
-
/** a channel
|
|
151
|
-
ChannelType[ChannelType["
|
|
152
|
-
/** a temporary sub-channel within a
|
|
153
|
-
ChannelType[ChannelType["
|
|
154
|
-
/** a temporary sub-channel within a GUILD_TEXT channel */
|
|
155
|
-
ChannelType[ChannelType["GUILD_PUBLIC_THREAD"] = 11] = "GUILD_PUBLIC_THREAD";
|
|
225
|
+
/** a channel that users can follow and crosspost into their own server (formerly news channels) */
|
|
226
|
+
ChannelType[ChannelType["GUILD_ANNOUNCEMENT"] = 5] = "GUILD_ANNOUNCEMENT";
|
|
227
|
+
/** a temporary sub-channel within a GUILD_ANNOUNCEMENT channel */
|
|
228
|
+
ChannelType[ChannelType["ANNOUNCEMENT_THREAD"] = 10] = "ANNOUNCEMENT_THREAD";
|
|
229
|
+
/** a temporary sub-channel within a GUILD_TEXT or GUILD_FORUM channel */
|
|
230
|
+
ChannelType[ChannelType["PUBLIC_THREAD"] = 11] = "PUBLIC_THREAD";
|
|
156
231
|
/** a temporary sub-channel within a GUILD_TEXT channel that is only viewable by those invited and those with the MANAGE_THREADS permission */
|
|
157
|
-
ChannelType[ChannelType["
|
|
232
|
+
ChannelType[ChannelType["PRIVATE_THREAD"] = 12] = "PRIVATE_THREAD";
|
|
158
233
|
/** a voice channel for hosting events with an audience */
|
|
159
234
|
ChannelType[ChannelType["GUILD_STAGE_VOICE"] = 13] = "GUILD_STAGE_VOICE";
|
|
235
|
+
/** the channel in a hub containing the listed servers */
|
|
236
|
+
ChannelType[ChannelType["GUILD_DIRECTORY"] = 14] = "GUILD_DIRECTORY";
|
|
237
|
+
/** Channel that can only contain threads */
|
|
238
|
+
ChannelType[ChannelType["GUILD_FORUM"] = 15] = "GUILD_FORUM";
|
|
160
239
|
})(ChannelType || (ChannelType = {}));
|
|
161
240
|
export var ComponentType;
|
|
162
241
|
(function (ComponentType) {
|
|
163
|
-
/**
|
|
242
|
+
/** Container for other components */
|
|
164
243
|
ComponentType[ComponentType["ACTION_ROW"] = 1] = "ACTION_ROW";
|
|
165
|
-
/**
|
|
244
|
+
/** Button object */
|
|
166
245
|
ComponentType[ComponentType["BUTTON"] = 2] = "BUTTON";
|
|
167
|
-
/**
|
|
168
|
-
ComponentType[ComponentType["
|
|
169
|
-
/**
|
|
246
|
+
/** Select menu for picking from defined text options */
|
|
247
|
+
ComponentType[ComponentType["STRING_SELECT"] = 3] = "STRING_SELECT";
|
|
248
|
+
/** Text input object */
|
|
170
249
|
ComponentType[ComponentType["TEXT_INPUT"] = 4] = "TEXT_INPUT";
|
|
250
|
+
/** Select menu for users */
|
|
251
|
+
ComponentType[ComponentType["USER_SELECT"] = 5] = "USER_SELECT";
|
|
252
|
+
/** Select menu for roles */
|
|
253
|
+
ComponentType[ComponentType["ROLE_SELECT"] = 6] = "ROLE_SELECT";
|
|
254
|
+
/** Select menu for mentionables (users and roles) */
|
|
255
|
+
ComponentType[ComponentType["MENTIONABLE_SELECT"] = 7] = "MENTIONABLE_SELECT";
|
|
256
|
+
/** Select menu for channels */
|
|
257
|
+
ComponentType[ComponentType["CHANNEL_SELECT"] = 8] = "CHANNEL_SELECT";
|
|
171
258
|
})(ComponentType || (ComponentType = {}));
|
|
172
259
|
export function createRoutes(fetch) {
|
|
173
260
|
return {
|
|
@@ -187,10 +274,9 @@ export function createRoutes(fetch) {
|
|
|
187
274
|
url: `/channels/${channelId}/thread-members/${userId}`,
|
|
188
275
|
options,
|
|
189
276
|
}),
|
|
190
|
-
batchEditApplicationCommandPermissions: (applicationId, guildId,
|
|
277
|
+
batchEditApplicationCommandPermissions: (applicationId, guildId, options) => fetch({
|
|
191
278
|
method: "PUT",
|
|
192
279
|
url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
|
|
193
|
-
params,
|
|
194
280
|
options,
|
|
195
281
|
}),
|
|
196
282
|
beginGuildPrune: (guildId, params, options) => fetch({
|
|
@@ -216,6 +302,12 @@ export function createRoutes(fetch) {
|
|
|
216
302
|
params,
|
|
217
303
|
options,
|
|
218
304
|
}),
|
|
305
|
+
createAutoModerationRule: (guildId, params, options) => fetch({
|
|
306
|
+
method: "POST",
|
|
307
|
+
url: `/guilds/${guildId}/auto-moderation/rules`,
|
|
308
|
+
params,
|
|
309
|
+
options,
|
|
310
|
+
}),
|
|
219
311
|
createChannelInvite: (channelId, params, options) => fetch({
|
|
220
312
|
method: "POST",
|
|
221
313
|
url: `/channels/${channelId}/invites`,
|
|
@@ -349,6 +441,11 @@ export function createRoutes(fetch) {
|
|
|
349
441
|
url: `/channels/${channelId}/messages/${messageId}/reactions/${emoji}`,
|
|
350
442
|
options,
|
|
351
443
|
}),
|
|
444
|
+
deleteAutoModerationRule: (guildId, autoModerationRuleId, options) => fetch({
|
|
445
|
+
method: "DELETE",
|
|
446
|
+
url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
|
|
447
|
+
options,
|
|
448
|
+
}),
|
|
352
449
|
deleteChannelPermission: (channelId, overwriteId, options) => fetch({
|
|
353
450
|
method: "DELETE",
|
|
354
451
|
url: `/channels/${channelId}/permissions/${overwriteId}`,
|
|
@@ -517,7 +614,7 @@ export function createRoutes(fetch) {
|
|
|
517
614
|
params,
|
|
518
615
|
options,
|
|
519
616
|
}),
|
|
520
|
-
|
|
617
|
+
followAnnouncementChannel: (channelId, params, options) => fetch({
|
|
521
618
|
method: "POST",
|
|
522
619
|
url: `/channels/${channelId}/followers`,
|
|
523
620
|
params,
|
|
@@ -528,6 +625,11 @@ export function createRoutes(fetch) {
|
|
|
528
625
|
url: `/applications/${applicationId}/guilds/${guildId}/commands/${commandId}/permissions`,
|
|
529
626
|
options,
|
|
530
627
|
}),
|
|
628
|
+
getAutoModerationRule: (guildId, autoModerationRuleId, options) => fetch({
|
|
629
|
+
method: "GET",
|
|
630
|
+
url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
|
|
631
|
+
options,
|
|
632
|
+
}),
|
|
531
633
|
getChannel: (channelId, options) => fetch({
|
|
532
634
|
method: "GET",
|
|
533
635
|
url: `/channels/${channelId}`,
|
|
@@ -554,6 +656,16 @@ export function createRoutes(fetch) {
|
|
|
554
656
|
url: `/channels/${channelId}/webhooks`,
|
|
555
657
|
options,
|
|
556
658
|
}),
|
|
659
|
+
getCurrentAuthorizationInformation: (options) => fetch({
|
|
660
|
+
method: "GET",
|
|
661
|
+
url: `/oauth2/@me`,
|
|
662
|
+
options,
|
|
663
|
+
}),
|
|
664
|
+
getCurrentBotApplicationInformation: (options) => fetch({
|
|
665
|
+
method: "GET",
|
|
666
|
+
url: `/oauth2/applications/@me`,
|
|
667
|
+
options,
|
|
668
|
+
}),
|
|
557
669
|
getCurrentUser: (options) => fetch({
|
|
558
670
|
method: "GET",
|
|
559
671
|
url: `/users/@me`,
|
|
@@ -590,9 +702,10 @@ export function createRoutes(fetch) {
|
|
|
590
702
|
url: `/applications/${applicationId}/commands/${commandId}`,
|
|
591
703
|
options,
|
|
592
704
|
}),
|
|
593
|
-
getGlobalApplicationCommands: (applicationId, options) => fetch({
|
|
705
|
+
getGlobalApplicationCommands: (applicationId, params, options) => fetch({
|
|
594
706
|
method: "GET",
|
|
595
707
|
url: `/applications/${applicationId}/commands`,
|
|
708
|
+
params,
|
|
596
709
|
options,
|
|
597
710
|
}),
|
|
598
711
|
getGuild: (guildId, params, options) => fetch({
|
|
@@ -611,9 +724,10 @@ export function createRoutes(fetch) {
|
|
|
611
724
|
url: `/applications/${applicationId}/guilds/${guildId}/commands/permissions`,
|
|
612
725
|
options,
|
|
613
726
|
}),
|
|
614
|
-
getGuildApplicationCommands: (applicationId, guildId, options) => fetch({
|
|
727
|
+
getGuildApplicationCommands: (applicationId, guildId, params, options) => fetch({
|
|
615
728
|
method: "GET",
|
|
616
729
|
url: `/applications/${applicationId}/guilds/${guildId}/commands`,
|
|
730
|
+
params,
|
|
617
731
|
options,
|
|
618
732
|
}),
|
|
619
733
|
getGuildAuditLog: (guildId, params, options) => fetch({
|
|
@@ -627,9 +741,10 @@ export function createRoutes(fetch) {
|
|
|
627
741
|
url: `/guilds/${guildId}/bans/${userId}`,
|
|
628
742
|
options,
|
|
629
743
|
}),
|
|
630
|
-
getGuildBans: (guildId, options) => fetch({
|
|
744
|
+
getGuildBans: (guildId, params, options) => fetch({
|
|
631
745
|
method: "GET",
|
|
632
746
|
url: `/guilds/${guildId}/bans`,
|
|
747
|
+
params,
|
|
633
748
|
options,
|
|
634
749
|
}),
|
|
635
750
|
getGuildChannels: (guildId, options) => fetch({
|
|
@@ -825,14 +940,14 @@ export function createRoutes(fetch) {
|
|
|
825
940
|
url: `/channels/${channelId}/thread-members/@me`,
|
|
826
941
|
options,
|
|
827
942
|
}),
|
|
828
|
-
|
|
943
|
+
listActiveGuildThreads: (guildId, options) => fetch({
|
|
829
944
|
method: "GET",
|
|
830
|
-
url: `/
|
|
945
|
+
url: `/guilds/${guildId}/threads/active`,
|
|
831
946
|
options,
|
|
832
947
|
}),
|
|
833
|
-
|
|
948
|
+
listAutoModerationRulesForGuild: (guildId, options) => fetch({
|
|
834
949
|
method: "GET",
|
|
835
|
-
url: `/guilds/${guildId}/
|
|
950
|
+
url: `/guilds/${guildId}/auto-moderation/rules`,
|
|
836
951
|
options,
|
|
837
952
|
}),
|
|
838
953
|
listGuildEmojis: (guildId, options) => fetch({
|
|
@@ -890,6 +1005,12 @@ export function createRoutes(fetch) {
|
|
|
890
1005
|
url: `/voice/regions`,
|
|
891
1006
|
options,
|
|
892
1007
|
}),
|
|
1008
|
+
modifyAutoModerationRule: (guildId, autoModerationRuleId, params, options) => fetch({
|
|
1009
|
+
method: "PATCH",
|
|
1010
|
+
url: `/guilds/${guildId}/auto-moderation/rules/${autoModerationRuleId}`,
|
|
1011
|
+
params,
|
|
1012
|
+
options,
|
|
1013
|
+
}),
|
|
893
1014
|
modifyChannel: (channelId, params, options) => fetch({
|
|
894
1015
|
method: "PATCH",
|
|
895
1016
|
url: `/channels/${channelId}`,
|
|
@@ -944,6 +1065,12 @@ export function createRoutes(fetch) {
|
|
|
944
1065
|
params,
|
|
945
1066
|
options,
|
|
946
1067
|
}),
|
|
1068
|
+
modifyGuildMfaLevel: (guildId, params, options) => fetch({
|
|
1069
|
+
method: "POST",
|
|
1070
|
+
url: `/guilds/${guildId}/mfa`,
|
|
1071
|
+
params,
|
|
1072
|
+
options,
|
|
1073
|
+
}),
|
|
947
1074
|
modifyGuildRole: (guildId, roleId, params, options) => fetch({
|
|
948
1075
|
method: "PATCH",
|
|
949
1076
|
url: `/guilds/${guildId}/roles/${roleId}`,
|
|
@@ -1039,12 +1166,18 @@ export function createRoutes(fetch) {
|
|
|
1039
1166
|
params,
|
|
1040
1167
|
options,
|
|
1041
1168
|
}),
|
|
1042
|
-
|
|
1169
|
+
startThreadFromMessage: (channelId, messageId, params, options) => fetch({
|
|
1043
1170
|
method: "POST",
|
|
1044
1171
|
url: `/channels/${channelId}/messages/${messageId}/threads`,
|
|
1045
1172
|
params,
|
|
1046
1173
|
options,
|
|
1047
1174
|
}),
|
|
1175
|
+
startThreadInForumChannel: (channelId, params, options) => fetch({
|
|
1176
|
+
method: "POST",
|
|
1177
|
+
url: `/channels/${channelId}/threads`,
|
|
1178
|
+
params,
|
|
1179
|
+
options,
|
|
1180
|
+
}),
|
|
1048
1181
|
startThreadWithoutMessage: (channelId, params, options) => fetch({
|
|
1049
1182
|
method: "POST",
|
|
1050
1183
|
url: `/channels/${channelId}/threads`,
|
|
@@ -1090,6 +1223,11 @@ export var EmbedType;
|
|
|
1090
1223
|
/** link embed */
|
|
1091
1224
|
EmbedType["LINK"] = "link";
|
|
1092
1225
|
})(EmbedType || (EmbedType = {}));
|
|
1226
|
+
export var EventType;
|
|
1227
|
+
(function (EventType) {
|
|
1228
|
+
/** when a member sends or edits a message in the guild */
|
|
1229
|
+
EventType[EventType["MESSAGE_SEND"] = 1] = "MESSAGE_SEND";
|
|
1230
|
+
})(EventType || (EventType = {}));
|
|
1093
1231
|
export var ExplicitContentFilterLevel;
|
|
1094
1232
|
(function (ExplicitContentFilterLevel) {
|
|
1095
1233
|
/** media content will not be scanned */
|
|
@@ -1115,7 +1253,10 @@ export const GatewayIntents = {
|
|
|
1115
1253
|
DIRECT_MESSAGES: 1 << 12,
|
|
1116
1254
|
DIRECT_MESSAGE_REACTIONS: 1 << 13,
|
|
1117
1255
|
DIRECT_MESSAGE_TYPING: 1 << 14,
|
|
1256
|
+
MESSAGE_CONTENT: 1 << 15,
|
|
1118
1257
|
GUILD_SCHEDULED_EVENTS: 1 << 16,
|
|
1258
|
+
AUTO_MODERATION_CONFIGURATION: 1 << 20,
|
|
1259
|
+
AUTO_MODERATION_EXECUTION: 1 << 21,
|
|
1119
1260
|
};
|
|
1120
1261
|
export var GatewayOpcode;
|
|
1121
1262
|
(function (GatewayOpcode) {
|
|
@@ -1144,18 +1285,26 @@ export var GatewayOpcode;
|
|
|
1144
1285
|
})(GatewayOpcode || (GatewayOpcode = {}));
|
|
1145
1286
|
export var GuildFeature;
|
|
1146
1287
|
(function (GuildFeature) {
|
|
1288
|
+
/** guild has access to set an animated guild banner image */
|
|
1289
|
+
GuildFeature["ANIMATED_BANNER"] = "ANIMATED_BANNER";
|
|
1147
1290
|
/** guild has access to set an animated guild icon */
|
|
1148
1291
|
GuildFeature["ANIMATED_ICON"] = "ANIMATED_ICON";
|
|
1292
|
+
/** guild is using the old permissions configuration behavior */
|
|
1293
|
+
GuildFeature["APPLICATION_COMMAND_PERMISSIONS_V2"] = "APPLICATION_COMMAND_PERMISSIONS_V2";
|
|
1294
|
+
/** guild has set up auto moderation rules */
|
|
1295
|
+
GuildFeature["AUTO_MODERATION"] = "AUTO_MODERATION";
|
|
1149
1296
|
/** guild has access to set a guild banner image */
|
|
1150
1297
|
GuildFeature["BANNER"] = "BANNER";
|
|
1151
|
-
/** guild has access to use commerce features (i.e. create store channels) */
|
|
1152
|
-
GuildFeature["COMMERCE"] = "COMMERCE";
|
|
1153
1298
|
/** guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates */
|
|
1154
1299
|
GuildFeature["COMMUNITY"] = "COMMUNITY";
|
|
1300
|
+
/** guild has been set as a support server on the App Directory */
|
|
1301
|
+
GuildFeature["DEVELOPER_SUPPORT_SERVER"] = "DEVELOPER_SUPPORT_SERVER";
|
|
1155
1302
|
/** guild is able to be discovered in the directory */
|
|
1156
1303
|
GuildFeature["DISCOVERABLE"] = "DISCOVERABLE";
|
|
1157
1304
|
/** guild is able to be featured in the directory */
|
|
1158
1305
|
GuildFeature["FEATURABLE"] = "FEATURABLE";
|
|
1306
|
+
/** guild has paused invites, preventing new users from joining */
|
|
1307
|
+
GuildFeature["INVITES_DISABLED"] = "INVITES_DISABLED";
|
|
1159
1308
|
/** guild has access to set an invite splash background */
|
|
1160
1309
|
GuildFeature["INVITE_SPLASH"] = "INVITE_SPLASH";
|
|
1161
1310
|
/** guild has enabled Membership Screening */
|
|
@@ -1164,20 +1313,14 @@ export var GuildFeature;
|
|
|
1164
1313
|
GuildFeature["MONETIZATION_ENABLED"] = "MONETIZATION_ENABLED";
|
|
1165
1314
|
/** guild has increased custom sticker slots */
|
|
1166
1315
|
GuildFeature["MORE_STICKERS"] = "MORE_STICKERS";
|
|
1167
|
-
/** guild has access to create
|
|
1316
|
+
/** guild has access to create announcement channels */
|
|
1168
1317
|
GuildFeature["NEWS"] = "NEWS";
|
|
1169
1318
|
/** guild is partnered */
|
|
1170
1319
|
GuildFeature["PARTNERED"] = "PARTNERED";
|
|
1171
1320
|
/** guild can be previewed before joining via Membership Screening or the directory */
|
|
1172
1321
|
GuildFeature["PREVIEW_ENABLED"] = "PREVIEW_ENABLED";
|
|
1173
|
-
/** guild has access to create private threads */
|
|
1174
|
-
GuildFeature["PRIVATE_THREADS"] = "PRIVATE_THREADS";
|
|
1175
1322
|
/** guild is able to set role icons */
|
|
1176
1323
|
GuildFeature["ROLE_ICONS"] = "ROLE_ICONS";
|
|
1177
|
-
/** guild has access to the seven day archive time for threads */
|
|
1178
|
-
GuildFeature["SEVEN_DAY_THREAD_ARCHIVE"] = "SEVEN_DAY_THREAD_ARCHIVE";
|
|
1179
|
-
/** guild has access to the three day archive time for threads */
|
|
1180
|
-
GuildFeature["THREE_DAY_THREAD_ARCHIVE"] = "THREE_DAY_THREAD_ARCHIVE";
|
|
1181
1324
|
/** guild has enabled ticketed events */
|
|
1182
1325
|
GuildFeature["TICKETED_EVENTS_ENABLED"] = "TICKETED_EVENTS_ENABLED";
|
|
1183
1326
|
/** guild has access to set a vanity URL */
|
|
@@ -1249,6 +1392,15 @@ export var InviteTargetType;
|
|
|
1249
1392
|
InviteTargetType[InviteTargetType["STREAM"] = 1] = "STREAM";
|
|
1250
1393
|
InviteTargetType[InviteTargetType["EMBEDDED_APPLICATION"] = 2] = "EMBEDDED_APPLICATION";
|
|
1251
1394
|
})(InviteTargetType || (InviteTargetType = {}));
|
|
1395
|
+
export var KeywordPresetType;
|
|
1396
|
+
(function (KeywordPresetType) {
|
|
1397
|
+
/** Words that may be considered forms of swearing or cursing */
|
|
1398
|
+
KeywordPresetType[KeywordPresetType["PROFANITY"] = 1] = "PROFANITY";
|
|
1399
|
+
/** Words that refer to sexually explicit behavior or activity */
|
|
1400
|
+
KeywordPresetType[KeywordPresetType["SEXUAL_CONTENT"] = 2] = "SEXUAL_CONTENT";
|
|
1401
|
+
/** Personal insults or words that may be considered hate speech */
|
|
1402
|
+
KeywordPresetType[KeywordPresetType["SLURS"] = 3] = "SLURS";
|
|
1403
|
+
})(KeywordPresetType || (KeywordPresetType = {}));
|
|
1252
1404
|
export var MembershipState;
|
|
1253
1405
|
(function (MembershipState) {
|
|
1254
1406
|
MembershipState[MembershipState["INVITED"] = 1] = "INVITED";
|
|
@@ -1290,11 +1442,11 @@ export var MessageType;
|
|
|
1290
1442
|
MessageType[MessageType["CHANNEL_NAME_CHANGE"] = 4] = "CHANNEL_NAME_CHANGE";
|
|
1291
1443
|
MessageType[MessageType["CHANNEL_ICON_CHANGE"] = 5] = "CHANNEL_ICON_CHANGE";
|
|
1292
1444
|
MessageType[MessageType["CHANNEL_PINNED_MESSAGE"] = 6] = "CHANNEL_PINNED_MESSAGE";
|
|
1293
|
-
MessageType[MessageType["
|
|
1294
|
-
MessageType[MessageType["
|
|
1295
|
-
MessageType[MessageType["
|
|
1296
|
-
MessageType[MessageType["
|
|
1297
|
-
MessageType[MessageType["
|
|
1445
|
+
MessageType[MessageType["USER_JOIN"] = 7] = "USER_JOIN";
|
|
1446
|
+
MessageType[MessageType["GUILD_BOOST"] = 8] = "GUILD_BOOST";
|
|
1447
|
+
MessageType[MessageType["GUILD_BOOST_TIER_1"] = 9] = "GUILD_BOOST_TIER_1";
|
|
1448
|
+
MessageType[MessageType["GUILD_BOOST_TIER_2"] = 10] = "GUILD_BOOST_TIER_2";
|
|
1449
|
+
MessageType[MessageType["GUILD_BOOST_TIER_3"] = 11] = "GUILD_BOOST_TIER_3";
|
|
1298
1450
|
MessageType[MessageType["CHANNEL_FOLLOW_ADD"] = 12] = "CHANNEL_FOLLOW_ADD";
|
|
1299
1451
|
MessageType[MessageType["GUILD_DISCOVERY_DISQUALIFIED"] = 14] = "GUILD_DISCOVERY_DISQUALIFIED";
|
|
1300
1452
|
MessageType[MessageType["GUILD_DISCOVERY_REQUALIFIED"] = 15] = "GUILD_DISCOVERY_REQUALIFIED";
|
|
@@ -1306,6 +1458,7 @@ export var MessageType;
|
|
|
1306
1458
|
MessageType[MessageType["THREAD_STARTER_MESSAGE"] = 21] = "THREAD_STARTER_MESSAGE";
|
|
1307
1459
|
MessageType[MessageType["GUILD_INVITE_REMINDER"] = 22] = "GUILD_INVITE_REMINDER";
|
|
1308
1460
|
MessageType[MessageType["CONTEXT_MENU_COMMAND"] = 23] = "CONTEXT_MENU_COMMAND";
|
|
1461
|
+
MessageType[MessageType["AUTO_MODERATION_ACTION"] = 24] = "AUTO_MODERATION_ACTION";
|
|
1309
1462
|
})(MessageType || (MessageType = {}));
|
|
1310
1463
|
export var MfaLevel;
|
|
1311
1464
|
(function (MfaLevel) {
|
|
@@ -1314,6 +1467,69 @@ export var MfaLevel;
|
|
|
1314
1467
|
/** guild has a 2FA requirement for moderation actions */
|
|
1315
1468
|
MfaLevel[MfaLevel["ELEVATED"] = 1] = "ELEVATED";
|
|
1316
1469
|
})(MfaLevel || (MfaLevel = {}));
|
|
1470
|
+
export var MutableGuildFeature;
|
|
1471
|
+
(function (MutableGuildFeature) {
|
|
1472
|
+
MutableGuildFeature["COMMUNITY"] = "COMMUNITY";
|
|
1473
|
+
MutableGuildFeature["INVITES_DISABLED"] = "INVITES_DISABLED";
|
|
1474
|
+
MutableGuildFeature["DISCOVERABLE"] = "DISCOVERABLE";
|
|
1475
|
+
})(MutableGuildFeature || (MutableGuildFeature = {}));
|
|
1476
|
+
export var OAuth2Scope;
|
|
1477
|
+
(function (OAuth2Scope) {
|
|
1478
|
+
/** allows your app to fetch data from a user's "Now Playing/Recently Played" list - requires Discord approval */
|
|
1479
|
+
OAuth2Scope["ACTIVITIES_READ"] = "activities.read";
|
|
1480
|
+
/** allows your app to update a user's activity - requires Discord approval (NOT REQUIRED FOR GAMESDK ACTIVITY MANAGER) */
|
|
1481
|
+
OAuth2Scope["ACTIVITIES_WRITE"] = "activities.write";
|
|
1482
|
+
/** allows your app to read build data for a user's applications */
|
|
1483
|
+
OAuth2Scope["APPLICATIONS_BUILDS_READ"] = "applications.builds.read";
|
|
1484
|
+
/** allows your app to upload/update builds for a user's applications - requires Discord approval */
|
|
1485
|
+
OAuth2Scope["APPLICATIONS_BUILDS_UPLOAD"] = "applications.builds.upload";
|
|
1486
|
+
/** allows your app to use commands in a guild */
|
|
1487
|
+
OAuth2Scope["APPLICATIONS_COMMANDS"] = "applications.commands";
|
|
1488
|
+
/** allows your app to update its commands using a Bearer token - client credentials grant only */
|
|
1489
|
+
OAuth2Scope["APPLICATIONS_COMMANDS_UPDATE"] = "applications.commands.update";
|
|
1490
|
+
/** allows your app to update permissions for its commands in a guild a user has permissions to */
|
|
1491
|
+
OAuth2Scope["APPLICATIONS_COMMANDS_PERMISSIONS_UPDATE"] = "applications.commands.permissions.update";
|
|
1492
|
+
/** allows your app to read entitlements for a user's applications */
|
|
1493
|
+
OAuth2Scope["APPLICATIONS_ENTITLEMENTS"] = "applications.entitlements";
|
|
1494
|
+
/** allows your app to read and update store data (SKUs, store listings, achievements, etc.) for a user's applications */
|
|
1495
|
+
OAuth2Scope["APPLICATIONS_STORE_UPDATE"] = "applications.store.update";
|
|
1496
|
+
/** for oauth2 bots, this puts the bot in the user's selected guild by default */
|
|
1497
|
+
OAuth2Scope["BOT"] = "bot";
|
|
1498
|
+
/** allows /users/@me/connections to return linked third-party accounts */
|
|
1499
|
+
OAuth2Scope["CONNECTIONS"] = "connections";
|
|
1500
|
+
/** allows your app to see information about the user's DMs and group DMs - requires Discord approval */
|
|
1501
|
+
OAuth2Scope["DM_CHANNELS_READ"] = "dm_channels.read";
|
|
1502
|
+
/** enables /users/@me to return an email */
|
|
1503
|
+
OAuth2Scope["EMAIL"] = "email";
|
|
1504
|
+
/** allows your app to join users to a group dm */
|
|
1505
|
+
OAuth2Scope["GDM_JOIN"] = "gdm.join";
|
|
1506
|
+
/** allows /users/@me/guilds to return basic information about all of a user's guilds */
|
|
1507
|
+
OAuth2Scope["GUILDS"] = "guilds";
|
|
1508
|
+
/** allows /guilds/{guild.id}/members/{user.id} to be used for joining users to a guild */
|
|
1509
|
+
OAuth2Scope["GUILDS_JOIN"] = "guilds.join";
|
|
1510
|
+
/** allows /users/@me/guilds/{guild.id}/member to return a user's member information in a guild */
|
|
1511
|
+
OAuth2Scope["GUILDS_MEMBERS_READ"] = "guilds.members.read";
|
|
1512
|
+
/** allows /users/@me without email */
|
|
1513
|
+
OAuth2Scope["IDENTIFY"] = "identify";
|
|
1514
|
+
/** for local rpc server api access, this allows you to read messages from all client channels (otherwise restricted to channels/guilds your app creates) */
|
|
1515
|
+
OAuth2Scope["MESSAGES_READ"] = "messages.read";
|
|
1516
|
+
/** allows your app to know a user's friends and implicit relationships - requires Discord approval */
|
|
1517
|
+
OAuth2Scope["RELATIONSHIPS_READ"] = "relationships.read";
|
|
1518
|
+
/** for local rpc server access, this allows you to control a user's local Discord client - requires Discord approval */
|
|
1519
|
+
OAuth2Scope["RPC"] = "rpc";
|
|
1520
|
+
/** for local rpc server access, this allows you to update a user's activity - requires Discord approval */
|
|
1521
|
+
OAuth2Scope["RPC_ACTIVITIES_WRITE"] = "rpc.activities.write";
|
|
1522
|
+
/** for local rpc server access, this allows you to receive notifications pushed out to the user - requires Discord approval */
|
|
1523
|
+
OAuth2Scope["RPC_NOTIFICATIONS_READ"] = "rpc.notifications.read";
|
|
1524
|
+
/** for local rpc server access, this allows you to read a user's voice settings and listen for voice events - requires Discord approval */
|
|
1525
|
+
OAuth2Scope["RPC_VOICE_READ"] = "rpc.voice.read";
|
|
1526
|
+
/** for local rpc server access, this allows you to update a user's voice settings - requires Discord approval */
|
|
1527
|
+
OAuth2Scope["RPC_VOICE_WRITE"] = "rpc.voice.write";
|
|
1528
|
+
/** allows your app to connect to voice on user's behalf and see all the voice members - requires Discord approval */
|
|
1529
|
+
OAuth2Scope["VOICE"] = "voice";
|
|
1530
|
+
/** this generates a webhook that is returned in the oauth token response for authorization code grants */
|
|
1531
|
+
OAuth2Scope["WEBHOOK_INCOMING"] = "webhook.incoming";
|
|
1532
|
+
})(OAuth2Scope || (OAuth2Scope = {}));
|
|
1317
1533
|
export const PermissionFlag = {
|
|
1318
1534
|
/** Allows creation of instant invites */
|
|
1319
1535
|
CREATE_INSTANT_INVITE: BigInt(1) << BigInt(0),
|
|
@@ -1337,7 +1553,7 @@ export const PermissionFlag = {
|
|
|
1337
1553
|
STREAM: BigInt(1) << BigInt(9),
|
|
1338
1554
|
/** Allows guild members to view a channel, which includes reading messages in text channels and joining voice channels */
|
|
1339
1555
|
VIEW_CHANNEL: BigInt(1) << BigInt(10),
|
|
1340
|
-
/** Allows for sending messages in a channel (does not allow sending messages in threads) */
|
|
1556
|
+
/** Allows for sending messages in a channel and creating threads in a forum (does not allow sending messages in threads) */
|
|
1341
1557
|
SEND_MESSAGES: BigInt(1) << BigInt(11),
|
|
1342
1558
|
/** Allows for sending of /tts messages */
|
|
1343
1559
|
SEND_TTS_MESSAGES: BigInt(1) << BigInt(12),
|
|
@@ -1414,6 +1630,7 @@ export var PremiumType;
|
|
|
1414
1630
|
PremiumType[PremiumType["NONE"] = 0] = "NONE";
|
|
1415
1631
|
PremiumType[PremiumType["NITRO_CLASSIC"] = 1] = "NITRO_CLASSIC";
|
|
1416
1632
|
PremiumType[PremiumType["NITRO"] = 2] = "NITRO";
|
|
1633
|
+
PremiumType[PremiumType["NITRO_BASIC"] = 3] = "NITRO_BASIC";
|
|
1417
1634
|
})(PremiumType || (PremiumType = {}));
|
|
1418
1635
|
export var PrivacyLevel;
|
|
1419
1636
|
(function (PrivacyLevel) {
|
|
@@ -1422,6 +1639,13 @@ export var PrivacyLevel;
|
|
|
1422
1639
|
/** The Stage instance is visible to only guild members. */
|
|
1423
1640
|
PrivacyLevel[PrivacyLevel["GUILD_ONLY"] = 2] = "GUILD_ONLY";
|
|
1424
1641
|
})(PrivacyLevel || (PrivacyLevel = {}));
|
|
1642
|
+
export var SortOrderType;
|
|
1643
|
+
(function (SortOrderType) {
|
|
1644
|
+
/** Sort forum posts by activity */
|
|
1645
|
+
SortOrderType[SortOrderType["LATEST_ACTIVITY"] = 0] = "LATEST_ACTIVITY";
|
|
1646
|
+
/** Sort forum posts by creation time (from most recent to oldest) */
|
|
1647
|
+
SortOrderType[SortOrderType["CREATION_DATE"] = 1] = "CREATION_DATE";
|
|
1648
|
+
})(SortOrderType || (SortOrderType = {}));
|
|
1425
1649
|
export var StatusType;
|
|
1426
1650
|
(function (StatusType) {
|
|
1427
1651
|
/** Online */
|
|
@@ -1445,7 +1669,7 @@ export var StickerType;
|
|
|
1445
1669
|
(function (StickerType) {
|
|
1446
1670
|
/** an official sticker in a pack, part of Nitro or in a removed purchasable pack */
|
|
1447
1671
|
StickerType[StickerType["STANDARD"] = 1] = "STANDARD";
|
|
1448
|
-
/** a sticker uploaded to a
|
|
1672
|
+
/** a sticker uploaded to a guild for the guild's members */
|
|
1449
1673
|
StickerType[StickerType["GUILD"] = 2] = "GUILD";
|
|
1450
1674
|
})(StickerType || (StickerType = {}));
|
|
1451
1675
|
export const SystemChannelFlag = {
|
|
@@ -1460,17 +1684,28 @@ export const SystemChannelFlag = {
|
|
|
1460
1684
|
};
|
|
1461
1685
|
export var TextInputStyle;
|
|
1462
1686
|
(function (TextInputStyle) {
|
|
1463
|
-
/**
|
|
1687
|
+
/** Single-line input */
|
|
1464
1688
|
TextInputStyle[TextInputStyle["SHORT"] = 1] = "SHORT";
|
|
1465
|
-
/**
|
|
1689
|
+
/** Multi-line input */
|
|
1466
1690
|
TextInputStyle[TextInputStyle["PARAGRAPH"] = 2] = "PARAGRAPH";
|
|
1467
1691
|
})(TextInputStyle || (TextInputStyle = {}));
|
|
1692
|
+
export var TriggerType;
|
|
1693
|
+
(function (TriggerType) {
|
|
1694
|
+
/** check if content contains words from a user defined list of keywords */
|
|
1695
|
+
TriggerType[TriggerType["KEYWORD"] = 1] = "KEYWORD";
|
|
1696
|
+
/** check if content represents generic spam */
|
|
1697
|
+
TriggerType[TriggerType["SPAM"] = 3] = "SPAM";
|
|
1698
|
+
/** check if content contains words from internal pre-defined wordsets */
|
|
1699
|
+
TriggerType[TriggerType["KEYWORD_PRESET"] = 4] = "KEYWORD_PRESET";
|
|
1700
|
+
/** check if content contains more unique mentions than allowed */
|
|
1701
|
+
TriggerType[TriggerType["MENTION_SPAM"] = 5] = "MENTION_SPAM";
|
|
1702
|
+
})(TriggerType || (TriggerType = {}));
|
|
1468
1703
|
export const UserFlag = {
|
|
1469
1704
|
/** Discord Employee */
|
|
1470
1705
|
STAFF: 1 << 0,
|
|
1471
1706
|
/** Partnered Server Owner */
|
|
1472
1707
|
PARTNER: 1 << 1,
|
|
1473
|
-
/** HypeSquad Events
|
|
1708
|
+
/** HypeSquad Events Member */
|
|
1474
1709
|
HYPESQUAD: 1 << 2,
|
|
1475
1710
|
/** Bug Hunter Level 1 */
|
|
1476
1711
|
BUG_HUNTER_LEVEL_1: 1 << 3,
|
|
@@ -1494,6 +1729,8 @@ export const UserFlag = {
|
|
|
1494
1729
|
CERTIFIED_MODERATOR: 1 << 18,
|
|
1495
1730
|
/** Bot uses only HTTP interactions and is shown in the online member list */
|
|
1496
1731
|
BOT_HTTP_INTERACTIONS: 1 << 19,
|
|
1732
|
+
/** User is an Active Developer */
|
|
1733
|
+
ACTIVE_DEVELOPER: 1 << 22,
|
|
1497
1734
|
};
|
|
1498
1735
|
export var VerificationLevel;
|
|
1499
1736
|
(function (VerificationLevel) {
|