@distilled.cloud/discord 1.0.0-rc.7 → 1.0.0-rc.9
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/LICENSE +201 -0
- package/lib/services/discord.d.ts +387 -382
- package/lib/services/discord.d.ts.map +1 -1
- package/lib/services/discord.js +547 -542
- package/lib/services/discord.js.map +1 -1
- package/package.json +6 -6
- package/src/services/discord.ts +2613 -2603
|
@@ -3,17 +3,15 @@ import * as Redacted from "effect/Redacted";
|
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
4
|
import { type DiscordOpError, type DiscordOpContext } from "../protocol.ts";
|
|
5
5
|
export type { DiscordOpError, DiscordOpContext };
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/** Whether to approve or reject the join request */
|
|
12
|
-
action?: GuildJoinRequestApplicationStatus | (string & {});
|
|
13
|
-
/** Reason for rejection. Only used when action is REJECTED */
|
|
14
|
-
rejection_reason?: string | null;
|
|
6
|
+
export interface AddGroupDmUserRequest {
|
|
7
|
+
channel_id: string;
|
|
8
|
+
user_id: string;
|
|
9
|
+
access_token?: string | Redacted.Redacted<string> | null;
|
|
10
|
+
nick?: string | null;
|
|
15
11
|
}
|
|
16
|
-
export declare const
|
|
12
|
+
export declare const AddGroupDmUserRequest: S.Schema<AddGroupDmUserRequest>;
|
|
13
|
+
export type ChannelTypes = 1 | 3 | 0 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
14
|
+
export declare const ChannelTypes: any;
|
|
17
15
|
export interface UserAvatarDecorationResponse {
|
|
18
16
|
/** the avatar decoration hash */
|
|
19
17
|
asset: string;
|
|
@@ -81,90 +79,6 @@ export interface UserResponse {
|
|
|
81
79
|
primary_guild: UserPrimaryGuildResponse | null;
|
|
82
80
|
}
|
|
83
81
|
export declare const UserResponse: S.Schema<UserResponse>;
|
|
84
|
-
export type GuildMemberVerificationFormFieldType = "TERMS" | "TEXT_INPUT" | "PARAGRAPH" | "MULTIPLE_CHOICE";
|
|
85
|
-
export declare const GuildMemberVerificationFormFieldType: any;
|
|
86
|
-
/** Choices applicant can select from */
|
|
87
|
-
export type MultipleChoiceFormFieldResponseChoicesList = Array<string>;
|
|
88
|
-
export declare const MultipleChoiceFormFieldResponseChoicesList: S.Schema<MultipleChoiceFormFieldResponseChoicesList>;
|
|
89
|
-
export interface MultipleChoiceFormFieldResponse {
|
|
90
|
-
/** Type of form field */
|
|
91
|
-
field_type: GuildMemberVerificationFormFieldType;
|
|
92
|
-
/** Label shown above field */
|
|
93
|
-
label?: string;
|
|
94
|
-
/** Optional helper text shown below label */
|
|
95
|
-
description?: string;
|
|
96
|
-
/** Whether applicant must fill in field */
|
|
97
|
-
required?: boolean;
|
|
98
|
-
/** Choices applicant can select from */
|
|
99
|
-
choices: MultipleChoiceFormFieldResponseChoicesList;
|
|
100
|
-
/** Index of choice selected by applicant */
|
|
101
|
-
response?: number;
|
|
102
|
-
}
|
|
103
|
-
export declare const MultipleChoiceFormFieldResponse: S.Schema<MultipleChoiceFormFieldResponse>;
|
|
104
|
-
export interface ParagraphFormFieldResponse {
|
|
105
|
-
/** Type of form field */
|
|
106
|
-
field_type: GuildMemberVerificationFormFieldType;
|
|
107
|
-
/** Label shown above field */
|
|
108
|
-
label?: string;
|
|
109
|
-
/** Optional helper text shown below label */
|
|
110
|
-
description?: string;
|
|
111
|
-
/** Whether applicant must fill in field */
|
|
112
|
-
required?: boolean;
|
|
113
|
-
/** Placeholder text shown in empty input */
|
|
114
|
-
placeholder?: string;
|
|
115
|
-
/** Applicant's text response */
|
|
116
|
-
response?: string;
|
|
117
|
-
}
|
|
118
|
-
export declare const ParagraphFormFieldResponse: S.Schema<ParagraphFormFieldResponse>;
|
|
119
|
-
/** Terms applicant must acknowledge */
|
|
120
|
-
export type TermsFormFieldResponseValuesList = Array<string>;
|
|
121
|
-
export declare const TermsFormFieldResponseValuesList: S.Schema<TermsFormFieldResponseValuesList>;
|
|
122
|
-
export interface TermsFormFieldResponse {
|
|
123
|
-
/** Type of form field */
|
|
124
|
-
field_type: GuildMemberVerificationFormFieldType;
|
|
125
|
-
/** Label shown above field */
|
|
126
|
-
label?: string;
|
|
127
|
-
/** Optional helper text shown below label */
|
|
128
|
-
description?: string;
|
|
129
|
-
/** Whether applicant must fill in field */
|
|
130
|
-
required?: boolean;
|
|
131
|
-
/** Terms applicant must acknowledge */
|
|
132
|
-
values: TermsFormFieldResponseValuesList;
|
|
133
|
-
/** Whether applicant accepted terms */
|
|
134
|
-
response?: boolean;
|
|
135
|
-
}
|
|
136
|
-
export declare const TermsFormFieldResponse: S.Schema<TermsFormFieldResponse>;
|
|
137
|
-
export type TextInputFormFieldResponse = ParagraphFormFieldResponse;
|
|
138
|
-
export declare const TextInputFormFieldResponse: S.Schema<ParagraphFormFieldResponse>;
|
|
139
|
-
export type GuildJoinRequestResponseFormResponsesItem = MultipleChoiceFormFieldResponse | ParagraphFormFieldResponse | TermsFormFieldResponse | ParagraphFormFieldResponse;
|
|
140
|
-
export declare const GuildJoinRequestResponseFormResponsesItem: any;
|
|
141
|
-
/** Applicant's responses on join request form */
|
|
142
|
-
export type GuildJoinRequestResponseFormResponsesList = Array<GuildJoinRequestResponseFormResponsesItem>;
|
|
143
|
-
export declare const GuildJoinRequestResponseFormResponsesList: S.Schema<GuildJoinRequestResponseFormResponsesList>;
|
|
144
|
-
export interface GuildJoinRequestResponse {
|
|
145
|
-
id: string;
|
|
146
|
-
created_at: string;
|
|
147
|
-
reviewed_at: string | null;
|
|
148
|
-
application_status: GuildJoinRequestApplicationStatus | null;
|
|
149
|
-
/** Reason request was rejected. Only set when application_status is REJECTED */
|
|
150
|
-
rejection_reason: string | null;
|
|
151
|
-
guild_id: string;
|
|
152
|
-
user_id: string;
|
|
153
|
-
user?: UserResponse | null;
|
|
154
|
-
/** Applicant's responses on join request form */
|
|
155
|
-
form_responses?: GuildJoinRequestResponseFormResponsesList | null;
|
|
156
|
-
actioned_by_user?: UserResponse | null;
|
|
157
|
-
}
|
|
158
|
-
export declare const GuildJoinRequestResponse: S.Schema<GuildJoinRequestResponse>;
|
|
159
|
-
export interface AddGroupDmUserRequest {
|
|
160
|
-
channel_id: string;
|
|
161
|
-
user_id: string;
|
|
162
|
-
access_token?: string | Redacted.Redacted<string> | null;
|
|
163
|
-
nick?: string | null;
|
|
164
|
-
}
|
|
165
|
-
export declare const AddGroupDmUserRequest: S.Schema<AddGroupDmUserRequest>;
|
|
166
|
-
export type ChannelTypes = 1 | 3 | 0 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
167
|
-
export declare const ChannelTypes: any;
|
|
168
82
|
export type PrivateChannelResponseRecipientsList = Array<UserResponse>;
|
|
169
83
|
export declare const PrivateChannelResponseRecipientsList: S.Schema<PrivateChannelResponseRecipientsList>;
|
|
170
84
|
export interface PrivateChannelResponse {
|
|
@@ -294,38 +208,6 @@ export declare const AddThreadMemberRequest: S.Schema<AddThreadMemberRequest>;
|
|
|
294
208
|
export interface AddThreadMemberResponse {
|
|
295
209
|
}
|
|
296
210
|
export declare const AddThreadMemberResponse: S.Schema<AddThreadMemberResponse>;
|
|
297
|
-
export interface ApplicationsGetActivityInstanceRequest {
|
|
298
|
-
application_id: string;
|
|
299
|
-
instance_id: string;
|
|
300
|
-
}
|
|
301
|
-
export declare const ApplicationsGetActivityInstanceRequest: S.Schema<ApplicationsGetActivityInstanceRequest>;
|
|
302
|
-
export type EmbeddedActivityLocationKind = "gc" | "pc" | "party";
|
|
303
|
-
export declare const EmbeddedActivityLocationKind: any;
|
|
304
|
-
export interface GuildChannelLocation {
|
|
305
|
-
id: string;
|
|
306
|
-
kind: EmbeddedActivityLocationKind;
|
|
307
|
-
channel_id: string;
|
|
308
|
-
guild_id: string;
|
|
309
|
-
}
|
|
310
|
-
export declare const GuildChannelLocation: S.Schema<GuildChannelLocation>;
|
|
311
|
-
export interface PrivateChannelLocation {
|
|
312
|
-
id: string;
|
|
313
|
-
kind: EmbeddedActivityLocationKind;
|
|
314
|
-
channel_id: string;
|
|
315
|
-
}
|
|
316
|
-
export declare const PrivateChannelLocation: S.Schema<PrivateChannelLocation>;
|
|
317
|
-
export type EmbeddedActivityInstanceLocation = GuildChannelLocation | PrivateChannelLocation;
|
|
318
|
-
export declare const EmbeddedActivityInstanceLocation: any;
|
|
319
|
-
export type EmbeddedActivityInstanceUsersList = Array<string>;
|
|
320
|
-
export declare const EmbeddedActivityInstanceUsersList: S.Schema<EmbeddedActivityInstanceUsersList>;
|
|
321
|
-
export interface EmbeddedActivityInstance {
|
|
322
|
-
application_id: string;
|
|
323
|
-
instance_id: string;
|
|
324
|
-
launch_id: string;
|
|
325
|
-
location: EmbeddedActivityInstanceLocation;
|
|
326
|
-
users: EmbeddedActivityInstanceUsersList;
|
|
327
|
-
}
|
|
328
|
-
export declare const EmbeddedActivityInstance: S.Schema<EmbeddedActivityInstance>;
|
|
329
211
|
export interface BanUserFromGuildRequest {
|
|
330
212
|
guild_id: string;
|
|
331
213
|
user_id: string;
|
|
@@ -1671,8 +1553,11 @@ export interface InviteApplicationResponse {
|
|
|
1671
1553
|
type: ApplicationTypes | null;
|
|
1672
1554
|
cover_image?: string;
|
|
1673
1555
|
primary_sku_id?: string;
|
|
1556
|
+
flags: number;
|
|
1557
|
+
flags_new: string;
|
|
1674
1558
|
bot?: UserResponse;
|
|
1675
1559
|
slug?: string;
|
|
1560
|
+
vibegrations_project_id?: string;
|
|
1676
1561
|
guild_id?: string;
|
|
1677
1562
|
rpc_origins?: InviteApplicationResponseRpcOriginsList;
|
|
1678
1563
|
bot_public?: boolean;
|
|
@@ -1683,8 +1568,6 @@ export interface InviteApplicationResponse {
|
|
|
1683
1568
|
install_params?: ApplicationOAuth2InstallParamsResponse;
|
|
1684
1569
|
integration_types_config?: InviteApplicationResponseIntegrationTypesConfigMap;
|
|
1685
1570
|
verify_key: string;
|
|
1686
|
-
flags: number;
|
|
1687
|
-
flags_new: string;
|
|
1688
1571
|
max_participants?: number | null;
|
|
1689
1572
|
tags?: InviteApplicationResponseTagsList;
|
|
1690
1573
|
}
|
|
@@ -1867,6 +1750,14 @@ export type CreateChannelInviteResponseBody = FriendInviteResponse | GroupDMInvi
|
|
|
1867
1750
|
export declare const CreateChannelInviteResponseBody: any;
|
|
1868
1751
|
export type CreateChannelInviteResponse = CreateChannelInviteResponseBody;
|
|
1869
1752
|
export declare const CreateChannelInviteResponse: S.Schema<CreateChannelInviteResponse>;
|
|
1753
|
+
export interface CreateDeprecatedPinRequest {
|
|
1754
|
+
channel_id: string;
|
|
1755
|
+
message_id: string;
|
|
1756
|
+
}
|
|
1757
|
+
export declare const CreateDeprecatedPinRequest: S.Schema<CreateDeprecatedPinRequest>;
|
|
1758
|
+
export interface CreateDeprecatedPinResponse {
|
|
1759
|
+
}
|
|
1760
|
+
export declare const CreateDeprecatedPinResponse: S.Schema<CreateDeprecatedPinResponse>;
|
|
1870
1761
|
export type CreateDmRequestAccessTokensList = Array<string>;
|
|
1871
1762
|
export declare const CreateDmRequestAccessTokensList: S.Schema<CreateDmRequestAccessTokensList>;
|
|
1872
1763
|
export type CreateDmRequestNicksMap = {
|
|
@@ -3087,8 +2978,11 @@ export interface ApplicationResponse {
|
|
|
3087
2978
|
type: ApplicationTypes | null;
|
|
3088
2979
|
cover_image?: string;
|
|
3089
2980
|
primary_sku_id?: string;
|
|
2981
|
+
flags: number;
|
|
2982
|
+
flags_new: string;
|
|
3090
2983
|
bot?: UserResponse;
|
|
3091
2984
|
slug?: string;
|
|
2985
|
+
vibegrations_project_id?: string;
|
|
3092
2986
|
guild_id?: string;
|
|
3093
2987
|
rpc_origins?: ApplicationResponseRpcOriginsList;
|
|
3094
2988
|
bot_public?: boolean;
|
|
@@ -3099,8 +2993,6 @@ export interface ApplicationResponse {
|
|
|
3099
2993
|
install_params?: ApplicationOAuth2InstallParamsResponse;
|
|
3100
2994
|
integration_types_config?: ApplicationResponseIntegrationTypesConfigMap;
|
|
3101
2995
|
verify_key: string;
|
|
3102
|
-
flags: number;
|
|
3103
|
-
flags_new: string;
|
|
3104
2996
|
max_participants?: number | null;
|
|
3105
2997
|
tags?: ApplicationResponseTagsList;
|
|
3106
2998
|
}
|
|
@@ -3447,6 +3339,8 @@ export interface BasicApplicationResponseWithBot {
|
|
|
3447
3339
|
type: ApplicationTypes | null;
|
|
3448
3340
|
cover_image?: string;
|
|
3449
3341
|
primary_sku_id?: string;
|
|
3342
|
+
flags: number;
|
|
3343
|
+
flags_new: string;
|
|
3450
3344
|
bot?: UserResponse;
|
|
3451
3345
|
}
|
|
3452
3346
|
export declare const BasicApplicationResponseWithBot: S.Schema<BasicApplicationResponseWithBot>;
|
|
@@ -4269,6 +4163,14 @@ export declare const DeleteChannelPermissionOverwriteRequest: S.Schema<DeleteCha
|
|
|
4269
4163
|
export interface DeleteChannelPermissionOverwriteResponse {
|
|
4270
4164
|
}
|
|
4271
4165
|
export declare const DeleteChannelPermissionOverwriteResponse: S.Schema<DeleteChannelPermissionOverwriteResponse>;
|
|
4166
|
+
export interface DeleteDeprecatedPinRequest {
|
|
4167
|
+
channel_id: string;
|
|
4168
|
+
message_id: string;
|
|
4169
|
+
}
|
|
4170
|
+
export declare const DeleteDeprecatedPinRequest: S.Schema<DeleteDeprecatedPinRequest>;
|
|
4171
|
+
export interface DeleteDeprecatedPinResponse {
|
|
4172
|
+
}
|
|
4173
|
+
export declare const DeleteDeprecatedPinResponse: S.Schema<DeleteDeprecatedPinResponse>;
|
|
4272
4174
|
export interface DeleteEntitlementRequest {
|
|
4273
4175
|
application_id: string;
|
|
4274
4176
|
entitlement_id: string;
|
|
@@ -4472,30 +4374,6 @@ export declare const DeleteWebhookMessageRequest: S.Schema<DeleteWebhookMessageR
|
|
|
4472
4374
|
export interface DeleteWebhookMessageResponse {
|
|
4473
4375
|
}
|
|
4474
4376
|
export declare const DeleteWebhookMessageResponse: S.Schema<DeleteWebhookMessageResponse>;
|
|
4475
|
-
export interface DeprecatedCreatePinRequest {
|
|
4476
|
-
channel_id: string;
|
|
4477
|
-
message_id: string;
|
|
4478
|
-
}
|
|
4479
|
-
export declare const DeprecatedCreatePinRequest: S.Schema<DeprecatedCreatePinRequest>;
|
|
4480
|
-
export interface DeprecatedCreatePinResponse {
|
|
4481
|
-
}
|
|
4482
|
-
export declare const DeprecatedCreatePinResponse: S.Schema<DeprecatedCreatePinResponse>;
|
|
4483
|
-
export interface DeprecatedDeletePinRequest {
|
|
4484
|
-
channel_id: string;
|
|
4485
|
-
message_id: string;
|
|
4486
|
-
}
|
|
4487
|
-
export declare const DeprecatedDeletePinRequest: S.Schema<DeprecatedDeletePinRequest>;
|
|
4488
|
-
export interface DeprecatedDeletePinResponse {
|
|
4489
|
-
}
|
|
4490
|
-
export declare const DeprecatedDeletePinResponse: S.Schema<DeprecatedDeletePinResponse>;
|
|
4491
|
-
export interface DeprecatedListPinsRequest {
|
|
4492
|
-
channel_id: string;
|
|
4493
|
-
}
|
|
4494
|
-
export declare const DeprecatedListPinsRequest: S.Schema<DeprecatedListPinsRequest>;
|
|
4495
|
-
export type DeprecatedListPinsResponseBodyList = Array<MessageResponse>;
|
|
4496
|
-
export declare const DeprecatedListPinsResponseBodyList: S.Schema<DeprecatedListPinsResponseBodyList>;
|
|
4497
|
-
export type DeprecatedListPinsResponse = DeprecatedListPinsResponseBodyList;
|
|
4498
|
-
export declare const DeprecatedListPinsResponse: S.Schema<DeprecatedListPinsResponse>;
|
|
4499
4377
|
export type EditLobbyRequestMetadataMap = {
|
|
4500
4378
|
[key: string]: string | undefined;
|
|
4501
4379
|
};
|
|
@@ -4843,8 +4721,11 @@ export interface PrivateApplicationResponse {
|
|
|
4843
4721
|
type: ApplicationTypes | null;
|
|
4844
4722
|
cover_image?: string;
|
|
4845
4723
|
primary_sku_id?: string;
|
|
4724
|
+
flags: number;
|
|
4725
|
+
flags_new: string;
|
|
4846
4726
|
bot?: UserResponse;
|
|
4847
4727
|
slug?: string;
|
|
4728
|
+
vibegrations_project_id?: string;
|
|
4848
4729
|
guild_id?: string;
|
|
4849
4730
|
rpc_origins?: PrivateApplicationResponseRpcOriginsList;
|
|
4850
4731
|
bot_public?: boolean;
|
|
@@ -4855,8 +4736,6 @@ export interface PrivateApplicationResponse {
|
|
|
4855
4736
|
install_params?: ApplicationOAuth2InstallParamsResponse;
|
|
4856
4737
|
integration_types_config?: PrivateApplicationResponseIntegrationTypesConfigMap;
|
|
4857
4738
|
verify_key: string;
|
|
4858
|
-
flags: number;
|
|
4859
|
-
flags_new: string;
|
|
4860
4739
|
max_participants?: number | null;
|
|
4861
4740
|
tags?: PrivateApplicationResponseTagsList;
|
|
4862
4741
|
redirect_uris: PrivateApplicationResponseRedirectUrisList;
|
|
@@ -4874,6 +4753,38 @@ export interface PrivateApplicationResponse {
|
|
|
4874
4753
|
eligible_oauth2_scopes: PrivateApplicationResponseEligibleOauth2ScopesList;
|
|
4875
4754
|
}
|
|
4876
4755
|
export declare const PrivateApplicationResponse: S.Schema<PrivateApplicationResponse>;
|
|
4756
|
+
export interface GetApplicationActivityInstanceRequest {
|
|
4757
|
+
application_id: string;
|
|
4758
|
+
instance_id: string;
|
|
4759
|
+
}
|
|
4760
|
+
export declare const GetApplicationActivityInstanceRequest: S.Schema<GetApplicationActivityInstanceRequest>;
|
|
4761
|
+
export type EmbeddedActivityLocationKind = "gc" | "pc" | "party";
|
|
4762
|
+
export declare const EmbeddedActivityLocationKind: any;
|
|
4763
|
+
export interface GuildChannelLocation {
|
|
4764
|
+
id: string;
|
|
4765
|
+
kind: EmbeddedActivityLocationKind;
|
|
4766
|
+
channel_id: string;
|
|
4767
|
+
guild_id: string;
|
|
4768
|
+
}
|
|
4769
|
+
export declare const GuildChannelLocation: S.Schema<GuildChannelLocation>;
|
|
4770
|
+
export interface PrivateChannelLocation {
|
|
4771
|
+
id: string;
|
|
4772
|
+
kind: EmbeddedActivityLocationKind;
|
|
4773
|
+
channel_id: string;
|
|
4774
|
+
}
|
|
4775
|
+
export declare const PrivateChannelLocation: S.Schema<PrivateChannelLocation>;
|
|
4776
|
+
export type EmbeddedActivityInstanceLocation = GuildChannelLocation | PrivateChannelLocation;
|
|
4777
|
+
export declare const EmbeddedActivityInstanceLocation: any;
|
|
4778
|
+
export type EmbeddedActivityInstanceUsersList = Array<string>;
|
|
4779
|
+
export declare const EmbeddedActivityInstanceUsersList: S.Schema<EmbeddedActivityInstanceUsersList>;
|
|
4780
|
+
export interface EmbeddedActivityInstance {
|
|
4781
|
+
application_id: string;
|
|
4782
|
+
instance_id: string;
|
|
4783
|
+
launch_id: string;
|
|
4784
|
+
location: EmbeddedActivityInstanceLocation;
|
|
4785
|
+
users: EmbeddedActivityInstanceUsersList;
|
|
4786
|
+
}
|
|
4787
|
+
export declare const EmbeddedActivityInstance: S.Schema<EmbeddedActivityInstance>;
|
|
4877
4788
|
export interface GetApplicationCommandRequest {
|
|
4878
4789
|
application_id: string;
|
|
4879
4790
|
command_id: string;
|
|
@@ -5119,6 +5030,8 @@ export interface GetGuildEmojiRequest {
|
|
|
5119
5030
|
emoji_id: string;
|
|
5120
5031
|
}
|
|
5121
5032
|
export declare const GetGuildEmojiRequest: S.Schema<GetGuildEmojiRequest>;
|
|
5033
|
+
export type GuildJoinRequestApplicationStatus = "STARTED" | "SUBMITTED" | "REJECTED" | "APPROVED";
|
|
5034
|
+
export declare const GuildJoinRequestApplicationStatus: any;
|
|
5122
5035
|
export interface GetGuildJoinRequestsRequest {
|
|
5123
5036
|
guild_id: string;
|
|
5124
5037
|
status?: GuildJoinRequestApplicationStatus | (string & {});
|
|
@@ -5127,22 +5040,97 @@ export interface GetGuildJoinRequestsRequest {
|
|
|
5127
5040
|
after?: string;
|
|
5128
5041
|
}
|
|
5129
5042
|
export declare const GetGuildJoinRequestsRequest: S.Schema<GetGuildJoinRequestsRequest>;
|
|
5130
|
-
export type
|
|
5131
|
-
export declare const
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5043
|
+
export type GuildMemberVerificationFormFieldType = "TERMS" | "TEXT_INPUT" | "PARAGRAPH" | "MULTIPLE_CHOICE";
|
|
5044
|
+
export declare const GuildMemberVerificationFormFieldType: any;
|
|
5045
|
+
/** Choices applicant can select from */
|
|
5046
|
+
export type MultipleChoiceFormFieldResponseChoicesList = Array<string>;
|
|
5047
|
+
export declare const MultipleChoiceFormFieldResponseChoicesList: S.Schema<MultipleChoiceFormFieldResponseChoicesList>;
|
|
5048
|
+
export interface MultipleChoiceFormFieldResponse {
|
|
5049
|
+
/** Type of form field */
|
|
5050
|
+
field_type: GuildMemberVerificationFormFieldType;
|
|
5051
|
+
/** Label shown above field */
|
|
5052
|
+
label?: string;
|
|
5053
|
+
/** Optional helper text shown below label */
|
|
5054
|
+
description?: string;
|
|
5055
|
+
/** Whether applicant must fill in field */
|
|
5056
|
+
required?: boolean;
|
|
5057
|
+
/** Choices applicant can select from */
|
|
5058
|
+
choices: MultipleChoiceFormFieldResponseChoicesList;
|
|
5059
|
+
/** Index of choice selected by applicant */
|
|
5060
|
+
response?: number;
|
|
5135
5061
|
}
|
|
5136
|
-
export declare const
|
|
5137
|
-
export interface
|
|
5138
|
-
|
|
5139
|
-
|
|
5062
|
+
export declare const MultipleChoiceFormFieldResponse: S.Schema<MultipleChoiceFormFieldResponse>;
|
|
5063
|
+
export interface ParagraphFormFieldResponse {
|
|
5064
|
+
/** Type of form field */
|
|
5065
|
+
field_type: GuildMemberVerificationFormFieldType;
|
|
5066
|
+
/** Label shown above field */
|
|
5067
|
+
label?: string;
|
|
5068
|
+
/** Optional helper text shown below label */
|
|
5069
|
+
description?: string;
|
|
5070
|
+
/** Whether applicant must fill in field */
|
|
5071
|
+
required?: boolean;
|
|
5072
|
+
/** Placeholder text shown in empty input */
|
|
5073
|
+
placeholder?: string;
|
|
5074
|
+
/** Applicant's text response */
|
|
5075
|
+
response?: string;
|
|
5140
5076
|
}
|
|
5141
|
-
export declare const
|
|
5142
|
-
|
|
5143
|
-
|
|
5077
|
+
export declare const ParagraphFormFieldResponse: S.Schema<ParagraphFormFieldResponse>;
|
|
5078
|
+
/** Terms applicant must acknowledge */
|
|
5079
|
+
export type TermsFormFieldResponseValuesList = Array<string>;
|
|
5080
|
+
export declare const TermsFormFieldResponseValuesList: S.Schema<TermsFormFieldResponseValuesList>;
|
|
5081
|
+
export interface TermsFormFieldResponse {
|
|
5082
|
+
/** Type of form field */
|
|
5083
|
+
field_type: GuildMemberVerificationFormFieldType;
|
|
5084
|
+
/** Label shown above field */
|
|
5085
|
+
label?: string;
|
|
5086
|
+
/** Optional helper text shown below label */
|
|
5087
|
+
description?: string;
|
|
5088
|
+
/** Whether applicant must fill in field */
|
|
5089
|
+
required?: boolean;
|
|
5090
|
+
/** Terms applicant must acknowledge */
|
|
5091
|
+
values: TermsFormFieldResponseValuesList;
|
|
5092
|
+
/** Whether applicant accepted terms */
|
|
5093
|
+
response?: boolean;
|
|
5144
5094
|
}
|
|
5145
|
-
export declare const
|
|
5095
|
+
export declare const TermsFormFieldResponse: S.Schema<TermsFormFieldResponse>;
|
|
5096
|
+
export type TextInputFormFieldResponse = ParagraphFormFieldResponse;
|
|
5097
|
+
export declare const TextInputFormFieldResponse: S.Schema<ParagraphFormFieldResponse>;
|
|
5098
|
+
export type GuildJoinRequestResponseFormResponsesItem = MultipleChoiceFormFieldResponse | ParagraphFormFieldResponse | TermsFormFieldResponse | ParagraphFormFieldResponse;
|
|
5099
|
+
export declare const GuildJoinRequestResponseFormResponsesItem: any;
|
|
5100
|
+
/** Applicant's responses on join request form */
|
|
5101
|
+
export type GuildJoinRequestResponseFormResponsesList = Array<GuildJoinRequestResponseFormResponsesItem>;
|
|
5102
|
+
export declare const GuildJoinRequestResponseFormResponsesList: S.Schema<GuildJoinRequestResponseFormResponsesList>;
|
|
5103
|
+
export interface GuildJoinRequestResponse {
|
|
5104
|
+
id: string;
|
|
5105
|
+
created_at: string;
|
|
5106
|
+
reviewed_at: string | null;
|
|
5107
|
+
application_status: GuildJoinRequestApplicationStatus | null;
|
|
5108
|
+
/** Reason request was rejected. Only set when application_status is REJECTED */
|
|
5109
|
+
rejection_reason: string | null;
|
|
5110
|
+
guild_id: string;
|
|
5111
|
+
user_id: string;
|
|
5112
|
+
user?: UserResponse | null;
|
|
5113
|
+
/** Applicant's responses on join request form */
|
|
5114
|
+
form_responses?: GuildJoinRequestResponseFormResponsesList | null;
|
|
5115
|
+
actioned_by_user?: UserResponse | null;
|
|
5116
|
+
}
|
|
5117
|
+
export declare const GuildJoinRequestResponse: S.Schema<GuildJoinRequestResponse>;
|
|
5118
|
+
export type GuildJoinRequestsListResponseGuildJoinRequestsList = Array<GuildJoinRequestResponse>;
|
|
5119
|
+
export declare const GuildJoinRequestsListResponseGuildJoinRequestsList: S.Schema<GuildJoinRequestsListResponseGuildJoinRequestsList>;
|
|
5120
|
+
export interface GuildJoinRequestsListResponse {
|
|
5121
|
+
total?: number;
|
|
5122
|
+
guild_join_requests?: GuildJoinRequestsListResponseGuildJoinRequestsList;
|
|
5123
|
+
}
|
|
5124
|
+
export declare const GuildJoinRequestsListResponse: S.Schema<GuildJoinRequestsListResponse>;
|
|
5125
|
+
export interface GetGuildMemberRequest {
|
|
5126
|
+
guild_id: string;
|
|
5127
|
+
user_id: string;
|
|
5128
|
+
}
|
|
5129
|
+
export declare const GetGuildMemberRequest: S.Schema<GetGuildMemberRequest>;
|
|
5130
|
+
export interface GetGuildNewMemberWelcomeRequest {
|
|
5131
|
+
guild_id: string;
|
|
5132
|
+
}
|
|
5133
|
+
export declare const GetGuildNewMemberWelcomeRequest: S.Schema<GetGuildNewMemberWelcomeRequest>;
|
|
5146
5134
|
export type WelcomeMessageResponseAuthorIdsList = Array<string>;
|
|
5147
5135
|
export declare const WelcomeMessageResponseAuthorIdsList: S.Schema<WelcomeMessageResponseAuthorIdsList>;
|
|
5148
5136
|
export interface WelcomeMessageResponse {
|
|
@@ -5762,159 +5750,6 @@ export type GuildRoleMemberCountsResponseBodyMap = {
|
|
|
5762
5750
|
export declare const GuildRoleMemberCountsResponseBodyMap: S.Schema<GuildRoleMemberCountsResponseBodyMap>;
|
|
5763
5751
|
export type GuildRoleMemberCountsResponse = GuildRoleMemberCountsResponseBodyMap;
|
|
5764
5752
|
export declare const GuildRoleMemberCountsResponse: S.Schema<GuildRoleMemberCountsResponse>;
|
|
5765
|
-
export type SortingMode = "relevance" | "timestamp";
|
|
5766
|
-
export declare const SortingMode: any;
|
|
5767
|
-
export type SortingOrder = "asc" | "desc";
|
|
5768
|
-
export declare const SortingOrder: any;
|
|
5769
|
-
export type GuildSearchRequestAuthorIdList = Array<string>;
|
|
5770
|
-
export declare const GuildSearchRequestAuthorIdList: S.Schema<GuildSearchRequestAuthorIdList>;
|
|
5771
|
-
export type AuthorType = "user" | "bot" | "webhook" | "-user" | "-bot" | "-webhook";
|
|
5772
|
-
export declare const AuthorType: any;
|
|
5773
|
-
export type GuildSearchRequestAuthorTypeList = Array<AuthorType | (string & {})>;
|
|
5774
|
-
export declare const GuildSearchRequestAuthorTypeList: S.Schema<GuildSearchRequestAuthorTypeList>;
|
|
5775
|
-
export type GuildSearchRequestMentionsList = Array<string>;
|
|
5776
|
-
export declare const GuildSearchRequestMentionsList: S.Schema<GuildSearchRequestMentionsList>;
|
|
5777
|
-
export type GuildSearchRequestMentionsRoleIdList = Array<string>;
|
|
5778
|
-
export declare const GuildSearchRequestMentionsRoleIdList: S.Schema<GuildSearchRequestMentionsRoleIdList>;
|
|
5779
|
-
export type GuildSearchRequestRepliedToUserIdList = Array<string>;
|
|
5780
|
-
export declare const GuildSearchRequestRepliedToUserIdList: S.Schema<GuildSearchRequestRepliedToUserIdList>;
|
|
5781
|
-
export type GuildSearchRequestRepliedToMessageIdList = Array<string>;
|
|
5782
|
-
export declare const GuildSearchRequestRepliedToMessageIdList: S.Schema<GuildSearchRequestRepliedToMessageIdList>;
|
|
5783
|
-
export type HasOption = "link" | "embed" | "file" | "image" | "video" | "sound" | "sticker" | "poll" | "snapshot" | "-link" | "-embed" | "-file" | "-image" | "-video" | "-sound" | "-sticker" | "-poll" | "-snapshot";
|
|
5784
|
-
export declare const HasOption: any;
|
|
5785
|
-
export type GuildSearchRequestHasList = Array<HasOption | (string & {})>;
|
|
5786
|
-
export declare const GuildSearchRequestHasList: S.Schema<GuildSearchRequestHasList>;
|
|
5787
|
-
export type GuildSearchRequestLinkHostnameList = Array<string>;
|
|
5788
|
-
export declare const GuildSearchRequestLinkHostnameList: S.Schema<GuildSearchRequestLinkHostnameList>;
|
|
5789
|
-
export type GuildSearchRequestEmbedProviderList = Array<string>;
|
|
5790
|
-
export declare const GuildSearchRequestEmbedProviderList: S.Schema<GuildSearchRequestEmbedProviderList>;
|
|
5791
|
-
export type SearchableEmbedType = "image" | "video" | "gif" | "sound" | "article";
|
|
5792
|
-
export declare const SearchableEmbedType: any;
|
|
5793
|
-
export type GuildSearchRequestEmbedTypeList = Array<SearchableEmbedType | (string & {})>;
|
|
5794
|
-
export declare const GuildSearchRequestEmbedTypeList: S.Schema<GuildSearchRequestEmbedTypeList>;
|
|
5795
|
-
export type GuildSearchRequestAttachmentExtensionList = Array<string>;
|
|
5796
|
-
export declare const GuildSearchRequestAttachmentExtensionList: S.Schema<GuildSearchRequestAttachmentExtensionList>;
|
|
5797
|
-
export type GuildSearchRequestAttachmentFilenameList = Array<string>;
|
|
5798
|
-
export declare const GuildSearchRequestAttachmentFilenameList: S.Schema<GuildSearchRequestAttachmentFilenameList>;
|
|
5799
|
-
export type GuildSearchRequestChannelIdList = Array<string>;
|
|
5800
|
-
export declare const GuildSearchRequestChannelIdList: S.Schema<GuildSearchRequestChannelIdList>;
|
|
5801
|
-
export interface GuildSearchRequest {
|
|
5802
|
-
guild_id: string;
|
|
5803
|
-
sort_by?: SortingMode | (string & {});
|
|
5804
|
-
sort_order?: SortingOrder | (string & {});
|
|
5805
|
-
content?: string;
|
|
5806
|
-
slop?: number;
|
|
5807
|
-
author_id?: GuildSearchRequestAuthorIdList;
|
|
5808
|
-
author_type?: GuildSearchRequestAuthorTypeList;
|
|
5809
|
-
mentions?: GuildSearchRequestMentionsList;
|
|
5810
|
-
mentions_role_id?: GuildSearchRequestMentionsRoleIdList;
|
|
5811
|
-
replied_to_user_id?: GuildSearchRequestRepliedToUserIdList;
|
|
5812
|
-
replied_to_message_id?: GuildSearchRequestRepliedToMessageIdList;
|
|
5813
|
-
mention_everyone?: boolean;
|
|
5814
|
-
min_id?: string;
|
|
5815
|
-
max_id?: string;
|
|
5816
|
-
limit?: number;
|
|
5817
|
-
offset?: number;
|
|
5818
|
-
has?: GuildSearchRequestHasList;
|
|
5819
|
-
link_hostname?: GuildSearchRequestLinkHostnameList;
|
|
5820
|
-
embed_provider?: GuildSearchRequestEmbedProviderList;
|
|
5821
|
-
embed_type?: GuildSearchRequestEmbedTypeList;
|
|
5822
|
-
attachment_extension?: GuildSearchRequestAttachmentExtensionList;
|
|
5823
|
-
attachment_filename?: GuildSearchRequestAttachmentFilenameList;
|
|
5824
|
-
pinned?: boolean;
|
|
5825
|
-
include_nsfw?: boolean;
|
|
5826
|
-
channel_id?: GuildSearchRequestChannelIdList;
|
|
5827
|
-
}
|
|
5828
|
-
export declare const GuildSearchRequest: S.Schema<GuildSearchRequest>;
|
|
5829
|
-
export type SearchMessageResponseMentionsList = Array<UserResponse>;
|
|
5830
|
-
export declare const SearchMessageResponseMentionsList: S.Schema<SearchMessageResponseMentionsList>;
|
|
5831
|
-
export type SearchMessageResponseMentionRolesList = Array<string>;
|
|
5832
|
-
export declare const SearchMessageResponseMentionRolesList: S.Schema<SearchMessageResponseMentionRolesList>;
|
|
5833
|
-
export type SearchMessageResponseAttachmentsList = Array<MessageAttachmentResponse>;
|
|
5834
|
-
export declare const SearchMessageResponseAttachmentsList: S.Schema<SearchMessageResponseAttachmentsList>;
|
|
5835
|
-
export type SearchMessageResponseEmbedsList = Array<MessageEmbedResponse>;
|
|
5836
|
-
export declare const SearchMessageResponseEmbedsList: S.Schema<SearchMessageResponseEmbedsList>;
|
|
5837
|
-
export type SearchMessageResponseComponentsItem = ActionRowComponentResponse | ContainerComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse;
|
|
5838
|
-
export declare const SearchMessageResponseComponentsItem: any;
|
|
5839
|
-
export type SearchMessageResponseComponentsList = Array<SearchMessageResponseComponentsItem>;
|
|
5840
|
-
export declare const SearchMessageResponseComponentsList: S.Schema<SearchMessageResponseComponentsList>;
|
|
5841
|
-
export type SearchMessageResponseStickersItem = GuildStickerResponse | StandardStickerResponse;
|
|
5842
|
-
export declare const SearchMessageResponseStickersItem: any;
|
|
5843
|
-
export type SearchMessageResponseStickersList = Array<SearchMessageResponseStickersItem>;
|
|
5844
|
-
export declare const SearchMessageResponseStickersList: S.Schema<SearchMessageResponseStickersList>;
|
|
5845
|
-
export type SearchMessageResponseStickerItemsList = Array<MessageStickerItemResponse>;
|
|
5846
|
-
export declare const SearchMessageResponseStickerItemsList: S.Schema<SearchMessageResponseStickerItemsList>;
|
|
5847
|
-
export type SearchMessageResponseNonce = number | string;
|
|
5848
|
-
export declare const SearchMessageResponseNonce: any;
|
|
5849
|
-
export type SearchMessageResponseMentionChannelsList = Array<MessageMentionChannelResponse>;
|
|
5850
|
-
export declare const SearchMessageResponseMentionChannelsList: S.Schema<SearchMessageResponseMentionChannelsList>;
|
|
5851
|
-
export type SearchMessageResponseInteractionMetadata = ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse;
|
|
5852
|
-
export declare const SearchMessageResponseInteractionMetadata: any;
|
|
5853
|
-
export type SearchMessageResponseMessageSnapshotsList = Array<MessageSnapshotResponse>;
|
|
5854
|
-
export declare const SearchMessageResponseMessageSnapshotsList: S.Schema<SearchMessageResponseMessageSnapshotsList>;
|
|
5855
|
-
export type SearchMessageResponseReactionsList = Array<MessageReactionResponse>;
|
|
5856
|
-
export declare const SearchMessageResponseReactionsList: S.Schema<SearchMessageResponseReactionsList>;
|
|
5857
|
-
export interface SearchMessageResponse {
|
|
5858
|
-
type: MessageType;
|
|
5859
|
-
content: string;
|
|
5860
|
-
mentions: SearchMessageResponseMentionsList;
|
|
5861
|
-
mention_roles: SearchMessageResponseMentionRolesList;
|
|
5862
|
-
attachments: SearchMessageResponseAttachmentsList;
|
|
5863
|
-
embeds: SearchMessageResponseEmbedsList;
|
|
5864
|
-
timestamp: string;
|
|
5865
|
-
edited_timestamp: string | null;
|
|
5866
|
-
flags: number;
|
|
5867
|
-
components: SearchMessageResponseComponentsList;
|
|
5868
|
-
stickers?: SearchMessageResponseStickersList;
|
|
5869
|
-
sticker_items?: SearchMessageResponseStickerItemsList;
|
|
5870
|
-
id: string;
|
|
5871
|
-
channel_id: string;
|
|
5872
|
-
author: UserResponse;
|
|
5873
|
-
pinned: boolean;
|
|
5874
|
-
mention_everyone: boolean;
|
|
5875
|
-
tts: boolean;
|
|
5876
|
-
call?: MessageCallResponse;
|
|
5877
|
-
activity?: MessageActivityResponse;
|
|
5878
|
-
application?: BasicApplicationResponseWithBot;
|
|
5879
|
-
application_id?: string;
|
|
5880
|
-
interaction?: MessageInteractionResponse;
|
|
5881
|
-
nonce?: SearchMessageResponseNonce;
|
|
5882
|
-
webhook_id?: string;
|
|
5883
|
-
message_reference?: MessageReferenceResponse;
|
|
5884
|
-
thread?: ThreadResponse;
|
|
5885
|
-
mention_channels?: SearchMessageResponseMentionChannelsList;
|
|
5886
|
-
role_subscription_data?: MessageRoleSubscriptionDataResponse;
|
|
5887
|
-
purchase_notification?: PurchaseNotificationResponse;
|
|
5888
|
-
position?: number;
|
|
5889
|
-
resolved?: ResolvedObjectsResponse;
|
|
5890
|
-
poll?: PollResponse;
|
|
5891
|
-
shared_client_theme?: CustomClientThemeResponse;
|
|
5892
|
-
interaction_metadata?: SearchMessageResponseInteractionMetadata;
|
|
5893
|
-
message_snapshots?: SearchMessageResponseMessageSnapshotsList;
|
|
5894
|
-
lobby_member?: MessageLobbyMemberResponse;
|
|
5895
|
-
reactions?: SearchMessageResponseReactionsList;
|
|
5896
|
-
referenced_message?: BasicMessageResponse | null;
|
|
5897
|
-
hit: boolean;
|
|
5898
|
-
restriction_count?: number;
|
|
5899
|
-
}
|
|
5900
|
-
export declare const SearchMessageResponse: S.Schema<SearchMessageResponse>;
|
|
5901
|
-
export type GuildSearchResponseMessagesItemList = Array<SearchMessageResponse>;
|
|
5902
|
-
export declare const GuildSearchResponseMessagesItemList: S.Schema<GuildSearchResponseMessagesItemList>;
|
|
5903
|
-
export type GuildSearchResponseMessagesList = Array<GuildSearchResponseMessagesItemList>;
|
|
5904
|
-
export declare const GuildSearchResponseMessagesList: S.Schema<GuildSearchResponseMessagesList>;
|
|
5905
|
-
export type GuildSearchResponseThreadsList = Array<ThreadResponse>;
|
|
5906
|
-
export declare const GuildSearchResponseThreadsList: S.Schema<GuildSearchResponseThreadsList>;
|
|
5907
|
-
export type GuildSearchResponseMembersList = Array<ThreadMemberResponse>;
|
|
5908
|
-
export declare const GuildSearchResponseMembersList: S.Schema<GuildSearchResponseMembersList>;
|
|
5909
|
-
export interface GuildSearchResponse {
|
|
5910
|
-
messages: GuildSearchResponseMessagesList;
|
|
5911
|
-
doing_deep_historical_index: boolean;
|
|
5912
|
-
total_results: number;
|
|
5913
|
-
threads?: GuildSearchResponseThreadsList | null;
|
|
5914
|
-
members?: GuildSearchResponseMembersList | null;
|
|
5915
|
-
documents_indexed?: number | null;
|
|
5916
|
-
}
|
|
5917
|
-
export declare const GuildSearchResponse: S.Schema<GuildSearchResponse>;
|
|
5918
5753
|
export interface InviteResolveRequest {
|
|
5919
5754
|
code: string;
|
|
5920
5755
|
with_counts?: boolean;
|
|
@@ -5927,14 +5762,15 @@ export type InviteResolveResponseBody = FriendInviteResponse | GroupDMInviteResp
|
|
|
5927
5762
|
export declare const InviteResolveResponseBody: any;
|
|
5928
5763
|
export type InviteResolveResponse = InviteResolveResponseBody;
|
|
5929
5764
|
export declare const InviteResolveResponse: S.Schema<InviteResolveResponse>;
|
|
5930
|
-
export interface
|
|
5931
|
-
|
|
5765
|
+
export interface JoinActionGuildRequestRequest {
|
|
5766
|
+
guild_id: string;
|
|
5767
|
+
request_id: string;
|
|
5768
|
+
/** Whether to approve or reject the join request */
|
|
5769
|
+
action?: GuildJoinRequestApplicationStatus | (string & {});
|
|
5770
|
+
/** Reason for rejection. Only used when action is REJECTED */
|
|
5771
|
+
rejection_reason?: string | null;
|
|
5932
5772
|
}
|
|
5933
|
-
export declare const
|
|
5934
|
-
export type InviteRevokeResponseBody = FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse;
|
|
5935
|
-
export declare const InviteRevokeResponseBody: any;
|
|
5936
|
-
export type InviteRevokeResponse = InviteRevokeResponseBody;
|
|
5937
|
-
export declare const InviteRevokeResponse: S.Schema<InviteRevokeResponse>;
|
|
5773
|
+
export declare const JoinActionGuildRequestRequest: S.Schema<JoinActionGuildRequestRequest>;
|
|
5938
5774
|
export interface JoinThreadRequest {
|
|
5939
5775
|
channel_id: string;
|
|
5940
5776
|
}
|
|
@@ -6012,6 +5848,14 @@ export type ListChannelWebhooksResponseBodyList = Array<ListChannelWebhooksRespo
|
|
|
6012
5848
|
export declare const ListChannelWebhooksResponseBodyList: S.Schema<ListChannelWebhooksResponseBodyList>;
|
|
6013
5849
|
export type ListChannelWebhooksResponse = ListChannelWebhooksResponseBodyList;
|
|
6014
5850
|
export declare const ListChannelWebhooksResponse: S.Schema<ListChannelWebhooksResponse>;
|
|
5851
|
+
export interface ListDeprecatedPinsRequest {
|
|
5852
|
+
channel_id: string;
|
|
5853
|
+
}
|
|
5854
|
+
export declare const ListDeprecatedPinsRequest: S.Schema<ListDeprecatedPinsRequest>;
|
|
5855
|
+
export type ListDeprecatedPinsResponseBodyList = Array<MessageResponse>;
|
|
5856
|
+
export declare const ListDeprecatedPinsResponseBodyList: S.Schema<ListDeprecatedPinsResponseBodyList>;
|
|
5857
|
+
export type ListDeprecatedPinsResponse = ListDeprecatedPinsResponseBodyList;
|
|
5858
|
+
export declare const ListDeprecatedPinsResponse: S.Schema<ListDeprecatedPinsResponse>;
|
|
6015
5859
|
export interface ListGuildApplicationCommandPermissionsRequest {
|
|
6016
5860
|
application_id: string;
|
|
6017
5861
|
guild_id: string;
|
|
@@ -6220,7 +6064,7 @@ export declare const ListGuildInvitesResponse: S.Schema<ListGuildInvitesResponse
|
|
|
6220
6064
|
export interface ListGuildMembersRequest {
|
|
6221
6065
|
guild_id: string;
|
|
6222
6066
|
limit?: number;
|
|
6223
|
-
after?:
|
|
6067
|
+
after?: string;
|
|
6224
6068
|
}
|
|
6225
6069
|
export declare const ListGuildMembersRequest: S.Schema<ListGuildMembersRequest>;
|
|
6226
6070
|
export type ListGuildMembersResponseBodyList = Array<GuildMemberResponse>;
|
|
@@ -6569,6 +6413,167 @@ export interface GuildOnboardingResponse {
|
|
|
6569
6413
|
mode: GuildOnboardingMode;
|
|
6570
6414
|
}
|
|
6571
6415
|
export declare const GuildOnboardingResponse: S.Schema<GuildOnboardingResponse>;
|
|
6416
|
+
export interface RevokeInviteRequest {
|
|
6417
|
+
code: string;
|
|
6418
|
+
}
|
|
6419
|
+
export declare const RevokeInviteRequest: S.Schema<RevokeInviteRequest>;
|
|
6420
|
+
export type RevokeInviteResponseBody = FriendInviteResponse | GroupDMInviteResponse | GuildInviteResponse;
|
|
6421
|
+
export declare const RevokeInviteResponseBody: any;
|
|
6422
|
+
export type RevokeInviteResponse = RevokeInviteResponseBody;
|
|
6423
|
+
export declare const RevokeInviteResponse: S.Schema<RevokeInviteResponse>;
|
|
6424
|
+
export type SortingMode = "relevance" | "timestamp";
|
|
6425
|
+
export declare const SortingMode: any;
|
|
6426
|
+
export type SortingOrder = "asc" | "desc";
|
|
6427
|
+
export declare const SortingOrder: any;
|
|
6428
|
+
export type SearchGuildRequestAuthorIdList = Array<string>;
|
|
6429
|
+
export declare const SearchGuildRequestAuthorIdList: S.Schema<SearchGuildRequestAuthorIdList>;
|
|
6430
|
+
export type AuthorType = "user" | "bot" | "webhook" | "-user" | "-bot" | "-webhook";
|
|
6431
|
+
export declare const AuthorType: any;
|
|
6432
|
+
export type SearchGuildRequestAuthorTypeList = Array<AuthorType | (string & {})>;
|
|
6433
|
+
export declare const SearchGuildRequestAuthorTypeList: S.Schema<SearchGuildRequestAuthorTypeList>;
|
|
6434
|
+
export type SearchGuildRequestMentionsList = Array<string>;
|
|
6435
|
+
export declare const SearchGuildRequestMentionsList: S.Schema<SearchGuildRequestMentionsList>;
|
|
6436
|
+
export type SearchGuildRequestMentionsRoleIdList = Array<string>;
|
|
6437
|
+
export declare const SearchGuildRequestMentionsRoleIdList: S.Schema<SearchGuildRequestMentionsRoleIdList>;
|
|
6438
|
+
export type SearchGuildRequestRepliedToUserIdList = Array<string>;
|
|
6439
|
+
export declare const SearchGuildRequestRepliedToUserIdList: S.Schema<SearchGuildRequestRepliedToUserIdList>;
|
|
6440
|
+
export type SearchGuildRequestRepliedToMessageIdList = Array<string>;
|
|
6441
|
+
export declare const SearchGuildRequestRepliedToMessageIdList: S.Schema<SearchGuildRequestRepliedToMessageIdList>;
|
|
6442
|
+
export type HasOption = "link" | "embed" | "file" | "image" | "video" | "sound" | "sticker" | "poll" | "snapshot" | "-link" | "-embed" | "-file" | "-image" | "-video" | "-sound" | "-sticker" | "-poll" | "-snapshot";
|
|
6443
|
+
export declare const HasOption: any;
|
|
6444
|
+
export type SearchGuildRequestHasList = Array<HasOption | (string & {})>;
|
|
6445
|
+
export declare const SearchGuildRequestHasList: S.Schema<SearchGuildRequestHasList>;
|
|
6446
|
+
export type SearchGuildRequestLinkHostnameList = Array<string>;
|
|
6447
|
+
export declare const SearchGuildRequestLinkHostnameList: S.Schema<SearchGuildRequestLinkHostnameList>;
|
|
6448
|
+
export type SearchGuildRequestEmbedProviderList = Array<string>;
|
|
6449
|
+
export declare const SearchGuildRequestEmbedProviderList: S.Schema<SearchGuildRequestEmbedProviderList>;
|
|
6450
|
+
export type SearchableEmbedType = "image" | "video" | "gif" | "sound" | "article";
|
|
6451
|
+
export declare const SearchableEmbedType: any;
|
|
6452
|
+
export type SearchGuildRequestEmbedTypeList = Array<SearchableEmbedType | (string & {})>;
|
|
6453
|
+
export declare const SearchGuildRequestEmbedTypeList: S.Schema<SearchGuildRequestEmbedTypeList>;
|
|
6454
|
+
export type SearchGuildRequestAttachmentExtensionList = Array<string>;
|
|
6455
|
+
export declare const SearchGuildRequestAttachmentExtensionList: S.Schema<SearchGuildRequestAttachmentExtensionList>;
|
|
6456
|
+
export type SearchGuildRequestAttachmentFilenameList = Array<string>;
|
|
6457
|
+
export declare const SearchGuildRequestAttachmentFilenameList: S.Schema<SearchGuildRequestAttachmentFilenameList>;
|
|
6458
|
+
export type SearchGuildRequestChannelIdList = Array<string>;
|
|
6459
|
+
export declare const SearchGuildRequestChannelIdList: S.Schema<SearchGuildRequestChannelIdList>;
|
|
6460
|
+
export interface SearchGuildRequest {
|
|
6461
|
+
guild_id: string;
|
|
6462
|
+
sort_by?: SortingMode | (string & {});
|
|
6463
|
+
sort_order?: SortingOrder | (string & {});
|
|
6464
|
+
content?: string;
|
|
6465
|
+
slop?: number;
|
|
6466
|
+
author_id?: SearchGuildRequestAuthorIdList;
|
|
6467
|
+
author_type?: SearchGuildRequestAuthorTypeList;
|
|
6468
|
+
mentions?: SearchGuildRequestMentionsList;
|
|
6469
|
+
mentions_role_id?: SearchGuildRequestMentionsRoleIdList;
|
|
6470
|
+
replied_to_user_id?: SearchGuildRequestRepliedToUserIdList;
|
|
6471
|
+
replied_to_message_id?: SearchGuildRequestRepliedToMessageIdList;
|
|
6472
|
+
mention_everyone?: boolean;
|
|
6473
|
+
min_id?: string;
|
|
6474
|
+
max_id?: string;
|
|
6475
|
+
limit?: number;
|
|
6476
|
+
offset?: number;
|
|
6477
|
+
has?: SearchGuildRequestHasList;
|
|
6478
|
+
link_hostname?: SearchGuildRequestLinkHostnameList;
|
|
6479
|
+
embed_provider?: SearchGuildRequestEmbedProviderList;
|
|
6480
|
+
embed_type?: SearchGuildRequestEmbedTypeList;
|
|
6481
|
+
attachment_extension?: SearchGuildRequestAttachmentExtensionList;
|
|
6482
|
+
attachment_filename?: SearchGuildRequestAttachmentFilenameList;
|
|
6483
|
+
pinned?: boolean;
|
|
6484
|
+
include_nsfw?: boolean;
|
|
6485
|
+
channel_id?: SearchGuildRequestChannelIdList;
|
|
6486
|
+
}
|
|
6487
|
+
export declare const SearchGuildRequest: S.Schema<SearchGuildRequest>;
|
|
6488
|
+
export type SearchMessageResponseMentionsList = Array<UserResponse>;
|
|
6489
|
+
export declare const SearchMessageResponseMentionsList: S.Schema<SearchMessageResponseMentionsList>;
|
|
6490
|
+
export type SearchMessageResponseMentionRolesList = Array<string>;
|
|
6491
|
+
export declare const SearchMessageResponseMentionRolesList: S.Schema<SearchMessageResponseMentionRolesList>;
|
|
6492
|
+
export type SearchMessageResponseAttachmentsList = Array<MessageAttachmentResponse>;
|
|
6493
|
+
export declare const SearchMessageResponseAttachmentsList: S.Schema<SearchMessageResponseAttachmentsList>;
|
|
6494
|
+
export type SearchMessageResponseEmbedsList = Array<MessageEmbedResponse>;
|
|
6495
|
+
export declare const SearchMessageResponseEmbedsList: S.Schema<SearchMessageResponseEmbedsList>;
|
|
6496
|
+
export type SearchMessageResponseComponentsItem = ActionRowComponentResponse | ContainerComponentResponse | FileComponentResponse | MediaGalleryComponentResponse | SectionComponentResponse | SeparatorComponentResponse | TextDisplayComponentResponse;
|
|
6497
|
+
export declare const SearchMessageResponseComponentsItem: any;
|
|
6498
|
+
export type SearchMessageResponseComponentsList = Array<SearchMessageResponseComponentsItem>;
|
|
6499
|
+
export declare const SearchMessageResponseComponentsList: S.Schema<SearchMessageResponseComponentsList>;
|
|
6500
|
+
export type SearchMessageResponseStickersItem = GuildStickerResponse | StandardStickerResponse;
|
|
6501
|
+
export declare const SearchMessageResponseStickersItem: any;
|
|
6502
|
+
export type SearchMessageResponseStickersList = Array<SearchMessageResponseStickersItem>;
|
|
6503
|
+
export declare const SearchMessageResponseStickersList: S.Schema<SearchMessageResponseStickersList>;
|
|
6504
|
+
export type SearchMessageResponseStickerItemsList = Array<MessageStickerItemResponse>;
|
|
6505
|
+
export declare const SearchMessageResponseStickerItemsList: S.Schema<SearchMessageResponseStickerItemsList>;
|
|
6506
|
+
export type SearchMessageResponseNonce = number | string;
|
|
6507
|
+
export declare const SearchMessageResponseNonce: any;
|
|
6508
|
+
export type SearchMessageResponseMentionChannelsList = Array<MessageMentionChannelResponse>;
|
|
6509
|
+
export declare const SearchMessageResponseMentionChannelsList: S.Schema<SearchMessageResponseMentionChannelsList>;
|
|
6510
|
+
export type SearchMessageResponseInteractionMetadata = ApplicationCommandInteractionMetadataResponse | MessageComponentInteractionMetadataResponse | ModalSubmitInteractionMetadataResponse;
|
|
6511
|
+
export declare const SearchMessageResponseInteractionMetadata: any;
|
|
6512
|
+
export type SearchMessageResponseMessageSnapshotsList = Array<MessageSnapshotResponse>;
|
|
6513
|
+
export declare const SearchMessageResponseMessageSnapshotsList: S.Schema<SearchMessageResponseMessageSnapshotsList>;
|
|
6514
|
+
export type SearchMessageResponseReactionsList = Array<MessageReactionResponse>;
|
|
6515
|
+
export declare const SearchMessageResponseReactionsList: S.Schema<SearchMessageResponseReactionsList>;
|
|
6516
|
+
export interface SearchMessageResponse {
|
|
6517
|
+
type: MessageType;
|
|
6518
|
+
content: string;
|
|
6519
|
+
mentions: SearchMessageResponseMentionsList;
|
|
6520
|
+
mention_roles: SearchMessageResponseMentionRolesList;
|
|
6521
|
+
attachments: SearchMessageResponseAttachmentsList;
|
|
6522
|
+
embeds: SearchMessageResponseEmbedsList;
|
|
6523
|
+
timestamp: string;
|
|
6524
|
+
edited_timestamp: string | null;
|
|
6525
|
+
flags: number;
|
|
6526
|
+
components: SearchMessageResponseComponentsList;
|
|
6527
|
+
stickers?: SearchMessageResponseStickersList;
|
|
6528
|
+
sticker_items?: SearchMessageResponseStickerItemsList;
|
|
6529
|
+
id: string;
|
|
6530
|
+
channel_id: string;
|
|
6531
|
+
author: UserResponse;
|
|
6532
|
+
pinned: boolean;
|
|
6533
|
+
mention_everyone: boolean;
|
|
6534
|
+
tts: boolean;
|
|
6535
|
+
call?: MessageCallResponse;
|
|
6536
|
+
activity?: MessageActivityResponse;
|
|
6537
|
+
application?: BasicApplicationResponseWithBot;
|
|
6538
|
+
application_id?: string;
|
|
6539
|
+
interaction?: MessageInteractionResponse;
|
|
6540
|
+
nonce?: SearchMessageResponseNonce;
|
|
6541
|
+
webhook_id?: string;
|
|
6542
|
+
message_reference?: MessageReferenceResponse;
|
|
6543
|
+
thread?: ThreadResponse;
|
|
6544
|
+
mention_channels?: SearchMessageResponseMentionChannelsList;
|
|
6545
|
+
role_subscription_data?: MessageRoleSubscriptionDataResponse;
|
|
6546
|
+
purchase_notification?: PurchaseNotificationResponse;
|
|
6547
|
+
position?: number;
|
|
6548
|
+
resolved?: ResolvedObjectsResponse;
|
|
6549
|
+
poll?: PollResponse;
|
|
6550
|
+
shared_client_theme?: CustomClientThemeResponse;
|
|
6551
|
+
interaction_metadata?: SearchMessageResponseInteractionMetadata;
|
|
6552
|
+
message_snapshots?: SearchMessageResponseMessageSnapshotsList;
|
|
6553
|
+
lobby_member?: MessageLobbyMemberResponse;
|
|
6554
|
+
reactions?: SearchMessageResponseReactionsList;
|
|
6555
|
+
referenced_message?: BasicMessageResponse | null;
|
|
6556
|
+
hit: boolean;
|
|
6557
|
+
restriction_count?: number;
|
|
6558
|
+
}
|
|
6559
|
+
export declare const SearchMessageResponse: S.Schema<SearchMessageResponse>;
|
|
6560
|
+
export type GuildSearchResponseMessagesItemList = Array<SearchMessageResponse>;
|
|
6561
|
+
export declare const GuildSearchResponseMessagesItemList: S.Schema<GuildSearchResponseMessagesItemList>;
|
|
6562
|
+
export type GuildSearchResponseMessagesList = Array<GuildSearchResponseMessagesItemList>;
|
|
6563
|
+
export declare const GuildSearchResponseMessagesList: S.Schema<GuildSearchResponseMessagesList>;
|
|
6564
|
+
export type GuildSearchResponseThreadsList = Array<ThreadResponse>;
|
|
6565
|
+
export declare const GuildSearchResponseThreadsList: S.Schema<GuildSearchResponseThreadsList>;
|
|
6566
|
+
export type GuildSearchResponseMembersList = Array<ThreadMemberResponse>;
|
|
6567
|
+
export declare const GuildSearchResponseMembersList: S.Schema<GuildSearchResponseMembersList>;
|
|
6568
|
+
export interface GuildSearchResponse {
|
|
6569
|
+
messages: GuildSearchResponseMessagesList;
|
|
6570
|
+
doing_deep_historical_index: boolean;
|
|
6571
|
+
total_results: number;
|
|
6572
|
+
threads?: GuildSearchResponseThreadsList | null;
|
|
6573
|
+
members?: GuildSearchResponseMembersList | null;
|
|
6574
|
+
documents_indexed?: number | null;
|
|
6575
|
+
}
|
|
6576
|
+
export declare const GuildSearchResponse: S.Schema<GuildSearchResponse>;
|
|
6572
6577
|
export interface SearchGuildMembersRequest {
|
|
6573
6578
|
guild_id: string;
|
|
6574
6579
|
limit?: number;
|
|
@@ -6579,6 +6584,41 @@ export type SearchGuildMembersResponseBodyList = Array<GuildMemberResponse>;
|
|
|
6579
6584
|
export declare const SearchGuildMembersResponseBodyList: S.Schema<SearchGuildMembersResponseBodyList>;
|
|
6580
6585
|
export type SearchGuildMembersResponse = SearchGuildMembersResponseBodyList;
|
|
6581
6586
|
export declare const SearchGuildMembersResponse: S.Schema<SearchGuildMembersResponse>;
|
|
6587
|
+
export type SearchThreadRequestTagCase1List = Array<string>;
|
|
6588
|
+
export declare const SearchThreadRequestTagCase1List: S.Schema<SearchThreadRequestTagCase1List>;
|
|
6589
|
+
export type SearchThreadRequestTag = string | SearchThreadRequestTagCase1List;
|
|
6590
|
+
export declare const SearchThreadRequestTag: any;
|
|
6591
|
+
export type ThreadSortingMode = "relevance" | "creation_time" | "last_message_time" | "archive_time";
|
|
6592
|
+
export declare const ThreadSortingMode: any;
|
|
6593
|
+
export interface SearchThreadRequest {
|
|
6594
|
+
channel_id: string;
|
|
6595
|
+
name?: string;
|
|
6596
|
+
slop?: number;
|
|
6597
|
+
min_id?: string;
|
|
6598
|
+
max_id?: string;
|
|
6599
|
+
tag?: SearchThreadRequestTag;
|
|
6600
|
+
tag_setting?: ThreadSearchTagSetting | (string & {});
|
|
6601
|
+
archived?: boolean;
|
|
6602
|
+
sort_by?: ThreadSortingMode | (string & {});
|
|
6603
|
+
sort_order?: SortingOrder | (string & {});
|
|
6604
|
+
limit?: number;
|
|
6605
|
+
offset?: number;
|
|
6606
|
+
}
|
|
6607
|
+
export declare const SearchThreadRequest: S.Schema<SearchThreadRequest>;
|
|
6608
|
+
export type ThreadSearchResponseThreadsList = Array<ThreadResponse>;
|
|
6609
|
+
export declare const ThreadSearchResponseThreadsList: S.Schema<ThreadSearchResponseThreadsList>;
|
|
6610
|
+
export type ThreadSearchResponseMembersList = Array<ThreadMemberResponse>;
|
|
6611
|
+
export declare const ThreadSearchResponseMembersList: S.Schema<ThreadSearchResponseMembersList>;
|
|
6612
|
+
export type ThreadSearchResponseFirstMessagesList = Array<MessageResponse>;
|
|
6613
|
+
export declare const ThreadSearchResponseFirstMessagesList: S.Schema<ThreadSearchResponseFirstMessagesList>;
|
|
6614
|
+
export interface ThreadSearchResponse {
|
|
6615
|
+
threads: ThreadSearchResponseThreadsList;
|
|
6616
|
+
members: ThreadSearchResponseMembersList;
|
|
6617
|
+
has_more: boolean;
|
|
6618
|
+
first_messages?: ThreadSearchResponseFirstMessagesList;
|
|
6619
|
+
total_results: number;
|
|
6620
|
+
}
|
|
6621
|
+
export declare const ThreadSearchResponse: S.Schema<ThreadSearchResponse>;
|
|
6582
6622
|
export interface SendSoundboardSoundRequest {
|
|
6583
6623
|
channel_id: string;
|
|
6584
6624
|
sound_id: string;
|
|
@@ -6619,41 +6659,6 @@ export interface SyncGuildTemplateRequest {
|
|
|
6619
6659
|
code: string;
|
|
6620
6660
|
}
|
|
6621
6661
|
export declare const SyncGuildTemplateRequest: S.Schema<SyncGuildTemplateRequest>;
|
|
6622
|
-
export type ThreadSearchRequestTagCase1List = Array<string>;
|
|
6623
|
-
export declare const ThreadSearchRequestTagCase1List: S.Schema<ThreadSearchRequestTagCase1List>;
|
|
6624
|
-
export type ThreadSearchRequestTag = string | ThreadSearchRequestTagCase1List;
|
|
6625
|
-
export declare const ThreadSearchRequestTag: any;
|
|
6626
|
-
export type ThreadSortingMode = "relevance" | "creation_time" | "last_message_time" | "archive_time";
|
|
6627
|
-
export declare const ThreadSortingMode: any;
|
|
6628
|
-
export interface ThreadSearchRequest {
|
|
6629
|
-
channel_id: string;
|
|
6630
|
-
name?: string;
|
|
6631
|
-
slop?: number;
|
|
6632
|
-
min_id?: string;
|
|
6633
|
-
max_id?: string;
|
|
6634
|
-
tag?: ThreadSearchRequestTag;
|
|
6635
|
-
tag_setting?: ThreadSearchTagSetting | (string & {});
|
|
6636
|
-
archived?: boolean;
|
|
6637
|
-
sort_by?: ThreadSortingMode | (string & {});
|
|
6638
|
-
sort_order?: SortingOrder | (string & {});
|
|
6639
|
-
limit?: number;
|
|
6640
|
-
offset?: number;
|
|
6641
|
-
}
|
|
6642
|
-
export declare const ThreadSearchRequest: S.Schema<ThreadSearchRequest>;
|
|
6643
|
-
export type ThreadSearchResponseThreadsList = Array<ThreadResponse>;
|
|
6644
|
-
export declare const ThreadSearchResponseThreadsList: S.Schema<ThreadSearchResponseThreadsList>;
|
|
6645
|
-
export type ThreadSearchResponseMembersList = Array<ThreadMemberResponse>;
|
|
6646
|
-
export declare const ThreadSearchResponseMembersList: S.Schema<ThreadSearchResponseMembersList>;
|
|
6647
|
-
export type ThreadSearchResponseFirstMessagesList = Array<MessageResponse>;
|
|
6648
|
-
export declare const ThreadSearchResponseFirstMessagesList: S.Schema<ThreadSearchResponseFirstMessagesList>;
|
|
6649
|
-
export interface ThreadSearchResponse {
|
|
6650
|
-
threads: ThreadSearchResponseThreadsList;
|
|
6651
|
-
members: ThreadSearchResponseMembersList;
|
|
6652
|
-
has_more: boolean;
|
|
6653
|
-
first_messages?: ThreadSearchResponseFirstMessagesList;
|
|
6654
|
-
total_results: number;
|
|
6655
|
-
}
|
|
6656
|
-
export declare const ThreadSearchResponse: S.Schema<ThreadSearchResponse>;
|
|
6657
6662
|
export interface TriggerTypingIndicatorRequest {
|
|
6658
6663
|
channel_id: string;
|
|
6659
6664
|
}
|
|
@@ -7478,9 +7483,6 @@ export interface ActivitiesAttachmentResponse {
|
|
|
7478
7483
|
attachment: AttachmentResponse;
|
|
7479
7484
|
}
|
|
7480
7485
|
export declare const ActivitiesAttachmentResponse: S.Schema<ActivitiesAttachmentResponse>;
|
|
7481
|
-
export type ActionGuildJoinRequestError = DiscordOpError;
|
|
7482
|
-
/** Approve or reject guild join request */
|
|
7483
|
-
export declare const actionGuildJoinRequest: API.OperationMethod<ActionGuildJoinRequestRequest, GuildJoinRequestResponse, ActionGuildJoinRequestError, DiscordOpContext>;
|
|
7484
7486
|
export type AddGroupDmUserError = DiscordOpError;
|
|
7485
7487
|
export declare const addGroupDmUser: API.OperationMethod<AddGroupDmUserRequest, AddGroupDmUserResponse, AddGroupDmUserError, DiscordOpContext>;
|
|
7486
7488
|
export type AddGuildMemberError = DiscordOpError;
|
|
@@ -7493,8 +7495,6 @@ export type AddMyMessageReactionError = DiscordOpError;
|
|
|
7493
7495
|
export declare const addMyMessageReaction: API.OperationMethod<AddMyMessageReactionRequest, AddMyMessageReactionResponse, AddMyMessageReactionError, DiscordOpContext>;
|
|
7494
7496
|
export type AddThreadMemberError = DiscordOpError;
|
|
7495
7497
|
export declare const addThreadMember: API.OperationMethod<AddThreadMemberRequest, AddThreadMemberResponse, AddThreadMemberError, DiscordOpContext>;
|
|
7496
|
-
export type ApplicationsGetActivityInstanceError = DiscordOpError;
|
|
7497
|
-
export declare const applicationsGetActivityInstance: API.OperationMethod<ApplicationsGetActivityInstanceRequest, EmbeddedActivityInstance, ApplicationsGetActivityInstanceError, DiscordOpContext>;
|
|
7498
7498
|
export type BanUserFromGuildError = DiscordOpError;
|
|
7499
7499
|
export declare const banUserFromGuild: API.OperationMethod<BanUserFromGuildRequest, BanUserFromGuildResponse, BanUserFromGuildError, DiscordOpContext>;
|
|
7500
7500
|
export type BotPartnerSdkTokenError = DiscordOpError;
|
|
@@ -7528,6 +7528,8 @@ export type CreateAutoModerationRuleError = DiscordOpError;
|
|
|
7528
7528
|
export declare const createAutoModerationRule: API.OperationMethod<CreateAutoModerationRuleRequest, CreateAutoModerationRuleResponse, CreateAutoModerationRuleError, DiscordOpContext>;
|
|
7529
7529
|
export type CreateChannelInviteError = DiscordOpError;
|
|
7530
7530
|
export declare const createChannelInvite: API.OperationMethod<CreateChannelInviteRequest, CreateChannelInviteResponse, CreateChannelInviteError, DiscordOpContext>;
|
|
7531
|
+
export type CreateDeprecatedPinError = DiscordOpError;
|
|
7532
|
+
export declare const createDeprecatedPin: API.OperationMethod<CreateDeprecatedPinRequest, CreateDeprecatedPinResponse, CreateDeprecatedPinError, DiscordOpContext>;
|
|
7531
7533
|
export type CreateDmError = DiscordOpError;
|
|
7532
7534
|
export declare const createDm: API.OperationMethod<CreateDmRequest, CreateDmResponse, CreateDmError, DiscordOpContext>;
|
|
7533
7535
|
export type CreateEntitlementError = DiscordOpError;
|
|
@@ -7593,6 +7595,8 @@ export type DeleteChannelError = DiscordOpError;
|
|
|
7593
7595
|
export declare const deleteChannel: API.OperationMethod<DeleteChannelRequest, DeleteChannelResponse, DeleteChannelError, DiscordOpContext>;
|
|
7594
7596
|
export type DeleteChannelPermissionOverwriteError = DiscordOpError;
|
|
7595
7597
|
export declare const deleteChannelPermissionOverwrite: API.OperationMethod<DeleteChannelPermissionOverwriteRequest, DeleteChannelPermissionOverwriteResponse, DeleteChannelPermissionOverwriteError, DiscordOpContext>;
|
|
7598
|
+
export type DeleteDeprecatedPinError = DiscordOpError;
|
|
7599
|
+
export declare const deleteDeprecatedPin: API.OperationMethod<DeleteDeprecatedPinRequest, DeleteDeprecatedPinResponse, DeleteDeprecatedPinError, DiscordOpContext>;
|
|
7596
7600
|
export type DeleteEntitlementError = DiscordOpError;
|
|
7597
7601
|
export declare const deleteEntitlement: API.OperationMethod<DeleteEntitlementRequest, DeleteEntitlementResponse, DeleteEntitlementError, DiscordOpContext>;
|
|
7598
7602
|
export type DeleteGroupDmUserError = DiscordOpError;
|
|
@@ -7645,12 +7649,6 @@ export type DeleteWebhookByTokenError = DiscordOpError;
|
|
|
7645
7649
|
export declare const deleteWebhookByToken: API.OperationMethod<DeleteWebhookByTokenRequest, DeleteWebhookByTokenResponse, DeleteWebhookByTokenError, DiscordOpContext>;
|
|
7646
7650
|
export type DeleteWebhookMessageError = DiscordOpError;
|
|
7647
7651
|
export declare const deleteWebhookMessage: API.OperationMethod<DeleteWebhookMessageRequest, DeleteWebhookMessageResponse, DeleteWebhookMessageError, DiscordOpContext>;
|
|
7648
|
-
export type DeprecatedCreatePinError = DiscordOpError;
|
|
7649
|
-
export declare const deprecatedCreatePin: API.OperationMethod<DeprecatedCreatePinRequest, DeprecatedCreatePinResponse, DeprecatedCreatePinError, DiscordOpContext>;
|
|
7650
|
-
export type DeprecatedDeletePinError = DiscordOpError;
|
|
7651
|
-
export declare const deprecatedDeletePin: API.OperationMethod<DeprecatedDeletePinRequest, DeprecatedDeletePinResponse, DeprecatedDeletePinError, DiscordOpContext>;
|
|
7652
|
-
export type DeprecatedListPinsError = DiscordOpError;
|
|
7653
|
-
export declare const deprecatedListPins: API.OperationMethod<DeprecatedListPinsRequest, DeprecatedListPinsResponse, DeprecatedListPinsError, DiscordOpContext>;
|
|
7654
7652
|
export type EditLobbyError = DiscordOpError;
|
|
7655
7653
|
export declare const editLobby: API.OperationMethod<EditLobbyRequest, LobbyResponse, EditLobbyError, DiscordOpContext>;
|
|
7656
7654
|
export type EditLobbyChannelLinkError = DiscordOpError;
|
|
@@ -7669,6 +7667,8 @@ export type GetAnswerVotersError = DiscordOpError;
|
|
|
7669
7667
|
export declare const getAnswerVoters: API.OperationMethod<GetAnswerVotersRequest, PollAnswerDetailsResponse, GetAnswerVotersError, DiscordOpContext>;
|
|
7670
7668
|
export type GetApplicationError = DiscordOpError;
|
|
7671
7669
|
export declare const getApplication: API.OperationMethod<GetApplicationRequest, PrivateApplicationResponse, GetApplicationError, DiscordOpContext>;
|
|
7670
|
+
export type GetApplicationActivityInstanceError = DiscordOpError;
|
|
7671
|
+
export declare const getApplicationActivityInstance: API.OperationMethod<GetApplicationActivityInstanceRequest, EmbeddedActivityInstance, GetApplicationActivityInstanceError, DiscordOpContext>;
|
|
7672
7672
|
export type GetApplicationCommandError = DiscordOpError;
|
|
7673
7673
|
export declare const getApplicationCommand: API.OperationMethod<GetApplicationCommandRequest, ApplicationCommandResponse, GetApplicationCommandError, DiscordOpContext>;
|
|
7674
7674
|
export type GetApplicationEmojiError = DiscordOpError;
|
|
@@ -7792,12 +7792,11 @@ export type GetWebhookMessageError = DiscordOpError;
|
|
|
7792
7792
|
export declare const getWebhookMessage: API.OperationMethod<GetWebhookMessageRequest, MessageResponse, GetWebhookMessageError, DiscordOpContext>;
|
|
7793
7793
|
export type GuildRoleMemberCountsError = DiscordOpError;
|
|
7794
7794
|
export declare const guildRoleMemberCounts: API.OperationMethod<GuildRoleMemberCountsRequest, GuildRoleMemberCountsResponse, GuildRoleMemberCountsError, DiscordOpContext>;
|
|
7795
|
-
export type GuildSearchError = DiscordOpError;
|
|
7796
|
-
export declare const guildSearch: API.OperationMethod<GuildSearchRequest, GuildSearchResponse, GuildSearchError, DiscordOpContext>;
|
|
7797
7795
|
export type InviteResolveError = DiscordOpError;
|
|
7798
7796
|
export declare const inviteResolve: API.OperationMethod<InviteResolveRequest, InviteResolveResponse, InviteResolveError, DiscordOpContext>;
|
|
7799
|
-
export type
|
|
7800
|
-
|
|
7797
|
+
export type JoinActionGuildRequestError = DiscordOpError;
|
|
7798
|
+
/** Approve or reject guild join request */
|
|
7799
|
+
export declare const joinActionGuildRequest: API.OperationMethod<JoinActionGuildRequestRequest, GuildJoinRequestResponse, JoinActionGuildRequestError, DiscordOpContext>;
|
|
7801
7800
|
export type JoinThreadError = DiscordOpError;
|
|
7802
7801
|
export declare const joinThread: API.OperationMethod<JoinThreadRequest, JoinThreadResponse, JoinThreadError, DiscordOpContext>;
|
|
7803
7802
|
export type LeaveGuildError = DiscordOpError;
|
|
@@ -7816,6 +7815,8 @@ export type ListChannelInvitesError = DiscordOpError;
|
|
|
7816
7815
|
export declare const listChannelInvites: API.OperationMethod<ListChannelInvitesRequest, ListChannelInvitesResponse, ListChannelInvitesError, DiscordOpContext>;
|
|
7817
7816
|
export type ListChannelWebhooksError = DiscordOpError;
|
|
7818
7817
|
export declare const listChannelWebhooks: API.OperationMethod<ListChannelWebhooksRequest, ListChannelWebhooksResponse, ListChannelWebhooksError, DiscordOpContext>;
|
|
7818
|
+
export type ListDeprecatedPinsError = DiscordOpError;
|
|
7819
|
+
export declare const listDeprecatedPins: API.OperationMethod<ListDeprecatedPinsRequest, ListDeprecatedPinsResponse, ListDeprecatedPinsError, DiscordOpContext>;
|
|
7819
7820
|
export type ListGuildApplicationCommandPermissionsError = DiscordOpError;
|
|
7820
7821
|
export declare const listGuildApplicationCommandPermissions: API.OperationMethod<ListGuildApplicationCommandPermissionsRequest, ListGuildApplicationCommandPermissionsResponse, ListGuildApplicationCommandPermissionsError, DiscordOpContext>;
|
|
7821
7822
|
export type ListGuildApplicationCommandsError = DiscordOpError;
|
|
@@ -7885,8 +7886,14 @@ export type PruneGuildError = DiscordOpError;
|
|
|
7885
7886
|
export declare const pruneGuild: API.OperationMethod<PruneGuildRequest, GuildPruneResponse, PruneGuildError, DiscordOpContext>;
|
|
7886
7887
|
export type PutGuildsOnboardingError = DiscordOpError;
|
|
7887
7888
|
export declare const putGuildsOnboarding: API.OperationMethod<PutGuildsOnboardingRequest, GuildOnboardingResponse, PutGuildsOnboardingError, DiscordOpContext>;
|
|
7889
|
+
export type RevokeInviteError = DiscordOpError;
|
|
7890
|
+
export declare const revokeInvite: API.OperationMethod<RevokeInviteRequest, RevokeInviteResponse, RevokeInviteError, DiscordOpContext>;
|
|
7891
|
+
export type SearchGuildError = DiscordOpError;
|
|
7892
|
+
export declare const searchGuild: API.OperationMethod<SearchGuildRequest, GuildSearchResponse, SearchGuildError, DiscordOpContext>;
|
|
7888
7893
|
export type SearchGuildMembersError = DiscordOpError;
|
|
7889
7894
|
export declare const searchGuildMembers: API.OperationMethod<SearchGuildMembersRequest, SearchGuildMembersResponse, SearchGuildMembersError, DiscordOpContext>;
|
|
7895
|
+
export type SearchThreadError = DiscordOpError;
|
|
7896
|
+
export declare const searchThread: API.OperationMethod<SearchThreadRequest, ThreadSearchResponse, SearchThreadError, DiscordOpContext>;
|
|
7890
7897
|
export type SendSoundboardSoundError = DiscordOpError;
|
|
7891
7898
|
export declare const sendSoundboardSound: API.OperationMethod<SendSoundboardSoundRequest, SendSoundboardSoundResponse, SendSoundboardSoundError, DiscordOpContext>;
|
|
7892
7899
|
export type SetChannelPermissionOverwriteError = DiscordOpError;
|
|
@@ -7895,8 +7902,6 @@ export type SetGuildApplicationCommandPermissionsError = DiscordOpError;
|
|
|
7895
7902
|
export declare const setGuildApplicationCommandPermissions: API.OperationMethod<SetGuildApplicationCommandPermissionsRequest, CommandPermissionsResponse, SetGuildApplicationCommandPermissionsError, DiscordOpContext>;
|
|
7896
7903
|
export type SyncGuildTemplateError = DiscordOpError;
|
|
7897
7904
|
export declare const syncGuildTemplate: API.OperationMethod<SyncGuildTemplateRequest, GuildTemplateResponse, SyncGuildTemplateError, DiscordOpContext>;
|
|
7898
|
-
export type ThreadSearchError = DiscordOpError;
|
|
7899
|
-
export declare const threadSearch: API.OperationMethod<ThreadSearchRequest, ThreadSearchResponse, ThreadSearchError, DiscordOpContext>;
|
|
7900
7905
|
export type TriggerTypingIndicatorError = DiscordOpError;
|
|
7901
7906
|
export declare const triggerTypingIndicator: API.OperationMethod<TriggerTypingIndicatorRequest, TriggerTypingIndicatorResponse, TriggerTypingIndicatorError, DiscordOpContext>;
|
|
7902
7907
|
export type UnbanUserFromGuildError = DiscordOpError;
|