seyfert 4.4.1 → 4.6.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/README.md +7 -1
- package/lib/api/Routes/guilds.d.ts +12 -1
- package/lib/api/Routes/index.d.ts +3 -1
- package/lib/api/Routes/invites.d.ts +1 -1
- package/lib/api/Routes/oauth2.d.ts +11 -0
- package/lib/api/Routes/oauth2.js +2 -0
- package/lib/api/Routes/skus.d.ts +11 -4
- package/lib/api/Routes/users.d.ts +2 -1
- package/lib/api/Routes/voice.d.ts +4 -0
- package/lib/api/Routes/webhooks.d.ts +1 -1
- package/lib/api/api.d.ts +15 -5
- package/lib/api/api.js +243 -114
- package/lib/api/bucket.js +13 -7
- package/lib/api/shared.d.ts +3 -1
- package/lib/api/utils/constants.d.ts +1 -1
- package/lib/api/utils/constants.js +1 -1
- package/lib/builders/Attachment.d.ts +6 -1
- package/lib/builders/Attachment.js +13 -9
- package/lib/builders/CheckboxGroup.js +1 -1
- package/lib/builders/FileUpload.d.ts +8 -1
- package/lib/builders/FileUpload.js +9 -0
- package/lib/builders/RadioGroup.js +1 -1
- package/lib/client/base.d.ts +3 -3
- package/lib/client/client.d.ts +1 -1
- package/lib/client/client.js +5 -4
- package/lib/client/collectors.d.ts +10 -8
- package/lib/client/transformers.d.ts +5 -0
- package/lib/client/workerclient.d.ts +8 -1
- package/lib/client/workerclient.js +34 -14
- package/lib/commands/applications/chat.d.ts +6 -4
- package/lib/commands/applications/options.d.ts +6 -4
- package/lib/commands/applications/shared.d.ts +2 -2
- package/lib/commands/handle.d.ts +7 -3
- package/lib/commands/handle.js +36 -11
- package/lib/commands/handler.js +11 -0
- package/lib/commands/optionresolver.d.ts +6 -7
- package/lib/common/it/error.d.ts +13 -0
- package/lib/common/it/error.js +15 -1
- package/lib/common/it/logger.js +12 -9
- package/lib/common/shorters/application.d.ts +1 -1
- package/lib/common/shorters/application.js +1 -1
- package/lib/common/shorters/bans.js +1 -1
- package/lib/common/shorters/guilds.js +5 -1
- package/lib/common/shorters/interaction.js +7 -4
- package/lib/common/shorters/invites.d.ts +5 -0
- package/lib/common/shorters/members.js +2 -1
- package/lib/common/shorters/messages.js +2 -2
- package/lib/common/shorters/threads.js +1 -1
- package/lib/common/shorters/webhook.js +3 -3
- package/lib/common/types/util.d.ts +7 -0
- package/lib/components/componentcommand.js +2 -2
- package/lib/components/customId.d.ts +3 -0
- package/lib/components/customId.js +11 -0
- package/lib/components/handler.js +2 -3
- package/lib/components/modalcommand.js +2 -2
- package/lib/events/hooks/invite.d.ts +1 -0
- package/lib/events/hooks/presence.d.ts +1 -0
- package/lib/events/hooks/thread.d.ts +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/structures/AnonymousGuild.d.ts +1 -1
- package/lib/structures/AnonymousGuild.js +1 -1
- package/lib/structures/Guild.d.ts +3 -0
- package/lib/structures/GuildMember.d.ts +2 -2
- package/lib/structures/GuildMember.js +22 -4
- package/lib/structures/GuildPreview.d.ts +1 -1
- package/lib/structures/GuildPreview.js +1 -1
- package/lib/structures/GuildRole.d.ts +13 -0
- package/lib/structures/GuildRole.js +21 -0
- package/lib/structures/GuildTemplate.js +1 -1
- package/lib/structures/Interaction.d.ts +7 -7
- package/lib/structures/Interaction.js +35 -21
- package/lib/structures/Message.d.ts +2 -1
- package/lib/structures/channels.d.ts +29 -16
- package/lib/structures/channels.js +59 -19
- package/lib/structures/extra/BaseGuild.d.ts +4 -4
- package/lib/structures/extra/BaseGuild.js +4 -4
- package/lib/types/gateway.d.ts +243 -239
- package/lib/types/index.d.ts +2 -2
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/attachment.d.ts +5 -2
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/shared.d.ts +2 -2
- package/lib/types/payloads/_interactions/_applicationCommands/_chatInput/shared.js +1 -1
- package/lib/types/payloads/_interactions/_applicationCommands/chatInput.d.ts +7 -7
- package/lib/types/payloads/_interactions/_applicationCommands/contextMenu.d.ts +13 -13
- package/lib/types/payloads/_interactions/_applicationCommands/permissions.d.ts +4 -4
- package/lib/types/payloads/_interactions/_applicationCommands/permissions.js +2 -2
- package/lib/types/payloads/_interactions/applicationCommands.d.ts +10 -10
- package/lib/types/payloads/_interactions/applicationCommands.js +4 -4
- package/lib/types/payloads/_interactions/autocomplete.d.ts +2 -2
- package/lib/types/payloads/_interactions/base.d.ts +13 -7
- package/lib/types/payloads/_interactions/modalSubmit.d.ts +4 -4
- package/lib/types/payloads/_interactions/responses.d.ts +10 -10
- package/lib/types/payloads/_interactions/responses.js +2 -2
- package/lib/types/payloads/application.d.ts +21 -15
- package/lib/types/payloads/application.js +7 -7
- package/lib/types/payloads/auditLog.d.ts +22 -17
- package/lib/types/payloads/auditLog.js +7 -2
- package/lib/types/payloads/autoModeration.d.ts +11 -11
- package/lib/types/payloads/autoModeration.js +5 -5
- package/lib/types/payloads/channel.d.ts +87 -78
- package/lib/types/payloads/channel.js +16 -11
- package/lib/types/payloads/components.d.ts +41 -31
- package/lib/types/payloads/components.js +9 -5
- package/lib/types/payloads/emoji.d.ts +2 -2
- package/lib/types/payloads/emoji.js +1 -1
- package/lib/types/payloads/gateway.d.ts +33 -29
- package/lib/types/payloads/gateway.js +5 -5
- package/lib/types/payloads/guild.d.ts +68 -68
- package/lib/types/payloads/guild.js +14 -14
- package/lib/types/payloads/guildScheduledEvent.d.ts +11 -11
- package/lib/types/payloads/guildScheduledEvent.js +3 -3
- package/lib/types/payloads/index.d.ts +2 -2
- package/lib/types/payloads/interactions.d.ts +3 -3
- package/lib/types/payloads/invite.d.ts +11 -11
- package/lib/types/payloads/invite.js +3 -3
- package/lib/types/payloads/monetization.d.ts +4 -4
- package/lib/types/payloads/monetization.js +2 -2
- package/lib/types/payloads/oauth2.d.ts +21 -17
- package/lib/types/payloads/oauth2.js +21 -17
- package/lib/types/payloads/permissions.d.ts +5 -5
- package/lib/types/payloads/permissions.js +2 -2
- package/lib/types/payloads/poll.d.ts +7 -7
- package/lib/types/payloads/poll.js +2 -2
- package/lib/types/payloads/soundboard.d.ts +2 -2
- package/lib/types/payloads/soundboard.js +1 -1
- package/lib/types/payloads/stageInstance.d.ts +5 -5
- package/lib/types/payloads/stageInstance.js +1 -1
- package/lib/types/payloads/sticker.d.ts +8 -8
- package/lib/types/payloads/sticker.js +3 -3
- package/lib/types/payloads/teams.d.ts +8 -8
- package/lib/types/payloads/teams.js +3 -3
- package/lib/types/payloads/template.d.ts +3 -3
- package/lib/types/payloads/template.js +1 -1
- package/lib/types/payloads/user.d.ts +24 -22
- package/lib/types/payloads/user.js +7 -5
- package/lib/types/payloads/voice.d.ts +4 -4
- package/lib/types/payloads/voice.js +1 -1
- package/lib/types/payloads/webhokEvents.d.ts +5 -5
- package/lib/types/payloads/webhokEvents.js +2 -2
- package/lib/types/payloads/webhook.d.ts +4 -4
- package/lib/types/payloads/webhook.js +1 -1
- package/lib/types/rest/application.d.ts +14 -14
- package/lib/types/rest/auditLog.d.ts +1 -1
- package/lib/types/rest/autoModeration.d.ts +7 -7
- package/lib/types/rest/channel.d.ts +79 -74
- package/lib/types/rest/channel.js +1 -1
- package/lib/types/rest/emoji.d.ts +8 -8
- package/lib/types/rest/gateway.d.ts +2 -2
- package/lib/types/rest/guild.d.ts +98 -98
- package/lib/types/rest/guild.js +5 -5
- package/lib/types/rest/guildScheduledEvent.d.ts +11 -11
- package/lib/types/rest/index.d.ts +34 -3
- package/lib/types/rest/index.js +33 -2
- package/lib/types/rest/interactions.d.ts +48 -48
- package/lib/types/rest/invite.d.ts +5 -5
- package/lib/types/rest/monetization.d.ts +9 -9
- package/lib/types/rest/monetization.js +1 -1
- package/lib/types/rest/oauth2.d.ts +22 -18
- package/lib/types/rest/poll.d.ts +4 -4
- package/lib/types/rest/soundboard.d.ts +8 -8
- package/lib/types/rest/stageInstance.d.ts +6 -6
- package/lib/types/rest/sticker.d.ts +10 -10
- package/lib/types/rest/template.d.ts +11 -11
- package/lib/types/rest/user.d.ts +18 -14
- package/lib/types/rest/voice.d.ts +5 -5
- package/lib/types/rest/webhook.d.ts +38 -38
- package/lib/types/utils/index.d.ts +19 -19
- package/lib/types/utils/index.js +19 -19
- package/lib/websocket/SharedTypes.d.ts +2 -2
- package/lib/websocket/constants/index.js +2 -2
- package/lib/websocket/discord/heartbeater.d.ts +1 -0
- package/lib/websocket/discord/heartbeater.js +8 -0
- package/lib/websocket/discord/shard.d.ts +19 -10
- package/lib/websocket/discord/shard.js +255 -122
- package/lib/websocket/discord/sharder.d.ts +2 -2
- package/lib/websocket/discord/sharder.js +2 -2
- package/lib/websocket/discord/shared.d.ts +7 -2
- package/lib/websocket/discord/workermanager.d.ts +3 -1
- package/lib/websocket/discord/workermanager.js +31 -24
- package/package.json +3 -3
|
@@ -16,7 +16,7 @@ export interface RESTAPIGuildCreateRole extends RESTPostAPIGuildRoleJSONBody {
|
|
|
16
16
|
id: number | string;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* https://discord.com/developers/
|
|
19
|
+
* https://docs.discord.com/developers/resources/guild#create-guild
|
|
20
20
|
* @deprecated
|
|
21
21
|
*/
|
|
22
22
|
export interface RESTPostAPIGuildsJSONBody {
|
|
@@ -27,31 +27,31 @@ export interface RESTPostAPIGuildsJSONBody {
|
|
|
27
27
|
/**
|
|
28
28
|
* Voice region id
|
|
29
29
|
*
|
|
30
|
-
* See https://discord.com/developers/
|
|
30
|
+
* See https://docs.discord.com/developers/resources/voice#voice-region-object
|
|
31
31
|
*/
|
|
32
32
|
region?: string | undefined;
|
|
33
33
|
/**
|
|
34
34
|
* base64 1024x1024 png/jpeg image for the guild icon
|
|
35
35
|
*
|
|
36
|
-
* See https://discord.com/developers/
|
|
36
|
+
* See https://docs.discord.com/developers/reference#image-data
|
|
37
37
|
*/
|
|
38
38
|
icon?: string | undefined;
|
|
39
39
|
/**
|
|
40
40
|
* Verification level
|
|
41
41
|
*
|
|
42
|
-
* See https://discord.com/developers/
|
|
42
|
+
* See https://docs.discord.com/developers/resources/guild#guild-object-verification-level
|
|
43
43
|
*/
|
|
44
44
|
verification_level?: GuildVerificationLevel | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* Default message notification level
|
|
47
47
|
*
|
|
48
|
-
* See https://discord.com/developers/
|
|
48
|
+
* See https://docs.discord.com/developers/resources/guild#guild-object-default-message-notification-level
|
|
49
49
|
*/
|
|
50
50
|
default_message_notifications?: GuildDefaultMessageNotifications | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* Explicit content filter level
|
|
53
53
|
*
|
|
54
|
-
* See https://discord.com/developers/
|
|
54
|
+
* See https://docs.discord.com/developers/resources/guild#guild-object-explicit-content-filter-level
|
|
55
55
|
*/
|
|
56
56
|
explicit_content_filter?: GuildExplicitContentFilter | undefined;
|
|
57
57
|
/**
|
|
@@ -65,7 +65,7 @@ export interface RESTPostAPIGuildsJSONBody {
|
|
|
65
65
|
* and will be replaced by the API upon consumption. Its purpose is to allow you to overwrite a role's permissions
|
|
66
66
|
* in a channel when also passing in channels with the channels array.
|
|
67
67
|
*
|
|
68
|
-
* See https://discord.com/developers/
|
|
68
|
+
* See https://docs.discord.com/developers/topics/permissions#role-object
|
|
69
69
|
*/
|
|
70
70
|
roles?: RESTAPIGuildCreateRole[] | undefined;
|
|
71
71
|
/**
|
|
@@ -79,7 +79,7 @@ export interface RESTPostAPIGuildsJSONBody {
|
|
|
79
79
|
* by setting the `parent_id` field on any children to the category's id field.
|
|
80
80
|
* Category channels must be listed before any children.
|
|
81
81
|
*
|
|
82
|
-
* See https://discord.com/developers/
|
|
82
|
+
* See https://docs.discord.com/developers/resources/channel#channel-object
|
|
83
83
|
*/
|
|
84
84
|
channels?: RESTAPIGuildCreatePartialChannel[] | undefined;
|
|
85
85
|
/**
|
|
@@ -97,7 +97,7 @@ export interface RESTPostAPIGuildsJSONBody {
|
|
|
97
97
|
/**
|
|
98
98
|
* System channel flags
|
|
99
99
|
*
|
|
100
|
-
* See https://discord.com/developers/
|
|
100
|
+
* See https://docs.discord.com/developers/resources/guild#guild-object-system-channel-flags
|
|
101
101
|
*/
|
|
102
102
|
system_channel_flags?: GuildSystemChannelFlags | undefined;
|
|
103
103
|
/**
|
|
@@ -106,26 +106,26 @@ export interface RESTPostAPIGuildsJSONBody {
|
|
|
106
106
|
premium_progress_bar_enabled?: boolean | undefined;
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* https://discord.com/developers/
|
|
109
|
+
* https://docs.discord.com/developers/resources/guild#create-guild
|
|
110
110
|
*/
|
|
111
111
|
export type RESTPostAPIGuildsResult = APIGuild;
|
|
112
112
|
/**
|
|
113
|
-
* https://discord.com/developers/
|
|
113
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-mfa-level
|
|
114
114
|
*/
|
|
115
115
|
export interface RESTPostAPIGuildsMFAJSONBody {
|
|
116
116
|
/**
|
|
117
117
|
* MFA level
|
|
118
118
|
*
|
|
119
|
-
* See https://discord.com/developers/
|
|
119
|
+
* See https://docs.discord.com/developers/resources/guild#guild-object-mfa-level
|
|
120
120
|
*/
|
|
121
121
|
level: GuildMFALevel;
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
|
-
* https://discord.com/developers/
|
|
124
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-mfa-level
|
|
125
125
|
*/
|
|
126
126
|
export type RESTPostAPIGuildsMFAResult = RESTPostAPIGuildsMFAJSONBody;
|
|
127
127
|
/**
|
|
128
|
-
* https://discord.com/developers/
|
|
128
|
+
* https://docs.discord.com/developers/resources/guild#get-guild
|
|
129
129
|
*/
|
|
130
130
|
export interface RESTGetAPIGuildQuery {
|
|
131
131
|
/**
|
|
@@ -136,15 +136,15 @@ export interface RESTGetAPIGuildQuery {
|
|
|
136
136
|
with_counts?: boolean;
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
|
-
* https://discord.com/developers/
|
|
139
|
+
* https://docs.discord.com/developers/resources/guild#get-guild
|
|
140
140
|
*/
|
|
141
141
|
export type RESTGetAPIGuildResult = APIGuild;
|
|
142
142
|
/**
|
|
143
|
-
* https://discord.com/developers/
|
|
143
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-preview
|
|
144
144
|
*/
|
|
145
145
|
export type RESTGetAPIGuildPreviewResult = APIGuildPreview;
|
|
146
146
|
/**
|
|
147
|
-
* https://discord.com/developers/
|
|
147
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild
|
|
148
148
|
*/
|
|
149
149
|
export interface RESTPatchAPIGuildJSONBody {
|
|
150
150
|
/**
|
|
@@ -154,25 +154,25 @@ export interface RESTPatchAPIGuildJSONBody {
|
|
|
154
154
|
/**
|
|
155
155
|
* Voice region id
|
|
156
156
|
*
|
|
157
|
-
* See https://discord.com/developers/
|
|
157
|
+
* See https://docs.discord.com/developers/resources/voice#voice-region-object
|
|
158
158
|
*/
|
|
159
159
|
region?: string | null | undefined;
|
|
160
160
|
/**
|
|
161
161
|
* Verification level
|
|
162
162
|
*
|
|
163
|
-
* See https://discord.com/developers/
|
|
163
|
+
* See https://docs.discord.com/developers/resources/guild#guild-object-verification-level
|
|
164
164
|
*/
|
|
165
165
|
verification_level?: GuildVerificationLevel | null | undefined;
|
|
166
166
|
/**
|
|
167
167
|
* Default message notification level
|
|
168
168
|
*
|
|
169
|
-
* See https://discord.com/developers/
|
|
169
|
+
* See https://docs.discord.com/developers/resources/guild#guild-object-default-message-notification-level
|
|
170
170
|
*/
|
|
171
171
|
default_message_notifications?: GuildDefaultMessageNotifications | null | undefined;
|
|
172
172
|
/**
|
|
173
173
|
* Explicit content filter level
|
|
174
174
|
*
|
|
175
|
-
* See https://discord.com/developers/
|
|
175
|
+
* See https://docs.discord.com/developers/resources/guild#guild-object-explicit-content-filter-level
|
|
176
176
|
*/
|
|
177
177
|
explicit_content_filter?: GuildExplicitContentFilter | null | undefined;
|
|
178
178
|
/**
|
|
@@ -186,7 +186,7 @@ export interface RESTPatchAPIGuildJSONBody {
|
|
|
186
186
|
/**
|
|
187
187
|
* base64 1024x1024 png/jpeg/gif image for the guild icon (can be animated gif when the guild has `ANIMATED_ICON` feature)
|
|
188
188
|
*
|
|
189
|
-
* See https://discord.com/developers/
|
|
189
|
+
* See https://docs.discord.com/developers/reference#image-data
|
|
190
190
|
*/
|
|
191
191
|
icon?: string | null | undefined;
|
|
192
192
|
/**
|
|
@@ -196,7 +196,7 @@ export interface RESTPatchAPIGuildJSONBody {
|
|
|
196
196
|
/**
|
|
197
197
|
* base64 16:9 png/jpeg image for the guild splash (when the guild has `INVITE_SPLASH` feature)
|
|
198
198
|
*
|
|
199
|
-
* See https://discord.com/developers/
|
|
199
|
+
* See https://docs.discord.com/developers/reference#image-data
|
|
200
200
|
*/
|
|
201
201
|
splash?: string | null | undefined;
|
|
202
202
|
/**
|
|
@@ -214,7 +214,7 @@ export interface RESTPatchAPIGuildJSONBody {
|
|
|
214
214
|
/**
|
|
215
215
|
* System channel flags
|
|
216
216
|
*
|
|
217
|
-
* See https://discord.com/developers/
|
|
217
|
+
* See https://docs.discord.com/developers/resources/guild#guild-object-system-channel-flags
|
|
218
218
|
*/
|
|
219
219
|
system_channel_flags?: GuildSystemChannelFlags | undefined;
|
|
220
220
|
/**
|
|
@@ -234,7 +234,7 @@ export interface RESTPatchAPIGuildJSONBody {
|
|
|
234
234
|
/**
|
|
235
235
|
* Enabled guild features
|
|
236
236
|
*
|
|
237
|
-
* See https://discord.com/developers/
|
|
237
|
+
* See https://docs.discord.com/developers/resources/guild#guild-object-guild-features
|
|
238
238
|
*/
|
|
239
239
|
features?: GuildFeature[] | undefined;
|
|
240
240
|
/**
|
|
@@ -251,27 +251,27 @@ export interface RESTPatchAPIGuildJSONBody {
|
|
|
251
251
|
safety_alerts_channel_id?: Snowflake | null | undefined;
|
|
252
252
|
}
|
|
253
253
|
/**
|
|
254
|
-
* https://discord.com/developers/
|
|
254
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild
|
|
255
255
|
*/
|
|
256
256
|
export type RESTPatchAPIGuildResult = APIGuild;
|
|
257
257
|
/**
|
|
258
|
-
* https://discord.com/developers/
|
|
258
|
+
* https://docs.discord.com/developers/resources/guild#delete-guild
|
|
259
259
|
*/
|
|
260
260
|
export type RESTDeleteAPIGuildResult = undefined;
|
|
261
261
|
/**
|
|
262
|
-
* https://discord.com/developers/
|
|
262
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-channels
|
|
263
263
|
*/
|
|
264
264
|
export type RESTGetAPIGuildChannelsResult = APIChannel[];
|
|
265
265
|
/**
|
|
266
|
-
* https://discord.com/developers/
|
|
266
|
+
* https://docs.discord.com/developers/resources/guild#create-guild-channel
|
|
267
267
|
*/
|
|
268
268
|
export type RESTPostAPIGuildChannelJSONBody = DistributiveOmit<RESTAPIGuildCreatePartialChannel, 'id'>;
|
|
269
269
|
/**
|
|
270
|
-
* https://discord.com/developers/
|
|
270
|
+
* https://docs.discord.com/developers/resources/guild#create-guild-channel
|
|
271
271
|
*/
|
|
272
272
|
export type RESTPostAPIGuildChannelResult = APIChannel;
|
|
273
273
|
/**
|
|
274
|
-
* https://discord.com/developers/
|
|
274
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-channel-positions
|
|
275
275
|
*/
|
|
276
276
|
export type RESTPatchAPIGuildChannelPositionsJSONBody = {
|
|
277
277
|
/**
|
|
@@ -292,19 +292,19 @@ export type RESTPatchAPIGuildChannelPositionsJSONBody = {
|
|
|
292
292
|
parent_id?: Snowflake | null | undefined;
|
|
293
293
|
}[];
|
|
294
294
|
/**
|
|
295
|
-
* https://discord.com/developers/
|
|
295
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-channel-positions
|
|
296
296
|
*/
|
|
297
297
|
export type RESTPatchAPIGuildChannelPositionsResult = undefined;
|
|
298
298
|
/**
|
|
299
|
-
* https://discord.com/developers/
|
|
299
|
+
* https://docs.discord.com/developers/resources/guild#list-active-guild-threads
|
|
300
300
|
*/
|
|
301
301
|
export type RESTGetAPIGuildThreadsResult = APIThreadList;
|
|
302
302
|
/**
|
|
303
|
-
* https://discord.com/developers/
|
|
303
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-member
|
|
304
304
|
*/
|
|
305
305
|
export type RESTGetAPIGuildMemberResult = APIGuildMember;
|
|
306
306
|
/**
|
|
307
|
-
* https://discord.com/developers/
|
|
307
|
+
* https://docs.discord.com/developers/resources/guild#list-guild-members
|
|
308
308
|
*/
|
|
309
309
|
export interface RESTGetAPIGuildMembersQuery {
|
|
310
310
|
/**
|
|
@@ -321,11 +321,11 @@ export interface RESTGetAPIGuildMembersQuery {
|
|
|
321
321
|
after?: Snowflake;
|
|
322
322
|
}
|
|
323
323
|
/**
|
|
324
|
-
* https://discord.com/developers/
|
|
324
|
+
* https://docs.discord.com/developers/resources/guild#list-guild-members
|
|
325
325
|
*/
|
|
326
326
|
export type RESTGetAPIGuildMembersResult = APIGuildMember[];
|
|
327
327
|
/**
|
|
328
|
-
* https://discord.com/developers/
|
|
328
|
+
* https://docs.discord.com/developers/resources/guild#search-guild-members
|
|
329
329
|
*/
|
|
330
330
|
export interface RESTGetAPIGuildMembersSearchQuery {
|
|
331
331
|
/**
|
|
@@ -341,7 +341,7 @@ export interface RESTGetAPIGuildMembersSearchQuery {
|
|
|
341
341
|
}
|
|
342
342
|
export type RESTGetAPIGuildMembersSearchResult = APIGuildMember[];
|
|
343
343
|
/**
|
|
344
|
-
* https://discord.com/developers/
|
|
344
|
+
* https://docs.discord.com/developers/resources/guild#add-guild-member
|
|
345
345
|
*/
|
|
346
346
|
export interface RESTPutAPIGuildMemberJSONBody {
|
|
347
347
|
/**
|
|
@@ -375,7 +375,7 @@ export interface RESTPutAPIGuildMemberJSONBody {
|
|
|
375
375
|
}
|
|
376
376
|
export type RESTPutAPIGuildMemberResult = APIGuildMember | undefined;
|
|
377
377
|
/**
|
|
378
|
-
* https://discord.com/developers/
|
|
378
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-member
|
|
379
379
|
*/
|
|
380
380
|
export interface RESTPatchAPIGuildMemberJSONBody {
|
|
381
381
|
/**
|
|
@@ -414,11 +414,11 @@ export interface RESTPatchAPIGuildMemberJSONBody {
|
|
|
414
414
|
communication_disabled_until?: string | null | undefined;
|
|
415
415
|
}
|
|
416
416
|
/**
|
|
417
|
-
* https://discord.com/developers/
|
|
417
|
+
* https://docs.discord.com/developers/resources/guild#add-guild-member
|
|
418
418
|
*/
|
|
419
419
|
export type RESTPatchAPIGuildMemberResult = APIGuildMember;
|
|
420
420
|
/**
|
|
421
|
-
* https://discord.com/developers/
|
|
421
|
+
* https://docs.discord.com/developers/resources/guild#modify-current-member
|
|
422
422
|
*/
|
|
423
423
|
export interface RESTPatchAPICurrentGuildMemberJSONBody {
|
|
424
424
|
/**
|
|
@@ -441,27 +441,27 @@ export interface RESTPatchAPICurrentGuildMemberJSONBody {
|
|
|
441
441
|
bio?: string | null | undefined;
|
|
442
442
|
}
|
|
443
443
|
/**
|
|
444
|
-
* https://discord.com/developers/
|
|
444
|
+
* https://docs.discord.com/developers/resources/guild#modify-current-member
|
|
445
445
|
*/
|
|
446
446
|
export type RESTPatchAPICurrentGuildMemberResult = APIGuildMember;
|
|
447
447
|
/**
|
|
448
|
-
* https://discord.com/developers/
|
|
448
|
+
* https://docs.discord.com/developers/resources/guild#add-guild-member-role
|
|
449
449
|
*/
|
|
450
450
|
export type RESTPutAPIGuildMemberRoleResult = undefined;
|
|
451
451
|
/**
|
|
452
|
-
* https://discord.com/developers/
|
|
452
|
+
* https://docs.discord.com/developers/resources/guild#remove-guild-member-role
|
|
453
453
|
*/
|
|
454
454
|
export type RESTDeleteAPIGuildMemberRoleResult = undefined;
|
|
455
455
|
/**
|
|
456
|
-
* https://discord.com/developers/
|
|
456
|
+
* https://docs.discord.com/developers/resources/guild#remove-guild-member
|
|
457
457
|
*/
|
|
458
458
|
export type RESTDeleteAPIGuildMemberResult = undefined;
|
|
459
459
|
/**
|
|
460
|
-
* https://discord.com/developers/
|
|
460
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-bans
|
|
461
461
|
*/
|
|
462
462
|
export type RESTGetAPIGuildBansResult = APIBan[];
|
|
463
463
|
/**
|
|
464
|
-
* https://discord.com/developers/
|
|
464
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-bans
|
|
465
465
|
*/
|
|
466
466
|
export interface RESTGetAPIGuildBansQuery {
|
|
467
467
|
/**
|
|
@@ -480,11 +480,11 @@ export interface RESTGetAPIGuildBansQuery {
|
|
|
480
480
|
limit?: number;
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
483
|
-
* https://discord.com/developers/
|
|
483
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-ban
|
|
484
484
|
*/
|
|
485
485
|
export type RESTGetAPIGuildBanResult = APIBan;
|
|
486
486
|
/**
|
|
487
|
-
* https://discord.com/developers/
|
|
487
|
+
* https://docs.discord.com/developers/resources/guild#create-guild-ban
|
|
488
488
|
*/
|
|
489
489
|
export interface RESTPutAPIGuildBanJSONBody {
|
|
490
490
|
/**
|
|
@@ -493,15 +493,15 @@ export interface RESTPutAPIGuildBanJSONBody {
|
|
|
493
493
|
delete_message_seconds?: number | undefined;
|
|
494
494
|
}
|
|
495
495
|
/**
|
|
496
|
-
* https://discord.com/developers/
|
|
496
|
+
* https://docs.discord.com/developers/resources/guild#create-guild-ban
|
|
497
497
|
*/
|
|
498
498
|
export type RESTPutAPIGuildBanResult = undefined;
|
|
499
499
|
/**
|
|
500
|
-
* https://discord.com/developers/
|
|
500
|
+
* https://docs.discord.com/developers/resources/guild#remove-guild-ban
|
|
501
501
|
*/
|
|
502
502
|
export type RESTDeleteAPIGuildBanResult = undefined;
|
|
503
503
|
/**
|
|
504
|
-
* https://discord.com/developers/
|
|
504
|
+
* https://docs.discord.com/developers/resources/guild#bulk-guild-ban
|
|
505
505
|
*/
|
|
506
506
|
export interface RESTPostAPIGuildBulkBanJSONBody {
|
|
507
507
|
/**
|
|
@@ -514,7 +514,7 @@ export interface RESTPostAPIGuildBulkBanJSONBody {
|
|
|
514
514
|
delete_message_seconds?: number | undefined;
|
|
515
515
|
}
|
|
516
516
|
/**
|
|
517
|
-
* https://discord.com/developers/
|
|
517
|
+
* https://docs.discord.com/developers/resources/guild#bulk-guild-ban
|
|
518
518
|
*/
|
|
519
519
|
export interface RESTPostAPIGuildBulkBanResult {
|
|
520
520
|
/**
|
|
@@ -527,15 +527,15 @@ export interface RESTPostAPIGuildBulkBanResult {
|
|
|
527
527
|
failed_users: Snowflake[];
|
|
528
528
|
}
|
|
529
529
|
/**
|
|
530
|
-
* https://discord.com/developers/
|
|
530
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-roles
|
|
531
531
|
*/
|
|
532
532
|
export type RESTGetAPIGuildRolesResult = APIRole[];
|
|
533
533
|
/**
|
|
534
|
-
* https://discord.com/developers/
|
|
534
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-role
|
|
535
535
|
*/
|
|
536
536
|
export type RESTGetAPIGuildRoleResult = APIRole;
|
|
537
537
|
/**
|
|
538
|
-
* https://discord.com/developers/
|
|
538
|
+
* https://docs.discord.com/developers/resources/guild#create-guild-role
|
|
539
539
|
*/
|
|
540
540
|
export interface RESTPostAPIGuildRoleJSONBody {
|
|
541
541
|
/**
|
|
@@ -582,11 +582,11 @@ export interface RESTPostAPIGuildRoleJSONBody {
|
|
|
582
582
|
mentionable?: boolean | null | undefined;
|
|
583
583
|
}
|
|
584
584
|
/**
|
|
585
|
-
* https://discord.com/developers/
|
|
585
|
+
* https://docs.discord.com/developers/resources/guild#create-guild-role
|
|
586
586
|
*/
|
|
587
587
|
export type RESTPostAPIGuildRoleResult = APIRole;
|
|
588
588
|
/**
|
|
589
|
-
* https://discord.com/developers/
|
|
589
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-role-positions
|
|
590
590
|
*/
|
|
591
591
|
export type RESTPatchAPIGuildRolePositionsJSONBody = {
|
|
592
592
|
/**
|
|
@@ -599,11 +599,11 @@ export type RESTPatchAPIGuildRolePositionsJSONBody = {
|
|
|
599
599
|
position?: number | undefined;
|
|
600
600
|
}[];
|
|
601
601
|
/**
|
|
602
|
-
* https://discord.com/developers/
|
|
602
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-role-positions
|
|
603
603
|
*/
|
|
604
604
|
export type RESTPatchAPIGuildRolePositionsResult = APIRole[];
|
|
605
605
|
/**
|
|
606
|
-
* https://discord.com/developers/
|
|
606
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-role
|
|
607
607
|
*/
|
|
608
608
|
export interface RESTPatchAPIGuildRoleJSONBody {
|
|
609
609
|
/**
|
|
@@ -640,19 +640,19 @@ export interface RESTPatchAPIGuildRoleJSONBody {
|
|
|
640
640
|
mentionable?: boolean | null | undefined;
|
|
641
641
|
}
|
|
642
642
|
/**
|
|
643
|
-
* https://discord.com/developers/
|
|
643
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-role
|
|
644
644
|
*/
|
|
645
645
|
export type RESTPatchAPIGuildRoleResult = APIRole;
|
|
646
646
|
/**
|
|
647
|
-
* https://discord.com/developers/
|
|
647
|
+
* https://docs.discord.com/developers/resources/guild#delete-guild-role
|
|
648
648
|
*/
|
|
649
649
|
export type RESTDeleteAPIGuildRoleResult = undefined;
|
|
650
650
|
/**
|
|
651
|
-
* https://discord.com/developers/
|
|
651
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-role-member-counts
|
|
652
652
|
*/
|
|
653
653
|
export type RESTGetAPIGuildRoleMemberCountsResult = Record<string, number>;
|
|
654
654
|
/**
|
|
655
|
-
* https://discord.com/developers/
|
|
655
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-prune-count
|
|
656
656
|
*/
|
|
657
657
|
export interface RESTGetAPIGuildPruneCountQuery {
|
|
658
658
|
/**
|
|
@@ -667,18 +667,18 @@ export interface RESTGetAPIGuildPruneCountQuery {
|
|
|
667
667
|
* While this is typed as a string, it represents an array of
|
|
668
668
|
* role IDs delimited by commas
|
|
669
669
|
*
|
|
670
|
-
* See https://discord.com/developers/
|
|
670
|
+
* See https://docs.discord.com/developers/resources/guild#get-guild-prune-count-query-string-params
|
|
671
671
|
*/
|
|
672
672
|
include_roles?: string;
|
|
673
673
|
}
|
|
674
674
|
/**
|
|
675
|
-
* https://discord.com/developers/
|
|
675
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-prune-count
|
|
676
676
|
*/
|
|
677
677
|
export interface RESTGetAPIGuildPruneCountResult {
|
|
678
678
|
pruned: number;
|
|
679
679
|
}
|
|
680
680
|
/**
|
|
681
|
-
* https://discord.com/developers/
|
|
681
|
+
* https://docs.discord.com/developers/resources/guild#begin-guild-prune
|
|
682
682
|
*/
|
|
683
683
|
export interface RESTPostAPIGuildPruneJSONBody {
|
|
684
684
|
/**
|
|
@@ -699,52 +699,52 @@ export interface RESTPostAPIGuildPruneJSONBody {
|
|
|
699
699
|
include_roles?: Snowflake[] | undefined;
|
|
700
700
|
}
|
|
701
701
|
/**
|
|
702
|
-
* https://discord.com/developers/
|
|
702
|
+
* https://docs.discord.com/developers/resources/guild#begin-guild-prune
|
|
703
703
|
*/
|
|
704
704
|
export interface RESTPostAPIGuildPruneResult {
|
|
705
705
|
pruned: number | null;
|
|
706
706
|
}
|
|
707
707
|
/**
|
|
708
|
-
* https://discord.com/developers/
|
|
708
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-voice-regions
|
|
709
709
|
*/
|
|
710
710
|
export type RESTGetAPIGuildVoiceRegionsResult = APIVoiceRegion[];
|
|
711
711
|
/**
|
|
712
|
-
* https://discord.com/developers/
|
|
712
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-invites
|
|
713
713
|
*/
|
|
714
714
|
export type RESTGetAPIGuildInvitesResult = APIExtendedInvite[];
|
|
715
715
|
/**
|
|
716
|
-
* https://discord.com/developers/
|
|
716
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-integrations
|
|
717
717
|
*/
|
|
718
718
|
export type RESTGetAPIGuildIntegrationsResult = APIGuildIntegration[];
|
|
719
719
|
/**
|
|
720
|
-
* https://discord.com/developers/
|
|
720
|
+
* https://docs.discord.com/developers/resources/guild#delete-guild-integration
|
|
721
721
|
*/
|
|
722
722
|
export type RESTDeleteAPIGuildIntegrationResult = undefined;
|
|
723
723
|
/**
|
|
724
|
-
* https://discord.com/developers/
|
|
724
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-widget-settings
|
|
725
725
|
*/
|
|
726
726
|
export type RESTGetAPIGuildWidgetSettingsResult = APIGuildWidgetSettings;
|
|
727
727
|
/**
|
|
728
|
-
* https://discord.com/developers/
|
|
728
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-widget
|
|
729
729
|
*/
|
|
730
730
|
export type RESTPatchAPIGuildWidgetSettingsJSONBody = StrictPartial<APIGuildWidgetSettings>;
|
|
731
731
|
/**
|
|
732
|
-
* https://discord.com/developers/
|
|
732
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-widget
|
|
733
733
|
*/
|
|
734
734
|
export type RESTPatchAPIGuildWidgetSettingsResult = APIGuildWidgetSettings;
|
|
735
735
|
/**
|
|
736
|
-
* https://discord.com/developers/
|
|
736
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-widget
|
|
737
737
|
*/
|
|
738
738
|
export type RESTGetAPIGuildWidgetJSONResult = APIGuildWidget;
|
|
739
739
|
/**
|
|
740
|
-
* https://discord.com/developers/
|
|
740
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-vanity-url
|
|
741
741
|
*/
|
|
742
742
|
export interface RESTGetAPIGuildVanityUrlResult {
|
|
743
743
|
code: string | null;
|
|
744
744
|
uses: number;
|
|
745
745
|
}
|
|
746
746
|
/**
|
|
747
|
-
* https://discord.com/developers/
|
|
747
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-widget-image
|
|
748
748
|
*/
|
|
749
749
|
export interface RESTGetAPIGuildWidgetImageQuery {
|
|
750
750
|
/**
|
|
@@ -776,7 +776,7 @@ export interface RESTPatchAPIGuildMemberVerificationJSONBody {
|
|
|
776
776
|
}
|
|
777
777
|
export type RESTPatchAPIGuildMemberVerificationResult = APIGuildMembershipScreening;
|
|
778
778
|
/**
|
|
779
|
-
* https://discord.com/developers/
|
|
779
|
+
* https://docs.discord.com/developers/resources/guild#modify-current-user-voice-state
|
|
780
780
|
*/
|
|
781
781
|
export interface RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody {
|
|
782
782
|
/**
|
|
@@ -793,11 +793,11 @@ export interface RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody {
|
|
|
793
793
|
request_to_speak_timestamp?: string | null | undefined;
|
|
794
794
|
}
|
|
795
795
|
/**
|
|
796
|
-
* https://discord.com/developers/
|
|
796
|
+
* https://docs.discord.com/developers/resources/guild#modify-current-user-voice-state
|
|
797
797
|
*/
|
|
798
798
|
export type RESTPatchAPIGuildVoiceStateCurrentMemberResult = undefined;
|
|
799
799
|
/**
|
|
800
|
-
* https://discord.com/developers/
|
|
800
|
+
* https://docs.discord.com/developers/resources/guild#modify-user-voice-state
|
|
801
801
|
*/
|
|
802
802
|
export interface RESTPatchAPIGuildVoiceStateUserJSONBody {
|
|
803
803
|
/**
|
|
@@ -810,15 +810,15 @@ export interface RESTPatchAPIGuildVoiceStateUserJSONBody {
|
|
|
810
810
|
suppress?: boolean | undefined;
|
|
811
811
|
}
|
|
812
812
|
/**
|
|
813
|
-
* https://discord.com/developers/
|
|
813
|
+
* https://docs.discord.com/developers/resources/guild#modify-user-voice-state
|
|
814
814
|
*/
|
|
815
815
|
export type RESTPatchAPIGuildVoiceStateUserResult = undefined;
|
|
816
816
|
/**
|
|
817
|
-
* https://discord.com/developers/
|
|
817
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-welcome-screen
|
|
818
818
|
*/
|
|
819
819
|
export type RESTGetAPIGuildWelcomeScreenResult = APIGuildWelcomeScreen;
|
|
820
820
|
/**
|
|
821
|
-
* https://discord.com/developers/
|
|
821
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-welcome-screen
|
|
822
822
|
*/
|
|
823
823
|
export type RESTPatchAPIGuildWelcomeScreenJSONBody = Nullable<StrictPartial<APIGuildWelcomeScreen>> & {
|
|
824
824
|
/**
|
|
@@ -827,15 +827,15 @@ export type RESTPatchAPIGuildWelcomeScreenJSONBody = Nullable<StrictPartial<APIG
|
|
|
827
827
|
enabled?: boolean | null | undefined;
|
|
828
828
|
};
|
|
829
829
|
/**
|
|
830
|
-
* https://discord.com/developers/
|
|
830
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-welcome-screen
|
|
831
831
|
*/
|
|
832
832
|
export type RESTPatchAPIGuildWelcomeScreenResult = APIGuildWelcomeScreen;
|
|
833
833
|
/**
|
|
834
|
-
* https://discord.com/developers/
|
|
834
|
+
* https://docs.discord.com/developers/resources/guild#get-guild-onboarding
|
|
835
835
|
*/
|
|
836
836
|
export type RESTGetAPIGuildOnboardingResult = APIGuildOnboarding;
|
|
837
837
|
/**
|
|
838
|
-
* https://discord.com/developers/
|
|
838
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-onboarding
|
|
839
839
|
*/
|
|
840
840
|
export type RESTPutAPIGuildOnboardingJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<Partial<Pick<APIGuildOnboarding, 'default_channel_ids' | 'enabled' | 'mode'>>> & {
|
|
841
841
|
/**
|
|
@@ -864,22 +864,22 @@ export type RESTAPIModifyGuildOnboardingPromptOptionData = AddUndefinedToPossibl
|
|
|
864
864
|
emoji_animated?: boolean | null | undefined;
|
|
865
865
|
};
|
|
866
866
|
/**
|
|
867
|
-
* https://discord.com/developers/
|
|
867
|
+
* https://docs.discord.com/developers/resources/guild#modify-guild-onboarding
|
|
868
868
|
*/
|
|
869
869
|
export type RESTPutAPIGuildOnboardingResult = APIGuildOnboarding;
|
|
870
870
|
/**
|
|
871
|
-
* https://discord.com/developers/
|
|
871
|
+
* https://docs.discord.com/developers/resources/guild#modify-incidents-actions
|
|
872
872
|
*/
|
|
873
873
|
export interface RESTPutAPIGuildIncidentActionsJSONBody {
|
|
874
874
|
invites_disabled_until?: string | null | undefined;
|
|
875
875
|
dms_disabled_until?: string | null | undefined;
|
|
876
876
|
}
|
|
877
877
|
/**
|
|
878
|
-
* https://discord.com/developers/
|
|
878
|
+
* https://docs.discord.com/developers/resources/guild#modify-incidents-actions
|
|
879
879
|
*/
|
|
880
880
|
export type RESTPutAPIGuildIncidentActionsResult = APIIncidentsData;
|
|
881
881
|
/**
|
|
882
|
-
* https://discord.com/developers/
|
|
882
|
+
* https://docs.discord.com/developers/resources/message#search-guild-messages
|
|
883
883
|
*/
|
|
884
884
|
export declare enum GuildSearchAuthorType {
|
|
885
885
|
User = "user",
|
|
@@ -887,7 +887,7 @@ export declare enum GuildSearchAuthorType {
|
|
|
887
887
|
Webhook = "webhook"
|
|
888
888
|
}
|
|
889
889
|
/**
|
|
890
|
-
* https://discord.com/developers/
|
|
890
|
+
* https://docs.discord.com/developers/resources/message#search-guild-messages
|
|
891
891
|
*/
|
|
892
892
|
export declare enum GuildSearchHasType {
|
|
893
893
|
Image = "image",
|
|
@@ -901,7 +901,7 @@ export declare enum GuildSearchHasType {
|
|
|
901
901
|
Snapshot = "snapshot"
|
|
902
902
|
}
|
|
903
903
|
/**
|
|
904
|
-
* https://discord.com/developers/
|
|
904
|
+
* https://docs.discord.com/developers/resources/message#search-guild-messages
|
|
905
905
|
*/
|
|
906
906
|
export declare enum GuildSearchEmbedType {
|
|
907
907
|
Image = "image",
|
|
@@ -911,14 +911,14 @@ export declare enum GuildSearchEmbedType {
|
|
|
911
911
|
Article = "article"
|
|
912
912
|
}
|
|
913
913
|
/**
|
|
914
|
-
* https://discord.com/developers/
|
|
914
|
+
* https://docs.discord.com/developers/resources/message#search-guild-messages
|
|
915
915
|
*/
|
|
916
916
|
export declare enum GuildSearchSortBy {
|
|
917
917
|
Timestamp = "timestamp",
|
|
918
918
|
Relevance = "relevance"
|
|
919
919
|
}
|
|
920
920
|
/**
|
|
921
|
-
* https://discord.com/developers/
|
|
921
|
+
* https://docs.discord.com/developers/resources/message#search-guild-messages
|
|
922
922
|
*/
|
|
923
923
|
export declare enum GuildSearchSortOrder {
|
|
924
924
|
Ascending = "asc",
|
|
@@ -926,7 +926,7 @@ export declare enum GuildSearchSortOrder {
|
|
|
926
926
|
}
|
|
927
927
|
export type GuildSearchNegatable<T extends string> = `${T}` | `-${T}`;
|
|
928
928
|
/**
|
|
929
|
-
* https://discord.com/developers/
|
|
929
|
+
* https://docs.discord.com/developers/resources/message#search-guild-messages
|
|
930
930
|
*/
|
|
931
931
|
export interface RESTGetAPIGuildMessagesSearchQuery {
|
|
932
932
|
/**
|
|
@@ -1035,7 +1035,7 @@ export interface RESTGetAPIGuildMessagesSearchQuery {
|
|
|
1035
1035
|
include_nsfw?: boolean;
|
|
1036
1036
|
}
|
|
1037
1037
|
/**
|
|
1038
|
-
* https://discord.com/developers/
|
|
1038
|
+
* https://docs.discord.com/developers/resources/message#search-guild-messages
|
|
1039
1039
|
*/
|
|
1040
1040
|
export interface RESTGetAPIGuildMessagesSearch {
|
|
1041
1041
|
/**
|
|
@@ -1064,7 +1064,7 @@ export interface RESTGetAPIGuildMessagesSearch {
|
|
|
1064
1064
|
members: APIThreadMember[];
|
|
1065
1065
|
}
|
|
1066
1066
|
/**
|
|
1067
|
-
* https://discord.com/developers/
|
|
1067
|
+
* https://docs.discord.com/developers/resources/message#search-guild-messages
|
|
1068
1068
|
*
|
|
1069
1069
|
* Response when the index is not yet available (HTTP 202)
|
|
1070
1070
|
*/
|