dfx 0.124.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 +114 -147
- package/DiscordREST/Generated.d.ts.map +1 -1
- package/DiscordREST/Generated.js +11 -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 +10 -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 +3 -3
- package/src/DiscordREST/Generated.ts +129 -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,16 +5844,22 @@ 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 {
|
|
@@ -7343,14 +7293,6 @@ export const make = (
|
|
|
7343
7293
|
"4xx": "ErrorResponse",
|
|
7344
7294
|
}),
|
|
7345
7295
|
),
|
|
7346
|
-
createGuild: options =>
|
|
7347
|
-
HttpClientRequest.post(`/guilds`).pipe(
|
|
7348
|
-
HttpClientRequest.bodyUnsafeJson(options),
|
|
7349
|
-
onRequest(["2xx"], {
|
|
7350
|
-
"429": "RatelimitedResponse",
|
|
7351
|
-
"4xx": "ErrorResponse",
|
|
7352
|
-
}),
|
|
7353
|
-
),
|
|
7354
7296
|
getGuildTemplate: code =>
|
|
7355
7297
|
HttpClientRequest.get(`/guilds/templates/${code}`).pipe(
|
|
7356
7298
|
onRequest(["2xx"], {
|
|
@@ -7358,14 +7300,6 @@ export const make = (
|
|
|
7358
7300
|
"4xx": "ErrorResponse",
|
|
7359
7301
|
}),
|
|
7360
7302
|
),
|
|
7361
|
-
createGuildFromTemplate: (code, options) =>
|
|
7362
|
-
HttpClientRequest.post(`/guilds/templates/${code}`).pipe(
|
|
7363
|
-
HttpClientRequest.bodyUnsafeJson(options),
|
|
7364
|
-
onRequest(["2xx"], {
|
|
7365
|
-
"429": "RatelimitedResponse",
|
|
7366
|
-
"4xx": "ErrorResponse",
|
|
7367
|
-
}),
|
|
7368
|
-
),
|
|
7369
7303
|
getGuild: (guildId, options) =>
|
|
7370
7304
|
HttpClientRequest.get(`/guilds/${guildId}`).pipe(
|
|
7371
7305
|
HttpClientRequest.setUrlParams({
|
|
@@ -9205,14 +9139,6 @@ export interface DiscordRest {
|
|
|
9205
9139
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
9206
9140
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
9207
9141
|
>
|
|
9208
|
-
readonly createGuild: (
|
|
9209
|
-
options: GuildCreateRequest,
|
|
9210
|
-
) => Effect.Effect<
|
|
9211
|
-
GuildResponse,
|
|
9212
|
-
| HttpClientError.HttpClientError
|
|
9213
|
-
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
9214
|
-
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
9215
|
-
>
|
|
9216
9142
|
readonly getGuildTemplate: (
|
|
9217
9143
|
code: string,
|
|
9218
9144
|
) => Effect.Effect<
|
|
@@ -9221,15 +9147,6 @@ export interface DiscordRest {
|
|
|
9221
9147
|
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
9222
9148
|
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
9223
9149
|
>
|
|
9224
|
-
readonly createGuildFromTemplate: (
|
|
9225
|
-
code: string,
|
|
9226
|
-
options: CreateGuildFromTemplateRequest,
|
|
9227
|
-
) => Effect.Effect<
|
|
9228
|
-
GuildResponse,
|
|
9229
|
-
| HttpClientError.HttpClientError
|
|
9230
|
-
| DiscordRestError<"RatelimitedResponse", RatelimitedResponse>
|
|
9231
|
-
| DiscordRestError<"ErrorResponse", ErrorResponse>
|
|
9232
|
-
>
|
|
9233
9150
|
readonly getGuild: (
|
|
9234
9151
|
guildId: string,
|
|
9235
9152
|
options?: GetGuildParams | undefined,
|
|
@@ -9539,7 +9456,7 @@ export interface DiscordRest {
|
|
|
9539
9456
|
>
|
|
9540
9457
|
readonly setGuildMfaLevel: (
|
|
9541
9458
|
guildId: string,
|
|
9542
|
-
options:
|
|
9459
|
+
options: GuildMFARequest,
|
|
9543
9460
|
) => Effect.Effect<
|
|
9544
9461
|
GuildMFALevelResponse,
|
|
9545
9462
|
| HttpClientError.HttpClientError
|
|
@@ -9615,7 +9532,7 @@ export interface DiscordRest {
|
|
|
9615
9532
|
>
|
|
9616
9533
|
readonly createGuildRole: (
|
|
9617
9534
|
guildId: string,
|
|
9618
|
-
options:
|
|
9535
|
+
options: CreateRoleRequest,
|
|
9619
9536
|
) => Effect.Effect<
|
|
9620
9537
|
GuildRoleResponse,
|
|
9621
9538
|
| HttpClientError.HttpClientError
|
|
@@ -9652,7 +9569,7 @@ export interface DiscordRest {
|
|
|
9652
9569
|
readonly updateGuildRole: (
|
|
9653
9570
|
guildId: string,
|
|
9654
9571
|
roleId: string,
|
|
9655
|
-
options:
|
|
9572
|
+
options: UpdateRoleRequestPartial,
|
|
9656
9573
|
) => Effect.Effect<
|
|
9657
9574
|
GuildRoleResponse,
|
|
9658
9575
|
| HttpClientError.HttpClientError
|
package/src/DiscordREST.ts
CHANGED
|
@@ -190,7 +190,9 @@ const make = Effect.gen(function* () {
|
|
|
190
190
|
if (request.body._tag === "Uint8Array") {
|
|
191
191
|
formData.value.set(
|
|
192
192
|
"payload_json",
|
|
193
|
-
new Blob([request.body.body], {
|
|
193
|
+
new Blob([request.body.body as Uint8Array<ArrayBuffer>], {
|
|
194
|
+
type: "application/json",
|
|
195
|
+
}),
|
|
194
196
|
"",
|
|
195
197
|
)
|
|
196
198
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const LIB_VERSION = "0.124.
|
|
1
|
+
export const LIB_VERSION = "0.124.1";
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "0.124.
|
|
1
|
+
export declare const LIB_VERSION = "0.124.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED