dfx 0.123.0 → 0.124.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DiscordGateway/Messaging.d.ts +74 -74
- package/DiscordGateway/Shard.d.ts +2 -2
- package/DiscordGateway/Sharder.d.ts +1 -1
- package/DiscordREST/Generated.d.ts +124 -147
- package/DiscordREST/Generated.d.ts.map +1 -1
- package/DiscordREST/Generated.js +23 -9
- package/DiscordREST/Generated.js.map +1 -1
- package/DiscordREST.d.ts.map +1 -1
- package/DiscordREST.js.map +1 -1
- package/Helpers/permissions.d.ts +2 -2
- package/Interactions/definitions.d.ts +5 -5
- package/mjs/DiscordREST/Generated.mjs +22 -8
- package/mjs/DiscordREST/Generated.mjs.map +1 -1
- package/mjs/DiscordREST.mjs.map +1 -1
- package/mjs/version.mjs +1 -1
- package/package.json +5 -5
- package/src/DiscordREST/Generated.ts +187 -212
- package/src/DiscordREST.ts +3 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1488,7 +1488,18 @@ export const ForumLayout = {
|
|
|
1488
1488
|
} as const
|
|
1489
1489
|
export type ForumLayout = (typeof ForumLayout)[keyof typeof ForumLayout]
|
|
1490
1490
|
|
|
1491
|
-
export
|
|
1491
|
+
export const ThreadSearchTagSetting = {
|
|
1492
|
+
/**
|
|
1493
|
+
* The thread tags must contain all tags in the search query
|
|
1494
|
+
*/
|
|
1495
|
+
MATCH_ALL: "match_all",
|
|
1496
|
+
/**
|
|
1497
|
+
* The thread tags must contain at least one of tags in the search query
|
|
1498
|
+
*/
|
|
1499
|
+
MATCH_SOME: "match_some",
|
|
1500
|
+
} as const
|
|
1501
|
+
export type ThreadSearchTagSetting =
|
|
1502
|
+
(typeof ThreadSearchTagSetting)[keyof typeof ThreadSearchTagSetting]
|
|
1492
1503
|
|
|
1493
1504
|
export interface GuildChannelResponse {
|
|
1494
1505
|
readonly id: SnowflakeType
|
|
@@ -1575,6 +1586,7 @@ export interface GuildMemberResponse {
|
|
|
1575
1586
|
readonly pending: boolean
|
|
1576
1587
|
readonly premium_since?: string | null | undefined
|
|
1577
1588
|
readonly roles: ReadonlyArray<SnowflakeType>
|
|
1589
|
+
readonly collectibles?: UserCollectiblesResponse | null | undefined
|
|
1578
1590
|
readonly user: UserResponse
|
|
1579
1591
|
readonly mute: boolean
|
|
1580
1592
|
readonly deaf: boolean
|
|
@@ -3024,7 +3036,7 @@ export interface MessageAllowedMentionsRequest {
|
|
|
3024
3036
|
readonly replied_user?: boolean | null | undefined
|
|
3025
3037
|
}
|
|
3026
3038
|
|
|
3027
|
-
export interface
|
|
3039
|
+
export interface ComponentEmojiForRequest {
|
|
3028
3040
|
readonly id?: SnowflakeType | null | undefined
|
|
3029
3041
|
readonly name: string
|
|
3030
3042
|
}
|
|
@@ -3037,7 +3049,7 @@ export interface ButtonComponentForMessageRequest {
|
|
|
3037
3049
|
readonly disabled?: boolean | null | undefined
|
|
3038
3050
|
readonly url?: string | null | undefined
|
|
3039
3051
|
readonly sku_id?: SnowflakeType | null | undefined
|
|
3040
|
-
readonly emoji?:
|
|
3052
|
+
readonly emoji?: ComponentEmojiForRequest | null | undefined
|
|
3041
3053
|
}
|
|
3042
3054
|
|
|
3043
3055
|
export interface ChannelSelectDefaultValue {
|
|
@@ -3095,12 +3107,12 @@ export interface RoleSelectComponentForMessageRequest {
|
|
|
3095
3107
|
| undefined
|
|
3096
3108
|
}
|
|
3097
3109
|
|
|
3098
|
-
export interface
|
|
3110
|
+
export interface StringSelectOptionForRequest {
|
|
3099
3111
|
readonly label: string
|
|
3100
3112
|
readonly value: string
|
|
3101
3113
|
readonly description?: string | null | undefined
|
|
3102
3114
|
readonly default?: boolean | null | undefined
|
|
3103
|
-
readonly emoji?:
|
|
3115
|
+
readonly emoji?: ComponentEmojiForRequest | null | undefined
|
|
3104
3116
|
}
|
|
3105
3117
|
|
|
3106
3118
|
export interface StringSelectComponentForMessageRequest {
|
|
@@ -3110,7 +3122,7 @@ export interface StringSelectComponentForMessageRequest {
|
|
|
3110
3122
|
readonly min_values?: number | null | undefined
|
|
3111
3123
|
readonly max_values?: number | null | undefined
|
|
3112
3124
|
readonly disabled?: boolean | null | undefined
|
|
3113
|
-
readonly options: ReadonlyArray<
|
|
3125
|
+
readonly options: ReadonlyArray<StringSelectOptionForRequest>
|
|
3114
3126
|
}
|
|
3115
3127
|
|
|
3116
3128
|
export interface UserSelectComponentForMessageRequest {
|
|
@@ -3802,82 +3814,91 @@ export const AfkTimeouts = {
|
|
|
3802
3814
|
} as const
|
|
3803
3815
|
export type AfkTimeouts = (typeof AfkTimeouts)[keyof typeof AfkTimeouts]
|
|
3804
3816
|
|
|
3805
|
-
export interface
|
|
3817
|
+
export interface GuildTemplateRoleResponse {
|
|
3806
3818
|
readonly id: number
|
|
3807
|
-
readonly name
|
|
3808
|
-
readonly permissions
|
|
3809
|
-
readonly color
|
|
3810
|
-
readonly hoist
|
|
3811
|
-
readonly mentionable
|
|
3819
|
+
readonly name: string
|
|
3820
|
+
readonly permissions: string
|
|
3821
|
+
readonly color: number
|
|
3822
|
+
readonly hoist: boolean
|
|
3823
|
+
readonly mentionable: boolean
|
|
3824
|
+
readonly icon?: string | null | undefined
|
|
3812
3825
|
readonly unicode_emoji?: string | null | undefined
|
|
3813
3826
|
}
|
|
3814
3827
|
|
|
3815
|
-
export interface
|
|
3828
|
+
export interface GuildTemplateChannelTags {
|
|
3816
3829
|
readonly name: string
|
|
3817
3830
|
readonly emoji_id?: SnowflakeType | null | undefined
|
|
3818
3831
|
readonly emoji_name?: string | null | undefined
|
|
3819
3832
|
readonly moderated?: boolean | null | undefined
|
|
3820
3833
|
}
|
|
3821
3834
|
|
|
3822
|
-
export interface
|
|
3823
|
-
|
|
3824
|
-
|
|
3835
|
+
export interface IconEmojiResponse {}
|
|
3836
|
+
|
|
3837
|
+
export interface GuildTemplateChannelResponse {
|
|
3838
|
+
readonly id?: number | null | undefined
|
|
3839
|
+
readonly type: 0 | 2 | 4 | 15
|
|
3840
|
+
readonly name?: string | null | undefined
|
|
3825
3841
|
readonly position?: number | null | undefined
|
|
3826
3842
|
readonly topic?: string | null | undefined
|
|
3827
|
-
readonly bitrate
|
|
3828
|
-
readonly user_limit
|
|
3829
|
-
readonly nsfw
|
|
3830
|
-
readonly rate_limit_per_user
|
|
3843
|
+
readonly bitrate: number
|
|
3844
|
+
readonly user_limit: number
|
|
3845
|
+
readonly nsfw: boolean
|
|
3846
|
+
readonly rate_limit_per_user: number
|
|
3831
3847
|
readonly parent_id?: SnowflakeType | null | undefined
|
|
3832
|
-
readonly permission_overwrites?:
|
|
3833
|
-
| ReadonlyArray<ChannelPermissionOverwriteRequest>
|
|
3834
|
-
| null
|
|
3835
|
-
| undefined
|
|
3836
|
-
readonly rtc_region?: string | null | undefined
|
|
3837
|
-
readonly video_quality_mode?: VideoQualityModes | null | undefined
|
|
3838
3848
|
readonly default_auto_archive_duration?:
|
|
3839
3849
|
| ThreadAutoArchiveDuration
|
|
3840
3850
|
| null
|
|
3841
3851
|
| undefined
|
|
3852
|
+
readonly permission_overwrites: ReadonlyArray<null | ChannelPermissionOverwriteResponse>
|
|
3853
|
+
readonly available_tags?:
|
|
3854
|
+
| ReadonlyArray<GuildTemplateChannelTags>
|
|
3855
|
+
| null
|
|
3856
|
+
| undefined
|
|
3857
|
+
readonly template: string
|
|
3842
3858
|
readonly default_reaction_emoji?:
|
|
3843
|
-
|
|
|
3859
|
+
| DefaultReactionEmojiResponse
|
|
3844
3860
|
| null
|
|
3845
3861
|
| undefined
|
|
3846
3862
|
readonly default_thread_rate_limit_per_user?: number | null | undefined
|
|
3847
3863
|
readonly default_sort_order?: ThreadSortOrder | null | undefined
|
|
3848
3864
|
readonly default_forum_layout?: ForumLayout | null | undefined
|
|
3849
3865
|
readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined
|
|
3850
|
-
readonly
|
|
3851
|
-
readonly
|
|
3852
|
-
| ReadonlyArray<CreateOrUpdateThreadTagRequest>
|
|
3853
|
-
| null
|
|
3854
|
-
| undefined
|
|
3866
|
+
readonly icon_emoji?: IconEmojiResponse | null | undefined
|
|
3867
|
+
readonly theme_color?: number | null | undefined
|
|
3855
3868
|
}
|
|
3856
3869
|
|
|
3857
|
-
export interface
|
|
3858
|
-
readonly description?: string | null | undefined
|
|
3870
|
+
export interface GuildTemplateSnapshotResponse {
|
|
3859
3871
|
readonly name: string
|
|
3872
|
+
readonly description?: string | null | undefined
|
|
3860
3873
|
readonly region?: string | null | undefined
|
|
3861
|
-
readonly
|
|
3862
|
-
readonly
|
|
3863
|
-
readonly
|
|
3864
|
-
|
|
3865
|
-
| null
|
|
3866
|
-
| undefined
|
|
3867
|
-
readonly explicit_content_filter?:
|
|
3868
|
-
| GuildExplicitContentFilterTypes
|
|
3869
|
-
| null
|
|
3870
|
-
| undefined
|
|
3871
|
-
readonly preferred_locale?: AvailableLocalesEnum | null | undefined
|
|
3872
|
-
readonly afk_timeout?: AfkTimeouts | null | undefined
|
|
3873
|
-
readonly roles?: ReadonlyArray<CreateGuildRequestRoleItem> | null | undefined
|
|
3874
|
-
readonly channels?:
|
|
3875
|
-
| ReadonlyArray<CreateGuildRequestChannelItem>
|
|
3876
|
-
| null
|
|
3877
|
-
| undefined
|
|
3874
|
+
readonly verification_level: VerificationLevels
|
|
3875
|
+
readonly default_message_notifications: UserNotificationSettings
|
|
3876
|
+
readonly explicit_content_filter: GuildExplicitContentFilterTypes
|
|
3877
|
+
readonly preferred_locale: AvailableLocalesEnum
|
|
3878
3878
|
readonly afk_channel_id?: SnowflakeType | null | undefined
|
|
3879
|
+
readonly afk_timeout: AfkTimeouts
|
|
3879
3880
|
readonly system_channel_id?: SnowflakeType | null | undefined
|
|
3880
|
-
readonly system_channel_flags
|
|
3881
|
+
readonly system_channel_flags: number
|
|
3882
|
+
readonly roles: ReadonlyArray<GuildTemplateRoleResponse>
|
|
3883
|
+
readonly channels: ReadonlyArray<GuildTemplateChannelResponse>
|
|
3884
|
+
}
|
|
3885
|
+
|
|
3886
|
+
export interface GuildTemplateResponse {
|
|
3887
|
+
readonly code: string
|
|
3888
|
+
readonly name: string
|
|
3889
|
+
readonly description?: string | null | undefined
|
|
3890
|
+
readonly usage_count: number
|
|
3891
|
+
readonly creator_id: SnowflakeType
|
|
3892
|
+
readonly creator?: UserResponse | null | undefined
|
|
3893
|
+
readonly created_at: string
|
|
3894
|
+
readonly updated_at: string
|
|
3895
|
+
readonly source_guild_id: SnowflakeType
|
|
3896
|
+
readonly serialized_source_guild: GuildTemplateSnapshotResponse
|
|
3897
|
+
readonly is_dirty?: boolean | null | undefined
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
export interface GetGuildParams {
|
|
3901
|
+
readonly with_counts?: boolean | undefined
|
|
3881
3902
|
}
|
|
3882
3903
|
|
|
3883
3904
|
export interface GuildRoleColorsResponse {
|
|
@@ -3945,7 +3966,7 @@ export const PremiumGuildTiers = {
|
|
|
3945
3966
|
export type PremiumGuildTiers =
|
|
3946
3967
|
(typeof PremiumGuildTiers)[keyof typeof PremiumGuildTiers]
|
|
3947
3968
|
|
|
3948
|
-
export interface
|
|
3969
|
+
export interface GuildWithCountsResponse {
|
|
3949
3970
|
readonly id: SnowflakeType
|
|
3950
3971
|
readonly name: string
|
|
3951
3972
|
readonly icon?: string | null | undefined
|
|
@@ -3985,101 +4006,42 @@ export interface GuildResponse {
|
|
|
3985
4006
|
readonly nsfw_level: GuildNSFWContentLevel
|
|
3986
4007
|
readonly emojis: ReadonlyArray<EmojiResponse>
|
|
3987
4008
|
readonly stickers: ReadonlyArray<GuildStickerResponse>
|
|
4009
|
+
readonly approximate_member_count?: number | null | undefined
|
|
4010
|
+
readonly approximate_presence_count?: number | null | undefined
|
|
3988
4011
|
}
|
|
3989
4012
|
|
|
3990
|
-
export interface
|
|
3991
|
-
readonly
|
|
3992
|
-
readonly
|
|
3993
|
-
readonly
|
|
3994
|
-
readonly color: number
|
|
3995
|
-
readonly hoist: boolean
|
|
3996
|
-
readonly mentionable: boolean
|
|
4013
|
+
export interface GuildPatchRequestPartial {
|
|
4014
|
+
readonly name?: string | undefined
|
|
4015
|
+
readonly description?: string | null | undefined
|
|
4016
|
+
readonly region?: string | null | undefined
|
|
3997
4017
|
readonly icon?: string | null | undefined
|
|
3998
|
-
readonly
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
export interface GuildTemplateChannelTags {
|
|
4002
|
-
readonly name: string
|
|
4003
|
-
readonly emoji_id?: SnowflakeType | null | undefined
|
|
4004
|
-
readonly emoji_name?: string | null | undefined
|
|
4005
|
-
readonly moderated?: boolean | null | undefined
|
|
4006
|
-
}
|
|
4007
|
-
|
|
4008
|
-
export interface IconEmojiResponse {}
|
|
4009
|
-
|
|
4010
|
-
export interface GuildTemplateChannelResponse {
|
|
4011
|
-
readonly id?: number | null | undefined
|
|
4012
|
-
readonly type: 0 | 2 | 4
|
|
4013
|
-
readonly name?: string | null | undefined
|
|
4014
|
-
readonly position?: number | null | undefined
|
|
4015
|
-
readonly topic?: string | null | undefined
|
|
4016
|
-
readonly bitrate: number
|
|
4017
|
-
readonly user_limit: number
|
|
4018
|
-
readonly nsfw: boolean
|
|
4019
|
-
readonly rate_limit_per_user: number
|
|
4020
|
-
readonly parent_id?: SnowflakeType | null | undefined
|
|
4021
|
-
readonly default_auto_archive_duration?:
|
|
4022
|
-
| ThreadAutoArchiveDuration
|
|
4023
|
-
| null
|
|
4024
|
-
| undefined
|
|
4025
|
-
readonly permission_overwrites: ReadonlyArray<null | ChannelPermissionOverwriteResponse>
|
|
4026
|
-
readonly available_tags?:
|
|
4027
|
-
| ReadonlyArray<GuildTemplateChannelTags>
|
|
4018
|
+
readonly verification_level?: VerificationLevels | null | undefined
|
|
4019
|
+
readonly default_message_notifications?:
|
|
4020
|
+
| UserNotificationSettings
|
|
4028
4021
|
| null
|
|
4029
4022
|
| undefined
|
|
4030
|
-
readonly
|
|
4031
|
-
|
|
4032
|
-
| DefaultReactionEmojiResponse
|
|
4023
|
+
readonly explicit_content_filter?:
|
|
4024
|
+
| GuildExplicitContentFilterTypes
|
|
4033
4025
|
| null
|
|
4034
4026
|
| undefined
|
|
4035
|
-
readonly
|
|
4036
|
-
readonly
|
|
4037
|
-
readonly default_forum_layout?: ForumLayout | null | undefined
|
|
4038
|
-
readonly default_tag_setting?: ThreadSearchTagSetting | null | undefined
|
|
4039
|
-
readonly icon_emoji?: IconEmojiResponse | null | undefined
|
|
4040
|
-
readonly theme_color?: number | null | undefined
|
|
4041
|
-
}
|
|
4042
|
-
|
|
4043
|
-
export interface GuildTemplateSnapshotResponse {
|
|
4044
|
-
readonly name: string
|
|
4045
|
-
readonly description?: string | null | undefined
|
|
4046
|
-
readonly region?: string | null | undefined
|
|
4047
|
-
readonly verification_level: VerificationLevels
|
|
4048
|
-
readonly default_message_notifications: UserNotificationSettings
|
|
4049
|
-
readonly explicit_content_filter: GuildExplicitContentFilterTypes
|
|
4050
|
-
readonly preferred_locale: AvailableLocalesEnum
|
|
4027
|
+
readonly preferred_locale?: AvailableLocalesEnum | null | undefined
|
|
4028
|
+
readonly afk_timeout?: AfkTimeouts | null | undefined
|
|
4051
4029
|
readonly afk_channel_id?: SnowflakeType | null | undefined
|
|
4052
|
-
readonly afk_timeout: AfkTimeouts
|
|
4053
4030
|
readonly system_channel_id?: SnowflakeType | null | undefined
|
|
4054
|
-
readonly
|
|
4055
|
-
readonly
|
|
4056
|
-
readonly
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
readonly
|
|
4061
|
-
readonly
|
|
4062
|
-
readonly
|
|
4063
|
-
readonly
|
|
4064
|
-
readonly
|
|
4065
|
-
readonly creator?: UserResponse | null | undefined
|
|
4066
|
-
readonly created_at: string
|
|
4067
|
-
readonly updated_at: string
|
|
4068
|
-
readonly source_guild_id: SnowflakeType
|
|
4069
|
-
readonly serialized_source_guild: GuildTemplateSnapshotResponse
|
|
4070
|
-
readonly is_dirty?: boolean | null | undefined
|
|
4071
|
-
}
|
|
4072
|
-
|
|
4073
|
-
export interface CreateGuildFromTemplateRequest {
|
|
4074
|
-
readonly name: string
|
|
4075
|
-
readonly icon?: string | null | undefined
|
|
4076
|
-
}
|
|
4077
|
-
|
|
4078
|
-
export interface GetGuildParams {
|
|
4079
|
-
readonly with_counts?: boolean | undefined
|
|
4031
|
+
readonly owner_id?: SnowflakeType | undefined
|
|
4032
|
+
readonly splash?: string | null | undefined
|
|
4033
|
+
readonly banner?: string | null | undefined
|
|
4034
|
+
readonly system_channel_flags?: number | null | undefined
|
|
4035
|
+
readonly features?: ReadonlyArray<string> | null | undefined
|
|
4036
|
+
readonly discovery_splash?: string | null | undefined
|
|
4037
|
+
readonly home_header?: string | null | undefined
|
|
4038
|
+
readonly rules_channel_id?: SnowflakeType | null | undefined
|
|
4039
|
+
readonly safety_alerts_channel_id?: SnowflakeType | null | undefined
|
|
4040
|
+
readonly public_updates_channel_id?: SnowflakeType | null | undefined
|
|
4041
|
+
readonly premium_progress_bar_enabled?: boolean | null | undefined
|
|
4080
4042
|
}
|
|
4081
4043
|
|
|
4082
|
-
export interface
|
|
4044
|
+
export interface GuildResponse {
|
|
4083
4045
|
readonly id: SnowflakeType
|
|
4084
4046
|
readonly name: string
|
|
4085
4047
|
readonly icon?: string | null | undefined
|
|
@@ -4119,39 +4081,6 @@ export interface GuildWithCountsResponse {
|
|
|
4119
4081
|
readonly nsfw_level: GuildNSFWContentLevel
|
|
4120
4082
|
readonly emojis: ReadonlyArray<EmojiResponse>
|
|
4121
4083
|
readonly stickers: ReadonlyArray<GuildStickerResponse>
|
|
4122
|
-
readonly approximate_member_count?: number | null | undefined
|
|
4123
|
-
readonly approximate_presence_count?: number | null | undefined
|
|
4124
|
-
}
|
|
4125
|
-
|
|
4126
|
-
export interface GuildPatchRequestPartial {
|
|
4127
|
-
readonly name?: string | undefined
|
|
4128
|
-
readonly description?: string | null | undefined
|
|
4129
|
-
readonly region?: string | null | undefined
|
|
4130
|
-
readonly icon?: string | null | undefined
|
|
4131
|
-
readonly verification_level?: VerificationLevels | null | undefined
|
|
4132
|
-
readonly default_message_notifications?:
|
|
4133
|
-
| UserNotificationSettings
|
|
4134
|
-
| null
|
|
4135
|
-
| undefined
|
|
4136
|
-
readonly explicit_content_filter?:
|
|
4137
|
-
| GuildExplicitContentFilterTypes
|
|
4138
|
-
| null
|
|
4139
|
-
| undefined
|
|
4140
|
-
readonly preferred_locale?: AvailableLocalesEnum | null | undefined
|
|
4141
|
-
readonly afk_timeout?: AfkTimeouts | null | undefined
|
|
4142
|
-
readonly afk_channel_id?: SnowflakeType | null | undefined
|
|
4143
|
-
readonly system_channel_id?: SnowflakeType | null | undefined
|
|
4144
|
-
readonly owner_id?: SnowflakeType | undefined
|
|
4145
|
-
readonly splash?: string | null | undefined
|
|
4146
|
-
readonly banner?: string | null | undefined
|
|
4147
|
-
readonly system_channel_flags?: number | null | undefined
|
|
4148
|
-
readonly features?: ReadonlyArray<string> | null | undefined
|
|
4149
|
-
readonly discovery_splash?: string | null | undefined
|
|
4150
|
-
readonly home_header?: string | null | undefined
|
|
4151
|
-
readonly rules_channel_id?: SnowflakeType | null | undefined
|
|
4152
|
-
readonly safety_alerts_channel_id?: SnowflakeType | null | undefined
|
|
4153
|
-
readonly public_updates_channel_id?: SnowflakeType | null | undefined
|
|
4154
|
-
readonly premium_progress_bar_enabled?: boolean | null | undefined
|
|
4155
4084
|
}
|
|
4156
4085
|
|
|
4157
4086
|
export interface ListGuildAuditLogEntriesParams {
|
|
@@ -4901,6 +4830,13 @@ export type ListGuildChannels200 = ReadonlyArray<
|
|
|
4901
4830
|
| ThreadResponse
|
|
4902
4831
|
>
|
|
4903
4832
|
|
|
4833
|
+
export interface CreateOrUpdateThreadTagRequest {
|
|
4834
|
+
readonly name: string
|
|
4835
|
+
readonly emoji_id?: SnowflakeType | null | undefined
|
|
4836
|
+
readonly emoji_name?: string | null | undefined
|
|
4837
|
+
readonly moderated?: boolean | null | undefined
|
|
4838
|
+
}
|
|
4839
|
+
|
|
4904
4840
|
export interface CreateGuildChannelRequest {
|
|
4905
4841
|
readonly type?: 0 | 2 | 4 | 5 | 13 | 14 | 15 | null | undefined
|
|
4906
4842
|
readonly name: string
|
|
@@ -5080,6 +5016,7 @@ export interface PrivateGuildMemberResponse {
|
|
|
5080
5016
|
readonly pending: boolean
|
|
5081
5017
|
readonly premium_since?: string | null | undefined
|
|
5082
5018
|
readonly roles: ReadonlyArray<SnowflakeType>
|
|
5019
|
+
readonly collectibles?: UserCollectiblesResponse | null | undefined
|
|
5083
5020
|
readonly user: UserResponse
|
|
5084
5021
|
readonly mute: boolean
|
|
5085
5022
|
readonly deaf: boolean
|
|
@@ -5111,7 +5048,7 @@ export interface UpdateGuildMemberRequest {
|
|
|
5111
5048
|
readonly flags?: number | null | undefined
|
|
5112
5049
|
}
|
|
5113
5050
|
|
|
5114
|
-
export interface
|
|
5051
|
+
export interface GuildMFARequest {
|
|
5115
5052
|
readonly level: GuildMFALevel
|
|
5116
5053
|
}
|
|
5117
5054
|
|
|
@@ -5307,7 +5244,7 @@ export type ListGuildVoiceRegions200 = ReadonlyArray<VoiceRegionResponse>
|
|
|
5307
5244
|
|
|
5308
5245
|
export type ListGuildRoles200 = ReadonlyArray<GuildRoleResponse>
|
|
5309
5246
|
|
|
5310
|
-
export interface
|
|
5247
|
+
export interface CreateRoleRequest {
|
|
5311
5248
|
readonly name?: string | null | undefined
|
|
5312
5249
|
readonly permissions?: number | null | undefined
|
|
5313
5250
|
readonly color?: number | null | undefined
|
|
@@ -5317,14 +5254,17 @@ export interface CreateGuildRoleRequest {
|
|
|
5317
5254
|
readonly unicode_emoji?: string | null | undefined
|
|
5318
5255
|
}
|
|
5319
5256
|
|
|
5320
|
-
export
|
|
5257
|
+
export interface UpdateRolePositionsRequest {
|
|
5321
5258
|
readonly id?: SnowflakeType | null | undefined
|
|
5322
5259
|
readonly position?: number | null | undefined
|
|
5323
|
-
}
|
|
5260
|
+
}
|
|
5261
|
+
|
|
5262
|
+
export type BulkUpdateGuildRolesRequest =
|
|
5263
|
+
ReadonlyArray<UpdateRolePositionsRequest>
|
|
5324
5264
|
|
|
5325
5265
|
export type BulkUpdateGuildRoles200 = ReadonlyArray<GuildRoleResponse>
|
|
5326
5266
|
|
|
5327
|
-
export interface
|
|
5267
|
+
export interface UpdateRoleRequestPartial {
|
|
5328
5268
|
readonly name?: string | null | undefined
|
|
5329
5269
|
readonly permissions?: number | null | undefined
|
|
5330
5270
|
readonly color?: number | null | undefined
|
|
@@ -5755,7 +5695,7 @@ export interface TextInputComponentForModalRequest {
|
|
|
5755
5695
|
readonly type: 4
|
|
5756
5696
|
readonly custom_id: string
|
|
5757
5697
|
readonly style: TextInputStyleTypes
|
|
5758
|
-
readonly label
|
|
5698
|
+
readonly label?: string | null | undefined
|
|
5759
5699
|
readonly value?: string | null | undefined
|
|
5760
5700
|
readonly placeholder?: string | null | undefined
|
|
5761
5701
|
readonly required?: boolean | null | undefined
|
|
@@ -5871,11 +5811,14 @@ export type InviteRevoke200 =
|
|
|
5871
5811
|
| GroupDMInviteResponse
|
|
5872
5812
|
| GuildInviteResponse
|
|
5873
5813
|
|
|
5814
|
+
export type CreateOrJoinLobbyRequestFlagsEnum = 1
|
|
5815
|
+
|
|
5874
5816
|
export interface CreateOrJoinLobbyRequest {
|
|
5875
5817
|
readonly idle_timeout_seconds?: number | null | undefined
|
|
5876
5818
|
readonly lobby_metadata?: Record<string, unknown> | null | undefined
|
|
5877
5819
|
readonly member_metadata?: Record<string, unknown> | null | undefined
|
|
5878
5820
|
readonly secret: string
|
|
5821
|
+
readonly flags?: CreateOrJoinLobbyRequestFlagsEnum | null | undefined
|
|
5879
5822
|
}
|
|
5880
5823
|
|
|
5881
5824
|
export interface LobbyMemberResponse {
|
|
@@ -5890,6 +5833,7 @@ export interface LobbyResponse {
|
|
|
5890
5833
|
readonly metadata?: Record<string, unknown> | null | undefined
|
|
5891
5834
|
readonly members?: ReadonlyArray<LobbyMemberResponse> | null | undefined
|
|
5892
5835
|
readonly linked_channel?: GuildChannelResponse | null | undefined
|
|
5836
|
+
readonly flags: UInt32Type
|
|
5893
5837
|
}
|
|
5894
5838
|
|
|
5895
5839
|
export type LobbyMemberRequestFlagsEnum = 1
|
|
@@ -5900,22 +5844,32 @@ export interface LobbyMemberRequest {
|
|
|
5900
5844
|
readonly flags?: LobbyMemberRequestFlagsEnum | null | undefined
|
|
5901
5845
|
}
|
|
5902
5846
|
|
|
5847
|
+
export type CreateLobbyRequestFlagsEnum = 1
|
|
5848
|
+
|
|
5903
5849
|
export interface CreateLobbyRequest {
|
|
5904
5850
|
readonly idle_timeout_seconds?: number | null | undefined
|
|
5905
5851
|
readonly members?: ReadonlyArray<LobbyMemberRequest> | null | undefined
|
|
5906
5852
|
readonly metadata?: Record<string, unknown> | null | undefined
|
|
5853
|
+
readonly flags?: CreateLobbyRequestFlagsEnum | null | undefined
|
|
5907
5854
|
}
|
|
5908
5855
|
|
|
5856
|
+
export type EditLobbyRequestFlagsEnum = 1
|
|
5857
|
+
|
|
5909
5858
|
export interface EditLobbyRequest {
|
|
5910
5859
|
readonly idle_timeout_seconds?: number | null | undefined
|
|
5911
5860
|
readonly metadata?: Record<string, unknown> | null | undefined
|
|
5912
5861
|
readonly members?: ReadonlyArray<LobbyMemberRequest> | null | undefined
|
|
5862
|
+
readonly flags?: EditLobbyRequestFlagsEnum | null | undefined
|
|
5913
5863
|
}
|
|
5914
5864
|
|
|
5915
5865
|
export interface EditLobbyChannelLinkRequest {
|
|
5916
5866
|
readonly channel_id?: SnowflakeType | null | undefined
|
|
5917
5867
|
}
|
|
5918
5868
|
|
|
5869
|
+
export interface LobbyGuildInviteResponse {
|
|
5870
|
+
readonly code: string
|
|
5871
|
+
}
|
|
5872
|
+
|
|
5919
5873
|
export type BulkLobbyMemberRequestFlagsEnum = 1
|
|
5920
5874
|
|
|
5921
5875
|
export interface BulkLobbyMemberRequest {
|
|
@@ -6050,6 +6004,11 @@ export interface ProvisionalTokenResponse {
|
|
|
6050
6004
|
readonly expires_at_s?: number | null | undefined
|
|
6051
6005
|
}
|
|
6052
6006
|
|
|
6007
|
+
export interface BotPartnerSdkTokenRequest {
|
|
6008
|
+
readonly external_user_id: string
|
|
6009
|
+
readonly preferred_global_name?: string | null | undefined
|
|
6010
|
+
}
|
|
6011
|
+
|
|
6053
6012
|
export type GetSoundboardDefaultSounds200 =
|
|
6054
6013
|
ReadonlyArray<SoundboardSoundResponse>
|
|
6055
6014
|
|
|
@@ -7334,14 +7293,6 @@ export const make = (
|
|
|
7334
7293
|
"4xx": "ErrorResponse",
|
|
7335
7294
|
}),
|
|
7336
7295
|
),
|
|
7337
|
-
createGuild: options =>
|
|
7338
|
-
HttpClientRequest.post(`/guilds`).pipe(
|
|
7339
|
-
HttpClientRequest.bodyUnsafeJson(options),
|
|
7340
|
-
onRequest(["2xx"], {
|
|
7341
|
-
"429": "RatelimitedResponse",
|
|
7342
|
-
"4xx": "ErrorResponse",
|
|
7343
|
-
}),
|
|
7344
|
-
),
|
|
7345
7296
|
getGuildTemplate: code =>
|
|
7346
7297
|
HttpClientRequest.get(`/guilds/templates/${code}`).pipe(
|
|
7347
7298
|
onRequest(["2xx"], {
|
|
@@ -7349,14 +7300,6 @@ export const make = (
|
|
|
7349
7300
|
"4xx": "ErrorResponse",
|
|
7350
7301
|
}),
|
|
7351
7302
|
),
|
|
7352
|
-
createGuildFromTemplate: (code, options) =>
|
|
7353
|
-
HttpClientRequest.post(`/guilds/templates/${code}`).pipe(
|
|
7354
|
-
HttpClientRequest.bodyUnsafeJson(options),
|
|
7355
|
-
onRequest(["2xx"], {
|
|
7356
|
-
"429": "RatelimitedResponse",
|
|
7357
|
-
"4xx": "ErrorResponse",
|
|
7358
|
-
}),
|
|
7359
|
-
),
|
|
7360
7303
|
getGuild: (guildId, options) =>
|
|
7361
7304
|
HttpClientRequest.get(`/guilds/${guildId}`).pipe(
|
|
7362
7305
|
HttpClientRequest.setUrlParams({
|
|
@@ -8053,6 +7996,13 @@ export const make = (
|
|
|
8053
7996
|
HttpClientRequest.del(`/lobbies/${lobbyId}/members/@me`).pipe(
|
|
8054
7997
|
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
8055
7998
|
),
|
|
7999
|
+
createLinkedLobbyGuildInviteForSelf: lobbyId =>
|
|
8000
|
+
HttpClientRequest.post(`/lobbies/${lobbyId}/members/@me/invites`).pipe(
|
|
8001
|
+
onRequest(["2xx"], {
|
|
8002
|
+
"429": "RatelimitedResponse",
|
|
8003
|
+
"4xx": "ErrorResponse",
|
|
8004
|
+
}),
|
|
8005
|
+
),
|
|
8056
8006
|
bulkUpdateLobbyMembers: (lobbyId, options) =>
|
|
8057
8007
|
HttpClientRequest.post(`/lobbies/${lobbyId}/members/bulk`).pipe(
|
|
8058
8008
|
HttpClientRequest.bodyUnsafeJson(options),
|
|
@@ -8073,6 +8023,15 @@ export const make = (
|
|
|
8073
8023
|
HttpClientRequest.del(`/lobbies/${lobbyId}/members/${userId}`).pipe(
|
|
8074
8024
|
onRequest([], { "429": "RatelimitedResponse", "4xx": "ErrorResponse" }),
|
|
8075
8025
|
),
|
|
8026
|
+
createLinkedLobbyGuildInviteForUser: (lobbyId, userId) =>
|
|
8027
|
+
HttpClientRequest.post(
|
|
8028
|
+
`/lobbies/${lobbyId}/members/${userId}/invites`,
|
|
8029
|
+
).pipe(
|
|
8030
|
+
onRequest(["2xx"], {
|
|
8031
|
+
"429": "RatelimitedResponse",
|
|
8032
|
+
"4xx": "ErrorResponse",
|
|
8033
|
+
}),
|
|
8034
|
+
),
|
|
8076
8035
|
getLobbyMessages: (lobbyId, options) =>
|
|
8077
8036
|
HttpClientRequest.get(`/lobbies/${lobbyId}/messages`).pipe(
|
|
8078
8037
|
HttpClientRequest.setUrlParams({ limit: options?.["limit"] as any }),
|
|
@@ -8130,6 +8089,14 @@ export const make = (
|
|
|
8130
8089
|
"4xx": "ErrorResponse",
|
|
8131
8090
|
}),
|
|
8132
8091
|
),
|
|
8092
|
+
botPartnerSdkToken: options =>
|
|
8093
|
+
HttpClientRequest.post(`/partner-sdk/token/bot`).pipe(
|
|
8094
|
+
HttpClientRequest.bodyUnsafeJson(options),
|
|
8095
|
+
onRequest(["2xx"], {
|
|
8096
|
+
"429": "RatelimitedResponse",
|
|
8097
|
+
"4xx": "ErrorResponse",
|
|
8098
|
+
}),
|
|
8099
|
+
),
|
|
8133
8100
|
getSoundboardDefaultSounds: () =>
|
|
8134
8101
|
HttpClientRequest.get(`/soundboard-default-sounds`).pipe(
|
|
8135
8102
|
onRequest(["2xx"], {
|
|
@@ -9172,14 +9139,6 @@ export interface DiscordRest {
|
|
|
9172
9139
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
9173
9140
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
9174
9141
|
>
|
|
9175
|
-
readonly createGuild: (
|
|
9176
|
-
options: GuildCreateRequest,
|
|
9177
|
-
) => Effect.Effect<
|
|
9178
|
-
GuildResponse,
|
|
9179
|
-
| HttpClientError.HttpClientError
|
|
9180
|
-
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
9181
|
-
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
9182
|
-
>
|
|
9183
9142
|
readonly getGuildTemplate: (
|
|
9184
9143
|
code: string,
|
|
9185
9144
|
) => Effect.Effect<
|
|
@@ -9188,15 +9147,6 @@ export interface DiscordRest {
|
|
|
9188
9147
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
9189
9148
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
9190
9149
|
>
|
|
9191
|
-
readonly createGuildFromTemplate: (
|
|
9192
|
-
code: string,
|
|
9193
|
-
options: CreateGuildFromTemplateRequest,
|
|
9194
|
-
) => Effect.Effect<
|
|
9195
|
-
GuildResponse,
|
|
9196
|
-
| HttpClientError.HttpClientError
|
|
9197
|
-
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
9198
|
-
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
9199
|
-
>
|
|
9200
9150
|
readonly getGuild: (
|
|
9201
9151
|
guildId: string,
|
|
9202
9152
|
options?: GetGuildParams | undefined,
|
|
@@ -9506,7 +9456,7 @@ export interface DiscordRest {
|
|
|
9506
9456
|
>
|
|
9507
9457
|
readonly setGuildMfaLevel: (
|
|
9508
9458
|
guildId: string,
|
|
9509
|
-
options:
|
|
9459
|
+
options: GuildMFARequest,
|
|
9510
9460
|
) => Effect.Effect<
|
|
9511
9461
|
GuildMFALevelResponse,
|
|
9512
9462
|
| HttpClientError.HttpClientError
|
|
@@ -9582,7 +9532,7 @@ export interface DiscordRest {
|
|
|
9582
9532
|
>
|
|
9583
9533
|
readonly createGuildRole: (
|
|
9584
9534
|
guildId: string,
|
|
9585
|
-
options:
|
|
9535
|
+
options: CreateRoleRequest,
|
|
9586
9536
|
) => Effect.Effect<
|
|
9587
9537
|
GuildRoleResponse,
|
|
9588
9538
|
| HttpClientError.HttpClientError
|
|
@@ -9619,7 +9569,7 @@ export interface DiscordRest {
|
|
|
9619
9569
|
readonly updateGuildRole: (
|
|
9620
9570
|
guildId: string,
|
|
9621
9571
|
roleId: string,
|
|
9622
|
-
options:
|
|
9572
|
+
options: UpdateRoleRequestPartial,
|
|
9623
9573
|
) => Effect.Effect<
|
|
9624
9574
|
GuildRoleResponse,
|
|
9625
9575
|
| HttpClientError.HttpClientError
|
|
@@ -10009,6 +9959,14 @@ export interface DiscordRest {
|
|
|
10009
9959
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10010
9960
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10011
9961
|
>
|
|
9962
|
+
readonly createLinkedLobbyGuildInviteForSelf: (
|
|
9963
|
+
lobbyId: string,
|
|
9964
|
+
) => Effect.Effect<
|
|
9965
|
+
LobbyGuildInviteResponse,
|
|
9966
|
+
| HttpClientError.HttpClientError
|
|
9967
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
9968
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
9969
|
+
>
|
|
10012
9970
|
readonly bulkUpdateLobbyMembers: (
|
|
10013
9971
|
lobbyId: string,
|
|
10014
9972
|
options: BulkUpdateLobbyMembersRequest,
|
|
@@ -10037,6 +9995,15 @@ export interface DiscordRest {
|
|
|
10037
9995
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10038
9996
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10039
9997
|
>
|
|
9998
|
+
readonly createLinkedLobbyGuildInviteForUser: (
|
|
9999
|
+
lobbyId: string,
|
|
10000
|
+
userId: string,
|
|
10001
|
+
) => Effect.Effect<
|
|
10002
|
+
LobbyGuildInviteResponse,
|
|
10003
|
+
| HttpClientError.HttpClientError
|
|
10004
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10005
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10006
|
+
>
|
|
10040
10007
|
readonly getLobbyMessages: (
|
|
10041
10008
|
lobbyId: string,
|
|
10042
10009
|
options?: GetLobbyMessagesParams | undefined,
|
|
@@ -10095,6 +10062,14 @@ export interface DiscordRest {
|
|
|
10095
10062
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10096
10063
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10097
10064
|
>
|
|
10065
|
+
readonly botPartnerSdkToken: (
|
|
10066
|
+
options: BotPartnerSdkTokenRequest,
|
|
10067
|
+
) => Effect.Effect<
|
|
10068
|
+
ProvisionalTokenResponse,
|
|
10069
|
+
| HttpClientError.HttpClientError
|
|
10070
|
+
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
10071
|
+
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
10072
|
+
>
|
|
10098
10073
|
readonly getSoundboardDefaultSounds: () => Effect.Effect<
|
|
10099
10074
|
GetSoundboardDefaultSounds200,
|
|
10100
10075
|
| HttpClientError.HttpClientError
|