discord-api-spec 10.0.181302 → 10.0.182932
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/build/discord-api-spec.ts +244 -233
- package/build/discord-api-spec.zod.js +26 -19
- package/build/preview/discord-api-spec.ts +245 -234
- package/build/preview/discord-api-spec.zod.js +26 -19
- package/package.json +1 -1
|
@@ -1161,7 +1161,7 @@ export const enum WidgetUserDiscriminator {
|
|
|
1161
1161
|
// Components
|
|
1162
1162
|
export type AccountResponse = {
|
|
1163
1163
|
id: string;
|
|
1164
|
-
name
|
|
1164
|
+
name: string | null;
|
|
1165
1165
|
};
|
|
1166
1166
|
|
|
1167
1167
|
export type ActionRowComponentForMessageRequest = {
|
|
@@ -1533,7 +1533,7 @@ export type ApplicationCommandResponse = {
|
|
|
1533
1533
|
id: SnowflakeType;
|
|
1534
1534
|
application_id: SnowflakeType;
|
|
1535
1535
|
version: SnowflakeType;
|
|
1536
|
-
default_member_permissions
|
|
1536
|
+
default_member_permissions: string | null;
|
|
1537
1537
|
type: ApplicationCommandType;
|
|
1538
1538
|
name: string;
|
|
1539
1539
|
name_localized?: string;
|
|
@@ -1797,9 +1797,9 @@ export type ApplicationFormPartial = {
|
|
|
1797
1797
|
};
|
|
1798
1798
|
|
|
1799
1799
|
export type ApplicationIncomingWebhookResponse = {
|
|
1800
|
-
application_id
|
|
1801
|
-
avatar
|
|
1802
|
-
channel_id
|
|
1800
|
+
application_id: null | SnowflakeType;
|
|
1801
|
+
avatar: string | null;
|
|
1802
|
+
channel_id: null | SnowflakeType;
|
|
1803
1803
|
guild_id?: null | SnowflakeType;
|
|
1804
1804
|
id: SnowflakeType;
|
|
1805
1805
|
name: string;
|
|
@@ -1828,9 +1828,9 @@ export type ApplicationOAuth2InstallParamsResponse = {
|
|
|
1828
1828
|
export type ApplicationResponse = {
|
|
1829
1829
|
id: SnowflakeType;
|
|
1830
1830
|
name: string;
|
|
1831
|
-
icon
|
|
1831
|
+
icon: string | null;
|
|
1832
1832
|
description: string;
|
|
1833
|
-
type
|
|
1833
|
+
type: null | ApplicationTypes;
|
|
1834
1834
|
cover_image?: string;
|
|
1835
1835
|
primary_sku_id?: SnowflakeType;
|
|
1836
1836
|
bot?: UserResponse;
|
|
@@ -1908,8 +1908,8 @@ export type AttachmentResponse = {
|
|
|
1908
1908
|
export type AuditLogEntryResponse = {
|
|
1909
1909
|
id: SnowflakeType;
|
|
1910
1910
|
action_type: AuditLogActionTypes;
|
|
1911
|
-
user_id
|
|
1912
|
-
target_id
|
|
1911
|
+
user_id: null | SnowflakeType;
|
|
1912
|
+
target_id: null | SnowflakeType;
|
|
1913
1913
|
changes?: AuditLogObjectChangeResponse[];
|
|
1914
1914
|
options?: {
|
|
1915
1915
|
[key: string]: string;
|
|
@@ -1918,7 +1918,7 @@ export type AuditLogEntryResponse = {
|
|
|
1918
1918
|
};
|
|
1919
1919
|
|
|
1920
1920
|
export type AuditLogObjectChangeResponse = {
|
|
1921
|
-
key
|
|
1921
|
+
key: string | null;
|
|
1922
1922
|
new_value?: unknown;
|
|
1923
1923
|
old_value?: unknown;
|
|
1924
1924
|
};
|
|
@@ -1953,24 +1953,24 @@ export type BaseCreateMessageCreateRequest = {
|
|
|
1953
1953
|
export type BasicApplicationResponse = {
|
|
1954
1954
|
id: SnowflakeType;
|
|
1955
1955
|
name: string;
|
|
1956
|
-
icon
|
|
1956
|
+
icon: string | null;
|
|
1957
1957
|
description: string;
|
|
1958
|
-
type
|
|
1958
|
+
type: null | ApplicationTypes;
|
|
1959
1959
|
cover_image?: string;
|
|
1960
1960
|
primary_sku_id?: SnowflakeType;
|
|
1961
1961
|
bot?: UserResponse;
|
|
1962
1962
|
};
|
|
1963
1963
|
|
|
1964
1964
|
export type BasicGuildMemberResponse = {
|
|
1965
|
-
avatar
|
|
1965
|
+
avatar: string | null;
|
|
1966
1966
|
avatar_decoration_data?: null | UserAvatarDecorationResponse;
|
|
1967
|
-
banner
|
|
1968
|
-
communication_disabled_until
|
|
1967
|
+
banner: string | null;
|
|
1968
|
+
communication_disabled_until: string | null;
|
|
1969
1969
|
flags: number;
|
|
1970
1970
|
joined_at: string;
|
|
1971
|
-
nick
|
|
1971
|
+
nick: string | null;
|
|
1972
1972
|
pending: boolean;
|
|
1973
|
-
premium_since
|
|
1973
|
+
premium_since: string | null;
|
|
1974
1974
|
roles: SnowflakeType[];
|
|
1975
1975
|
collectibles?: null | UserCollectiblesResponse;
|
|
1976
1976
|
};
|
|
@@ -1983,7 +1983,7 @@ export type BasicMessageResponse = {
|
|
|
1983
1983
|
attachments: MessageAttachmentResponse[];
|
|
1984
1984
|
embeds: MessageEmbedResponse[];
|
|
1985
1985
|
timestamp: string;
|
|
1986
|
-
edited_timestamp
|
|
1986
|
+
edited_timestamp: string | null;
|
|
1987
1987
|
flags: number;
|
|
1988
1988
|
components: (
|
|
1989
1989
|
| ActionRowComponentResponse
|
|
@@ -2107,9 +2107,9 @@ export type ChannelFollowerResponse = {
|
|
|
2107
2107
|
};
|
|
2108
2108
|
|
|
2109
2109
|
export type ChannelFollowerWebhookResponse = {
|
|
2110
|
-
application_id
|
|
2111
|
-
avatar
|
|
2112
|
-
channel_id
|
|
2110
|
+
application_id: null | SnowflakeType;
|
|
2111
|
+
avatar: string | null;
|
|
2112
|
+
channel_id: null | SnowflakeType;
|
|
2113
2113
|
guild_id?: null | SnowflakeType;
|
|
2114
2114
|
id: SnowflakeType;
|
|
2115
2115
|
name: string;
|
|
@@ -2164,8 +2164,8 @@ export type ChannelSelectComponentResponse = {
|
|
|
2164
2164
|
id: number;
|
|
2165
2165
|
custom_id: string;
|
|
2166
2166
|
placeholder?: string;
|
|
2167
|
-
min_values
|
|
2168
|
-
max_values
|
|
2167
|
+
min_values: number | null;
|
|
2168
|
+
max_values: number | null;
|
|
2169
2169
|
disabled?: boolean;
|
|
2170
2170
|
channel_types?: ChannelTypes[];
|
|
2171
2171
|
default_values?: ChannelSelectDefaultValueResponse[];
|
|
@@ -2208,7 +2208,7 @@ export type ComponentEmojiResponse = {
|
|
|
2208
2208
|
export type ConnectedAccountGuildResponse = {
|
|
2209
2209
|
id: SnowflakeType;
|
|
2210
2210
|
name: string;
|
|
2211
|
-
icon
|
|
2211
|
+
icon: string | null;
|
|
2212
2212
|
};
|
|
2213
2213
|
|
|
2214
2214
|
export type ConnectedAccountIntegrationResponse = {
|
|
@@ -2220,7 +2220,7 @@ export type ConnectedAccountIntegrationResponse = {
|
|
|
2220
2220
|
|
|
2221
2221
|
export type ConnectedAccountResponse = {
|
|
2222
2222
|
id: string;
|
|
2223
|
-
name
|
|
2223
|
+
name: string | null;
|
|
2224
2224
|
type: ConnectedAccountProviders;
|
|
2225
2225
|
friend_sync: boolean;
|
|
2226
2226
|
integrations?: ConnectedAccountIntegrationResponse[];
|
|
@@ -2249,7 +2249,7 @@ export type ContainerComponentForMessageRequest = {
|
|
|
2249
2249
|
export type ContainerComponentResponse = {
|
|
2250
2250
|
type: MessageComponentTypes.CONTAINER;
|
|
2251
2251
|
id: number;
|
|
2252
|
-
accent_color
|
|
2252
|
+
accent_color: number | null;
|
|
2253
2253
|
components: (
|
|
2254
2254
|
| ActionRowComponentResponse
|
|
2255
2255
|
| FileComponentResponse
|
|
@@ -2471,7 +2471,7 @@ export type DefaultReactionEmojiResponse = {
|
|
|
2471
2471
|
|
|
2472
2472
|
export type DiscordIntegrationResponse = {
|
|
2473
2473
|
type: IntegrationTypes.DISCORD;
|
|
2474
|
-
name
|
|
2474
|
+
name: string | null;
|
|
2475
2475
|
account: AccountResponse;
|
|
2476
2476
|
enabled: boolean;
|
|
2477
2477
|
id: SnowflakeType;
|
|
@@ -2536,7 +2536,7 @@ export type EntityMetadataVoiceResponse = {};
|
|
|
2536
2536
|
|
|
2537
2537
|
export type ExternalConnectionIntegrationResponse = {
|
|
2538
2538
|
type: IntegrationTypes;
|
|
2539
|
-
name
|
|
2539
|
+
name: string | null;
|
|
2540
2540
|
account: AccountResponse;
|
|
2541
2541
|
enabled: boolean;
|
|
2542
2542
|
id: string;
|
|
@@ -2580,16 +2580,16 @@ export type ExternalScheduledEventResponse = {
|
|
|
2580
2580
|
id: SnowflakeType;
|
|
2581
2581
|
guild_id: SnowflakeType;
|
|
2582
2582
|
name: string;
|
|
2583
|
-
description
|
|
2584
|
-
channel_id
|
|
2585
|
-
creator_id
|
|
2583
|
+
description: string | null;
|
|
2584
|
+
channel_id: null | SnowflakeType;
|
|
2585
|
+
creator_id: null | SnowflakeType;
|
|
2586
2586
|
creator?: UserResponse;
|
|
2587
|
-
image
|
|
2587
|
+
image: string | null;
|
|
2588
2588
|
scheduled_start_time: string;
|
|
2589
|
-
scheduled_end_time
|
|
2589
|
+
scheduled_end_time: string | null;
|
|
2590
2590
|
status: GuildScheduledEventStatuses;
|
|
2591
2591
|
entity_type: GuildScheduledEventEntityTypes.EXTERNAL;
|
|
2592
|
-
entity_id
|
|
2592
|
+
entity_id: null | SnowflakeType;
|
|
2593
2593
|
user_count?: number;
|
|
2594
2594
|
privacy_level: GuildScheduledEventPrivacyLevels;
|
|
2595
2595
|
user_rsvp?: null | ScheduledEventUserResponse;
|
|
@@ -2607,8 +2607,8 @@ export type FileComponentResponse = {
|
|
|
2607
2607
|
type: MessageComponentTypes.FILE;
|
|
2608
2608
|
id: number;
|
|
2609
2609
|
file: UnfurledMediaResponse;
|
|
2610
|
-
name
|
|
2611
|
-
size
|
|
2610
|
+
name: string | null;
|
|
2611
|
+
size: number | null;
|
|
2612
2612
|
spoiler: boolean;
|
|
2613
2613
|
};
|
|
2614
2614
|
|
|
@@ -2643,8 +2643,8 @@ export type ForumTagResponse = {
|
|
|
2643
2643
|
id: SnowflakeType;
|
|
2644
2644
|
name: string;
|
|
2645
2645
|
moderated: boolean;
|
|
2646
|
-
emoji_id
|
|
2647
|
-
emoji_name
|
|
2646
|
+
emoji_id: null | SnowflakeType;
|
|
2647
|
+
emoji_name: string | null;
|
|
2648
2648
|
};
|
|
2649
2649
|
|
|
2650
2650
|
export type FriendInviteResponse = {
|
|
@@ -2653,9 +2653,9 @@ export type FriendInviteResponse = {
|
|
|
2653
2653
|
inviter?: UserResponse;
|
|
2654
2654
|
max_age?: number;
|
|
2655
2655
|
created_at?: string;
|
|
2656
|
-
expires_at
|
|
2656
|
+
expires_at: string | null;
|
|
2657
2657
|
friends_count?: number;
|
|
2658
|
-
channel
|
|
2658
|
+
channel: null | InviteChannelResponse;
|
|
2659
2659
|
is_contact?: boolean;
|
|
2660
2660
|
uses?: number;
|
|
2661
2661
|
max_uses?: number;
|
|
@@ -2806,7 +2806,7 @@ export type GroupDMInviteResponse = {
|
|
|
2806
2806
|
inviter?: UserResponse;
|
|
2807
2807
|
max_age?: number;
|
|
2808
2808
|
created_at?: string;
|
|
2809
|
-
expires_at
|
|
2809
|
+
expires_at: string | null;
|
|
2810
2810
|
channel: InviteChannelResponse;
|
|
2811
2811
|
approximate_member_count?: number | null;
|
|
2812
2812
|
};
|
|
@@ -2843,7 +2843,7 @@ export type GuildAuditLogResponse = {
|
|
|
2843
2843
|
|
|
2844
2844
|
export type GuildBanResponse = {
|
|
2845
2845
|
user: UserResponse;
|
|
2846
|
-
reason
|
|
2846
|
+
reason: string | null;
|
|
2847
2847
|
};
|
|
2848
2848
|
|
|
2849
2849
|
export type GuildChannelLocation = {
|
|
@@ -2892,9 +2892,9 @@ export type GuildHomeSettingsResponse = {
|
|
|
2892
2892
|
};
|
|
2893
2893
|
|
|
2894
2894
|
export type GuildIncomingWebhookResponse = {
|
|
2895
|
-
application_id
|
|
2896
|
-
avatar
|
|
2897
|
-
channel_id
|
|
2895
|
+
application_id: null | SnowflakeType;
|
|
2896
|
+
avatar: string | null;
|
|
2897
|
+
channel_id: null | SnowflakeType;
|
|
2898
2898
|
guild_id?: null | SnowflakeType;
|
|
2899
2899
|
id: SnowflakeType;
|
|
2900
2900
|
name: string;
|
|
@@ -2910,7 +2910,7 @@ export type GuildInviteResponse = {
|
|
|
2910
2910
|
inviter?: UserResponse;
|
|
2911
2911
|
max_age?: number;
|
|
2912
2912
|
created_at?: string;
|
|
2913
|
-
expires_at
|
|
2913
|
+
expires_at: string | null;
|
|
2914
2914
|
is_contact?: boolean;
|
|
2915
2915
|
flags?: number;
|
|
2916
2916
|
guild: InviteGuildResponse;
|
|
@@ -2926,19 +2926,19 @@ export type GuildInviteResponse = {
|
|
|
2926
2926
|
approximate_member_count?: number | null;
|
|
2927
2927
|
approximate_presence_count?: number | null;
|
|
2928
2928
|
is_nickname_changeable?: boolean;
|
|
2929
|
-
roles?:
|
|
2929
|
+
roles?: InviteGuildRoleResponse[] | null;
|
|
2930
2930
|
};
|
|
2931
2931
|
|
|
2932
2932
|
export type GuildMemberResponse = {
|
|
2933
|
-
avatar
|
|
2933
|
+
avatar: string | null;
|
|
2934
2934
|
avatar_decoration_data?: null | UserAvatarDecorationResponse;
|
|
2935
|
-
banner
|
|
2936
|
-
communication_disabled_until
|
|
2935
|
+
banner: string | null;
|
|
2936
|
+
communication_disabled_until: string | null;
|
|
2937
2937
|
flags: number;
|
|
2938
2938
|
joined_at: string;
|
|
2939
|
-
nick
|
|
2939
|
+
nick: string | null;
|
|
2940
2940
|
pending: boolean;
|
|
2941
|
-
premium_since
|
|
2941
|
+
premium_since: string | null;
|
|
2942
2942
|
roles: SnowflakeType[];
|
|
2943
2943
|
collectibles?: null | UserCollectiblesResponse;
|
|
2944
2944
|
user: UserResponse;
|
|
@@ -2980,11 +2980,11 @@ export type GuildPatchRequestPartial = {
|
|
|
2980
2980
|
export type GuildPreviewResponse = {
|
|
2981
2981
|
id: SnowflakeType;
|
|
2982
2982
|
name: string;
|
|
2983
|
-
icon
|
|
2984
|
-
description
|
|
2985
|
-
home_header
|
|
2986
|
-
splash
|
|
2987
|
-
discovery_splash
|
|
2983
|
+
icon: string | null;
|
|
2984
|
+
description: string | null;
|
|
2985
|
+
home_header: string | null;
|
|
2986
|
+
splash: string | null;
|
|
2987
|
+
discovery_splash: string | null;
|
|
2988
2988
|
features: GuildFeatures[];
|
|
2989
2989
|
approximate_member_count: number;
|
|
2990
2990
|
approximate_presence_count: number;
|
|
@@ -2998,44 +2998,44 @@ export type GuildProductPurchaseResponse = {
|
|
|
2998
2998
|
};
|
|
2999
2999
|
|
|
3000
3000
|
export type GuildPruneResponse = {
|
|
3001
|
-
pruned
|
|
3001
|
+
pruned: number | null;
|
|
3002
3002
|
};
|
|
3003
3003
|
|
|
3004
3004
|
export type GuildResponse = {
|
|
3005
3005
|
id: SnowflakeType;
|
|
3006
3006
|
name: string;
|
|
3007
|
-
icon
|
|
3008
|
-
description
|
|
3009
|
-
home_header
|
|
3010
|
-
splash
|
|
3011
|
-
discovery_splash
|
|
3007
|
+
icon: string | null;
|
|
3008
|
+
description: string | null;
|
|
3009
|
+
home_header: string | null;
|
|
3010
|
+
splash: string | null;
|
|
3011
|
+
discovery_splash: string | null;
|
|
3012
3012
|
features: GuildFeatures[];
|
|
3013
|
-
banner
|
|
3013
|
+
banner: string | null;
|
|
3014
3014
|
owner_id: SnowflakeType;
|
|
3015
|
-
application_id
|
|
3015
|
+
application_id: null | SnowflakeType;
|
|
3016
3016
|
region: string;
|
|
3017
|
-
afk_channel_id
|
|
3017
|
+
afk_channel_id: null | SnowflakeType;
|
|
3018
3018
|
afk_timeout: AfkTimeouts;
|
|
3019
|
-
system_channel_id
|
|
3019
|
+
system_channel_id: null | SnowflakeType;
|
|
3020
3020
|
system_channel_flags: number;
|
|
3021
3021
|
widget_enabled: boolean;
|
|
3022
|
-
widget_channel_id
|
|
3022
|
+
widget_channel_id: null | SnowflakeType;
|
|
3023
3023
|
verification_level: VerificationLevels;
|
|
3024
3024
|
roles: GuildRoleResponse[];
|
|
3025
3025
|
default_message_notifications: UserNotificationSettings;
|
|
3026
3026
|
mfa_level: GuildMFALevel;
|
|
3027
3027
|
explicit_content_filter: GuildExplicitContentFilterTypes;
|
|
3028
|
-
max_presences
|
|
3028
|
+
max_presences: number | null;
|
|
3029
3029
|
max_members: number;
|
|
3030
3030
|
max_stage_video_channel_users: number;
|
|
3031
3031
|
max_video_channel_users: number;
|
|
3032
|
-
vanity_url_code
|
|
3032
|
+
vanity_url_code: string | null;
|
|
3033
3033
|
premium_tier: PremiumGuildTiers;
|
|
3034
3034
|
premium_subscription_count: number;
|
|
3035
3035
|
preferred_locale: AvailableLocalesEnum;
|
|
3036
|
-
rules_channel_id
|
|
3037
|
-
safety_alerts_channel_id
|
|
3038
|
-
public_updates_channel_id
|
|
3036
|
+
rules_channel_id: null | SnowflakeType;
|
|
3037
|
+
safety_alerts_channel_id: null | SnowflakeType;
|
|
3038
|
+
public_updates_channel_id: null | SnowflakeType;
|
|
3039
3039
|
premium_progress_bar_enabled: boolean;
|
|
3040
3040
|
premium_progress_bar_enabled_user_updated_at?: string | null;
|
|
3041
3041
|
nsfw: boolean;
|
|
@@ -3046,14 +3046,14 @@ export type GuildResponse = {
|
|
|
3046
3046
|
|
|
3047
3047
|
export type GuildRoleColorsResponse = {
|
|
3048
3048
|
primary_color: number;
|
|
3049
|
-
secondary_color
|
|
3050
|
-
tertiary_color
|
|
3049
|
+
secondary_color: number | null;
|
|
3050
|
+
tertiary_color: number | null;
|
|
3051
3051
|
};
|
|
3052
3052
|
|
|
3053
3053
|
export type GuildRoleResponse = {
|
|
3054
3054
|
id: SnowflakeType;
|
|
3055
3055
|
name: string;
|
|
3056
|
-
description
|
|
3056
|
+
description: string | null;
|
|
3057
3057
|
permissions: string;
|
|
3058
3058
|
position: number;
|
|
3059
3059
|
color: number;
|
|
@@ -3061,8 +3061,8 @@ export type GuildRoleResponse = {
|
|
|
3061
3061
|
hoist: boolean;
|
|
3062
3062
|
managed: boolean;
|
|
3063
3063
|
mentionable: boolean;
|
|
3064
|
-
icon
|
|
3065
|
-
unicode_emoji
|
|
3064
|
+
icon: string | null;
|
|
3065
|
+
unicode_emoji: string | null;
|
|
3066
3066
|
tags?: GuildRoleTagsResponse;
|
|
3067
3067
|
flags: number;
|
|
3068
3068
|
};
|
|
@@ -3081,8 +3081,8 @@ export type GuildStickerResponse = {
|
|
|
3081
3081
|
name: string;
|
|
3082
3082
|
tags: string;
|
|
3083
3083
|
type: StickerTypes.GUILD;
|
|
3084
|
-
format_type
|
|
3085
|
-
description
|
|
3084
|
+
format_type: null | StickerFormatTypes;
|
|
3085
|
+
description: string | null;
|
|
3086
3086
|
available: boolean;
|
|
3087
3087
|
guild_id: SnowflakeType;
|
|
3088
3088
|
user?: UserResponse;
|
|
@@ -3090,62 +3090,62 @@ export type GuildStickerResponse = {
|
|
|
3090
3090
|
|
|
3091
3091
|
export type GuildSubscriptionIntegrationResponse = {
|
|
3092
3092
|
type: IntegrationTypes.GUILD_SUBSCRIPTION;
|
|
3093
|
-
name
|
|
3093
|
+
name: string | null;
|
|
3094
3094
|
account: AccountResponse;
|
|
3095
3095
|
enabled: boolean;
|
|
3096
3096
|
id: SnowflakeType;
|
|
3097
3097
|
};
|
|
3098
3098
|
|
|
3099
3099
|
export type GuildTemplateChannelResponse = {
|
|
3100
|
-
id
|
|
3100
|
+
id: number | null;
|
|
3101
3101
|
type: ChannelTypes;
|
|
3102
|
-
name
|
|
3103
|
-
position
|
|
3104
|
-
topic
|
|
3102
|
+
name: string | null;
|
|
3103
|
+
position: number | null;
|
|
3104
|
+
topic: string | null;
|
|
3105
3105
|
bitrate: number;
|
|
3106
3106
|
user_limit: number;
|
|
3107
3107
|
nsfw: boolean;
|
|
3108
3108
|
rate_limit_per_user: number;
|
|
3109
|
-
parent_id
|
|
3110
|
-
default_auto_archive_duration
|
|
3109
|
+
parent_id: null | SnowflakeType;
|
|
3110
|
+
default_auto_archive_duration: null | ThreadAutoArchiveDuration;
|
|
3111
3111
|
permission_overwrites: (null | ChannelPermissionOverwriteResponse)[];
|
|
3112
|
-
available_tags
|
|
3112
|
+
available_tags: GuildTemplateChannelTags[] | null;
|
|
3113
3113
|
template: string;
|
|
3114
|
-
default_reaction_emoji
|
|
3115
|
-
default_thread_rate_limit_per_user
|
|
3116
|
-
default_sort_order
|
|
3117
|
-
default_forum_layout
|
|
3118
|
-
default_tag_setting
|
|
3119
|
-
icon_emoji
|
|
3120
|
-
theme_color
|
|
3114
|
+
default_reaction_emoji: null | DefaultReactionEmojiResponse;
|
|
3115
|
+
default_thread_rate_limit_per_user: number | null;
|
|
3116
|
+
default_sort_order: null | ThreadSortOrder;
|
|
3117
|
+
default_forum_layout: null | ForumLayout;
|
|
3118
|
+
default_tag_setting: null | ThreadSearchTagSetting;
|
|
3119
|
+
icon_emoji: null | IconEmojiResponse;
|
|
3120
|
+
theme_color: number | null;
|
|
3121
3121
|
};
|
|
3122
3122
|
|
|
3123
3123
|
export type GuildTemplateChannelTags = {
|
|
3124
|
-
id
|
|
3124
|
+
id: number | null;
|
|
3125
3125
|
name: string;
|
|
3126
|
-
emoji_id
|
|
3127
|
-
emoji_name
|
|
3128
|
-
moderated
|
|
3126
|
+
emoji_id: null | SnowflakeType;
|
|
3127
|
+
emoji_name: string | null;
|
|
3128
|
+
moderated: boolean | null;
|
|
3129
3129
|
};
|
|
3130
3130
|
|
|
3131
3131
|
export type GuildTemplateResponse = {
|
|
3132
3132
|
code: string;
|
|
3133
3133
|
name: string;
|
|
3134
|
-
description
|
|
3134
|
+
description: string | null;
|
|
3135
3135
|
usage_count: number;
|
|
3136
3136
|
creator_id: SnowflakeType;
|
|
3137
|
-
creator
|
|
3137
|
+
creator: null | UserResponse;
|
|
3138
3138
|
created_at: string;
|
|
3139
3139
|
updated_at: string;
|
|
3140
3140
|
source_guild_id: SnowflakeType;
|
|
3141
3141
|
serialized_source_guild: GuildTemplateSnapshotResponse;
|
|
3142
|
-
is_dirty
|
|
3142
|
+
is_dirty: boolean | null;
|
|
3143
3143
|
};
|
|
3144
3144
|
|
|
3145
3145
|
export type GuildTemplateRoleColorsResponse = {
|
|
3146
3146
|
primary_color: number;
|
|
3147
|
-
secondary_color
|
|
3148
|
-
tertiary_color
|
|
3147
|
+
secondary_color: number | null;
|
|
3148
|
+
tertiary_color: number | null;
|
|
3149
3149
|
};
|
|
3150
3150
|
|
|
3151
3151
|
export type GuildTemplateRoleResponse = {
|
|
@@ -3153,24 +3153,24 @@ export type GuildTemplateRoleResponse = {
|
|
|
3153
3153
|
name: string;
|
|
3154
3154
|
permissions: string;
|
|
3155
3155
|
color: number;
|
|
3156
|
-
colors
|
|
3156
|
+
colors: null | GuildTemplateRoleColorsResponse;
|
|
3157
3157
|
hoist: boolean;
|
|
3158
3158
|
mentionable: boolean;
|
|
3159
|
-
icon
|
|
3160
|
-
unicode_emoji
|
|
3159
|
+
icon: string | null;
|
|
3160
|
+
unicode_emoji: string | null;
|
|
3161
3161
|
};
|
|
3162
3162
|
|
|
3163
3163
|
export type GuildTemplateSnapshotResponse = {
|
|
3164
3164
|
name: string;
|
|
3165
|
-
description
|
|
3166
|
-
region
|
|
3165
|
+
description: string | null;
|
|
3166
|
+
region: string | null;
|
|
3167
3167
|
verification_level: VerificationLevels;
|
|
3168
3168
|
default_message_notifications: UserNotificationSettings;
|
|
3169
3169
|
explicit_content_filter: GuildExplicitContentFilterTypes;
|
|
3170
3170
|
preferred_locale: AvailableLocalesEnum;
|
|
3171
|
-
afk_channel_id
|
|
3171
|
+
afk_channel_id: null | SnowflakeType;
|
|
3172
3172
|
afk_timeout: AfkTimeouts;
|
|
3173
|
-
system_channel_id
|
|
3173
|
+
system_channel_id: null | SnowflakeType;
|
|
3174
3174
|
system_channel_flags: number;
|
|
3175
3175
|
roles: GuildTemplateRoleResponse[];
|
|
3176
3176
|
channels: GuildTemplateChannelResponse[];
|
|
@@ -3186,50 +3186,50 @@ export type GuildWelcomeChannel = {
|
|
|
3186
3186
|
export type GuildWelcomeScreenChannelResponse = {
|
|
3187
3187
|
channel_id: SnowflakeType;
|
|
3188
3188
|
description: string;
|
|
3189
|
-
emoji_id
|
|
3190
|
-
emoji_name
|
|
3189
|
+
emoji_id: null | SnowflakeType;
|
|
3190
|
+
emoji_name: string | null;
|
|
3191
3191
|
};
|
|
3192
3192
|
|
|
3193
3193
|
export type GuildWelcomeScreenResponse = {
|
|
3194
|
-
description
|
|
3194
|
+
description: string | null;
|
|
3195
3195
|
welcome_channels: GuildWelcomeScreenChannelResponse[];
|
|
3196
3196
|
};
|
|
3197
3197
|
|
|
3198
3198
|
export type GuildWithCountsResponse = {
|
|
3199
3199
|
id: SnowflakeType;
|
|
3200
3200
|
name: string;
|
|
3201
|
-
icon
|
|
3202
|
-
description
|
|
3203
|
-
home_header
|
|
3204
|
-
splash
|
|
3205
|
-
discovery_splash
|
|
3201
|
+
icon: string | null;
|
|
3202
|
+
description: string | null;
|
|
3203
|
+
home_header: string | null;
|
|
3204
|
+
splash: string | null;
|
|
3205
|
+
discovery_splash: string | null;
|
|
3206
3206
|
features: GuildFeatures[];
|
|
3207
|
-
banner
|
|
3207
|
+
banner: string | null;
|
|
3208
3208
|
owner_id: SnowflakeType;
|
|
3209
|
-
application_id
|
|
3209
|
+
application_id: null | SnowflakeType;
|
|
3210
3210
|
region: string;
|
|
3211
|
-
afk_channel_id
|
|
3211
|
+
afk_channel_id: null | SnowflakeType;
|
|
3212
3212
|
afk_timeout: AfkTimeouts;
|
|
3213
|
-
system_channel_id
|
|
3213
|
+
system_channel_id: null | SnowflakeType;
|
|
3214
3214
|
system_channel_flags: number;
|
|
3215
3215
|
widget_enabled: boolean;
|
|
3216
|
-
widget_channel_id
|
|
3216
|
+
widget_channel_id: null | SnowflakeType;
|
|
3217
3217
|
verification_level: VerificationLevels;
|
|
3218
3218
|
roles: GuildRoleResponse[];
|
|
3219
3219
|
default_message_notifications: UserNotificationSettings;
|
|
3220
3220
|
mfa_level: GuildMFALevel;
|
|
3221
3221
|
explicit_content_filter: GuildExplicitContentFilterTypes;
|
|
3222
|
-
max_presences
|
|
3222
|
+
max_presences: number | null;
|
|
3223
3223
|
max_members: number;
|
|
3224
3224
|
max_stage_video_channel_users: number;
|
|
3225
3225
|
max_video_channel_users: number;
|
|
3226
|
-
vanity_url_code
|
|
3226
|
+
vanity_url_code: string | null;
|
|
3227
3227
|
premium_tier: PremiumGuildTiers;
|
|
3228
3228
|
premium_subscription_count: number;
|
|
3229
3229
|
preferred_locale: AvailableLocalesEnum;
|
|
3230
|
-
rules_channel_id
|
|
3231
|
-
safety_alerts_channel_id
|
|
3232
|
-
public_updates_channel_id
|
|
3230
|
+
rules_channel_id: null | SnowflakeType;
|
|
3231
|
+
safety_alerts_channel_id: null | SnowflakeType;
|
|
3232
|
+
public_updates_channel_id: null | SnowflakeType;
|
|
3233
3233
|
premium_progress_bar_enabled: boolean;
|
|
3234
3234
|
premium_progress_bar_enabled_user_updated_at?: string | null;
|
|
3235
3235
|
nsfw: boolean;
|
|
@@ -3332,9 +3332,9 @@ export type Int53Type = number;
|
|
|
3332
3332
|
export type IntegrationApplicationResponse = {
|
|
3333
3333
|
id: SnowflakeType;
|
|
3334
3334
|
name: string;
|
|
3335
|
-
icon
|
|
3335
|
+
icon: string | null;
|
|
3336
3336
|
description: string;
|
|
3337
|
-
type
|
|
3337
|
+
type: null | ApplicationTypes;
|
|
3338
3338
|
cover_image?: string;
|
|
3339
3339
|
primary_sku_id?: SnowflakeType;
|
|
3340
3340
|
bot?: UserResponse;
|
|
@@ -3373,9 +3373,9 @@ export type InteractionResponse = {
|
|
|
3373
3373
|
export type InviteApplicationResponse = {
|
|
3374
3374
|
id: SnowflakeType;
|
|
3375
3375
|
name: string;
|
|
3376
|
-
icon
|
|
3376
|
+
icon: string | null;
|
|
3377
3377
|
description: string;
|
|
3378
|
-
type
|
|
3378
|
+
type: null | ApplicationTypes;
|
|
3379
3379
|
cover_image?: string;
|
|
3380
3380
|
primary_sku_id?: SnowflakeType;
|
|
3381
3381
|
bot?: UserResponse;
|
|
@@ -3404,7 +3404,7 @@ export type InviteChannelRecipientResponse = {
|
|
|
3404
3404
|
export type InviteChannelResponse = {
|
|
3405
3405
|
id: SnowflakeType;
|
|
3406
3406
|
type: ChannelTypes;
|
|
3407
|
-
name
|
|
3407
|
+
name: string | null;
|
|
3408
3408
|
icon?: string;
|
|
3409
3409
|
recipients?: InviteChannelRecipientResponse[];
|
|
3410
3410
|
};
|
|
@@ -3412,18 +3412,29 @@ export type InviteChannelResponse = {
|
|
|
3412
3412
|
export type InviteGuildResponse = {
|
|
3413
3413
|
id: SnowflakeType;
|
|
3414
3414
|
name: string;
|
|
3415
|
-
splash
|
|
3416
|
-
banner
|
|
3417
|
-
description
|
|
3418
|
-
icon
|
|
3415
|
+
splash: string | null;
|
|
3416
|
+
banner: string | null;
|
|
3417
|
+
description: string | null;
|
|
3418
|
+
icon: string | null;
|
|
3419
3419
|
features: GuildFeatures[];
|
|
3420
|
-
verification_level
|
|
3421
|
-
vanity_url_code
|
|
3422
|
-
nsfw_level
|
|
3423
|
-
nsfw
|
|
3420
|
+
verification_level: null | VerificationLevels;
|
|
3421
|
+
vanity_url_code: string | null;
|
|
3422
|
+
nsfw_level: null | GuildNSFWContentLevel;
|
|
3423
|
+
nsfw: boolean | null;
|
|
3424
3424
|
premium_subscription_count: number;
|
|
3425
3425
|
};
|
|
3426
3426
|
|
|
3427
|
+
export type InviteGuildRoleResponse = {
|
|
3428
|
+
id: SnowflakeType;
|
|
3429
|
+
name: string;
|
|
3430
|
+
position: number;
|
|
3431
|
+
color: number;
|
|
3432
|
+
colors: GuildRoleColorsResponse;
|
|
3433
|
+
icon: string | null;
|
|
3434
|
+
unicode_emoji: string | null;
|
|
3435
|
+
permissions?: string;
|
|
3436
|
+
};
|
|
3437
|
+
|
|
3427
3438
|
export type KeywordRuleResponse = {
|
|
3428
3439
|
id: SnowflakeType;
|
|
3429
3440
|
guild_id: SnowflakeType;
|
|
@@ -3536,7 +3547,7 @@ export type LobbyMemberRequest = {
|
|
|
3536
3547
|
|
|
3537
3548
|
export type LobbyMemberResponse = {
|
|
3538
3549
|
id: SnowflakeType;
|
|
3539
|
-
metadata
|
|
3550
|
+
metadata: {
|
|
3540
3551
|
[key: string]: string;
|
|
3541
3552
|
} | null;
|
|
3542
3553
|
flags: number;
|
|
@@ -3559,7 +3570,7 @@ export type LobbyMessageResponse = {
|
|
|
3559
3570
|
export type LobbyResponse = {
|
|
3560
3571
|
id: SnowflakeType;
|
|
3561
3572
|
application_id: SnowflakeType;
|
|
3562
|
-
metadata
|
|
3573
|
+
metadata: {
|
|
3563
3574
|
[key: string]: string;
|
|
3564
3575
|
} | null;
|
|
3565
3576
|
members: LobbyMemberResponse[];
|
|
@@ -3647,7 +3658,7 @@ export type MediaGalleryItemRequest = {
|
|
|
3647
3658
|
|
|
3648
3659
|
export type MediaGalleryItemResponse = {
|
|
3649
3660
|
media: UnfurledMediaResponse;
|
|
3650
|
-
description
|
|
3661
|
+
description: string | null;
|
|
3651
3662
|
spoiler: boolean;
|
|
3652
3663
|
};
|
|
3653
3664
|
|
|
@@ -3745,8 +3756,8 @@ export type MentionableSelectComponentResponse = {
|
|
|
3745
3756
|
id: number;
|
|
3746
3757
|
custom_id: string;
|
|
3747
3758
|
placeholder?: string;
|
|
3748
|
-
min_values
|
|
3749
|
-
max_values
|
|
3759
|
+
min_values: number | null;
|
|
3760
|
+
max_values: number | null;
|
|
3750
3761
|
disabled?: boolean;
|
|
3751
3762
|
default_values?: (RoleSelectDefaultValueResponse | UserSelectDefaultValueResponse)[];
|
|
3752
3763
|
};
|
|
@@ -3936,8 +3947,8 @@ export type MessageReactionCountDetailsResponse = {
|
|
|
3936
3947
|
};
|
|
3937
3948
|
|
|
3938
3949
|
export type MessageReactionEmojiResponse = {
|
|
3939
|
-
id
|
|
3940
|
-
name
|
|
3950
|
+
id: null | SnowflakeType;
|
|
3951
|
+
name: string | null;
|
|
3941
3952
|
animated?: boolean;
|
|
3942
3953
|
};
|
|
3943
3954
|
|
|
@@ -3973,7 +3984,7 @@ export type MessageResponse = {
|
|
|
3973
3984
|
attachments: MessageAttachmentResponse[];
|
|
3974
3985
|
embeds: MessageEmbedResponse[];
|
|
3975
3986
|
timestamp: string;
|
|
3976
|
-
edited_timestamp
|
|
3987
|
+
edited_timestamp: string | null;
|
|
3977
3988
|
flags: number;
|
|
3978
3989
|
components: (
|
|
3979
3990
|
| ActionRowComponentResponse
|
|
@@ -4042,7 +4053,7 @@ export type MinimalContentMessageResponse = {
|
|
|
4042
4053
|
attachments: MessageAttachmentResponse[];
|
|
4043
4054
|
embeds: MessageEmbedResponse[];
|
|
4044
4055
|
timestamp: string;
|
|
4045
|
-
edited_timestamp
|
|
4056
|
+
edited_timestamp: string | null;
|
|
4046
4057
|
flags: number;
|
|
4047
4058
|
components: (
|
|
4048
4059
|
| ActionRowComponentResponse
|
|
@@ -4088,8 +4099,8 @@ export type ModalSubmitInteractionMetadataResponse = {
|
|
|
4088
4099
|
export type MyGuildResponse = {
|
|
4089
4100
|
id: SnowflakeType;
|
|
4090
4101
|
name: string;
|
|
4091
|
-
icon
|
|
4092
|
-
banner
|
|
4102
|
+
icon: string | null;
|
|
4103
|
+
banner: string | null;
|
|
4093
4104
|
owner: boolean;
|
|
4094
4105
|
permissions: string;
|
|
4095
4106
|
features: GuildFeatures[];
|
|
@@ -4171,7 +4182,7 @@ export type OnboardingPromptResponse = {
|
|
|
4171
4182
|
export type PartialDiscordIntegrationResponse = {
|
|
4172
4183
|
id: SnowflakeType;
|
|
4173
4184
|
type: IntegrationTypes.DISCORD;
|
|
4174
|
-
name
|
|
4185
|
+
name: string | null;
|
|
4175
4186
|
account: AccountResponse;
|
|
4176
4187
|
application_id: SnowflakeType;
|
|
4177
4188
|
};
|
|
@@ -4179,14 +4190,14 @@ export type PartialDiscordIntegrationResponse = {
|
|
|
4179
4190
|
export type PartialExternalConnectionIntegrationResponse = {
|
|
4180
4191
|
id: SnowflakeType;
|
|
4181
4192
|
type: IntegrationTypes;
|
|
4182
|
-
name
|
|
4193
|
+
name: string | null;
|
|
4183
4194
|
account: AccountResponse;
|
|
4184
4195
|
};
|
|
4185
4196
|
|
|
4186
4197
|
export type PartialGuildSubscriptionIntegrationResponse = {
|
|
4187
4198
|
id: SnowflakeType;
|
|
4188
4199
|
type: IntegrationTypes.GUILD_SUBSCRIPTION;
|
|
4189
|
-
name
|
|
4200
|
+
name: string | null;
|
|
4190
4201
|
account: AccountResponse;
|
|
4191
4202
|
};
|
|
4192
4203
|
|
|
@@ -4277,9 +4288,9 @@ export type PongInteractionCallbackRequest = {
|
|
|
4277
4288
|
export type PrivateApplicationResponse = {
|
|
4278
4289
|
id: SnowflakeType;
|
|
4279
4290
|
name: string;
|
|
4280
|
-
icon
|
|
4291
|
+
icon: string | null;
|
|
4281
4292
|
description: string;
|
|
4282
|
-
type
|
|
4293
|
+
type: null | ApplicationTypes;
|
|
4283
4294
|
cover_image?: string;
|
|
4284
4295
|
primary_sku_id?: SnowflakeType;
|
|
4285
4296
|
bot?: UserResponse;
|
|
@@ -4300,14 +4311,14 @@ export type PrivateApplicationResponse = {
|
|
|
4300
4311
|
max_participants?: number | null;
|
|
4301
4312
|
tags?: string[];
|
|
4302
4313
|
redirect_uris: (string | null)[];
|
|
4303
|
-
interactions_endpoint_url
|
|
4304
|
-
role_connections_verification_url
|
|
4314
|
+
interactions_endpoint_url: string | null;
|
|
4315
|
+
role_connections_verification_url: string | null;
|
|
4305
4316
|
owner: UserResponse;
|
|
4306
|
-
approximate_guild_count
|
|
4317
|
+
approximate_guild_count: number | null;
|
|
4307
4318
|
approximate_user_install_count: number;
|
|
4308
4319
|
approximate_user_authorization_count: number;
|
|
4309
4320
|
explicit_content_filter: ApplicationExplicitContentFilterTypes;
|
|
4310
|
-
team
|
|
4321
|
+
team: null | TeamResponse;
|
|
4311
4322
|
};
|
|
4312
4323
|
|
|
4313
4324
|
export type PrivateChannelLocation = {
|
|
@@ -4332,23 +4343,23 @@ export type PrivateGroupChannelResponse = {
|
|
|
4332
4343
|
flags: number;
|
|
4333
4344
|
last_pin_timestamp?: string | null;
|
|
4334
4345
|
recipients: UserResponse[];
|
|
4335
|
-
name
|
|
4336
|
-
icon
|
|
4346
|
+
name: string | null;
|
|
4347
|
+
icon: string | null;
|
|
4337
4348
|
owner_id: SnowflakeType;
|
|
4338
4349
|
managed?: boolean;
|
|
4339
4350
|
application_id?: SnowflakeType;
|
|
4340
4351
|
};
|
|
4341
4352
|
|
|
4342
4353
|
export type PrivateGuildMemberResponse = {
|
|
4343
|
-
avatar
|
|
4354
|
+
avatar: string | null;
|
|
4344
4355
|
avatar_decoration_data?: null | UserAvatarDecorationResponse;
|
|
4345
|
-
banner
|
|
4346
|
-
communication_disabled_until
|
|
4356
|
+
banner: string | null;
|
|
4357
|
+
communication_disabled_until: string | null;
|
|
4347
4358
|
flags: number;
|
|
4348
4359
|
joined_at: string;
|
|
4349
|
-
nick
|
|
4360
|
+
nick: string | null;
|
|
4350
4361
|
pending: boolean;
|
|
4351
|
-
premium_since
|
|
4362
|
+
premium_since: string | null;
|
|
4352
4363
|
roles: SnowflakeType[];
|
|
4353
4364
|
collectibles?: null | UserCollectiblesResponse;
|
|
4354
4365
|
user: UserResponse;
|
|
@@ -4523,8 +4534,8 @@ export type RoleSelectComponentResponse = {
|
|
|
4523
4534
|
id: number;
|
|
4524
4535
|
custom_id: string;
|
|
4525
4536
|
placeholder?: string;
|
|
4526
|
-
min_values
|
|
4527
|
-
max_values
|
|
4537
|
+
min_values: number | null;
|
|
4538
|
+
max_values: number | null;
|
|
4528
4539
|
disabled?: boolean;
|
|
4529
4540
|
default_values?: RoleSelectDefaultValueResponse[];
|
|
4530
4541
|
};
|
|
@@ -4569,16 +4580,16 @@ export type ScheduledEventResponse = {
|
|
|
4569
4580
|
id: SnowflakeType;
|
|
4570
4581
|
guild_id: SnowflakeType;
|
|
4571
4582
|
name: string;
|
|
4572
|
-
description
|
|
4573
|
-
channel_id
|
|
4574
|
-
creator_id
|
|
4583
|
+
description: string | null;
|
|
4584
|
+
channel_id: null | SnowflakeType;
|
|
4585
|
+
creator_id: null | SnowflakeType;
|
|
4575
4586
|
creator?: UserResponse;
|
|
4576
|
-
image
|
|
4587
|
+
image: string | null;
|
|
4577
4588
|
scheduled_start_time: string;
|
|
4578
|
-
scheduled_end_time
|
|
4589
|
+
scheduled_end_time: string | null;
|
|
4579
4590
|
status: GuildScheduledEventStatuses;
|
|
4580
4591
|
entity_type: GuildScheduledEventEntityTypes;
|
|
4581
|
-
entity_id
|
|
4592
|
+
entity_id: null | SnowflakeType;
|
|
4582
4593
|
user_count?: number;
|
|
4583
4594
|
privacy_level: GuildScheduledEventPrivacyLevels;
|
|
4584
4595
|
user_rsvp?: null | ScheduledEventUserResponse;
|
|
@@ -4620,8 +4631,8 @@ export type SeparatorComponentResponse = {
|
|
|
4620
4631
|
};
|
|
4621
4632
|
|
|
4622
4633
|
export type SettingsEmojiResponse = {
|
|
4623
|
-
id
|
|
4624
|
-
name
|
|
4634
|
+
id: null | SnowflakeType;
|
|
4635
|
+
name: string | null;
|
|
4625
4636
|
animated: boolean;
|
|
4626
4637
|
};
|
|
4627
4638
|
|
|
@@ -4662,8 +4673,8 @@ export type SoundboardSoundResponse = {
|
|
|
4662
4673
|
name: string;
|
|
4663
4674
|
sound_id: SnowflakeType;
|
|
4664
4675
|
volume: number;
|
|
4665
|
-
emoji_id
|
|
4666
|
-
emoji_name
|
|
4676
|
+
emoji_id: null | SnowflakeType;
|
|
4677
|
+
emoji_name: string | null;
|
|
4667
4678
|
guild_id?: SnowflakeType;
|
|
4668
4679
|
available: boolean;
|
|
4669
4680
|
user?: UserResponse;
|
|
@@ -4702,7 +4713,7 @@ export type StageInstanceResponse = {
|
|
|
4702
4713
|
privacy_level: StageInstancesPrivacyLevels;
|
|
4703
4714
|
id: SnowflakeType;
|
|
4704
4715
|
discoverable_disabled: boolean;
|
|
4705
|
-
guild_scheduled_event_id
|
|
4716
|
+
guild_scheduled_event_id: null | SnowflakeType;
|
|
4706
4717
|
};
|
|
4707
4718
|
|
|
4708
4719
|
export type StageScheduledEventCreateRequest = {
|
|
@@ -4734,20 +4745,20 @@ export type StageScheduledEventResponse = {
|
|
|
4734
4745
|
id: SnowflakeType;
|
|
4735
4746
|
guild_id: SnowflakeType;
|
|
4736
4747
|
name: string;
|
|
4737
|
-
description
|
|
4738
|
-
channel_id
|
|
4739
|
-
creator_id
|
|
4748
|
+
description: string | null;
|
|
4749
|
+
channel_id: null | SnowflakeType;
|
|
4750
|
+
creator_id: null | SnowflakeType;
|
|
4740
4751
|
creator?: UserResponse;
|
|
4741
|
-
image
|
|
4752
|
+
image: string | null;
|
|
4742
4753
|
scheduled_start_time: string;
|
|
4743
|
-
scheduled_end_time
|
|
4754
|
+
scheduled_end_time: string | null;
|
|
4744
4755
|
status: GuildScheduledEventStatuses;
|
|
4745
4756
|
entity_type: GuildScheduledEventEntityTypes.STAGE_INSTANCE;
|
|
4746
|
-
entity_id
|
|
4757
|
+
entity_id: null | SnowflakeType;
|
|
4747
4758
|
user_count?: number;
|
|
4748
4759
|
privacy_level: GuildScheduledEventPrivacyLevels;
|
|
4749
4760
|
user_rsvp?: null | ScheduledEventUserResponse;
|
|
4750
|
-
entity_metadata
|
|
4761
|
+
entity_metadata: null | EntityMetadataStageInstanceResponse;
|
|
4751
4762
|
};
|
|
4752
4763
|
|
|
4753
4764
|
export type StandardStickerResponse = {
|
|
@@ -4755,8 +4766,8 @@ export type StandardStickerResponse = {
|
|
|
4755
4766
|
name: string;
|
|
4756
4767
|
tags: string;
|
|
4757
4768
|
type: StickerTypes.STANDARD;
|
|
4758
|
-
format_type
|
|
4759
|
-
description
|
|
4769
|
+
format_type: null | StickerFormatTypes;
|
|
4770
|
+
description: string | null;
|
|
4760
4771
|
pack_id: SnowflakeType;
|
|
4761
4772
|
sort_value: number;
|
|
4762
4773
|
};
|
|
@@ -4769,7 +4780,7 @@ export type StickerPackResponse = {
|
|
|
4769
4780
|
id: SnowflakeType;
|
|
4770
4781
|
sku_id: SnowflakeType;
|
|
4771
4782
|
name: string;
|
|
4772
|
-
description
|
|
4783
|
+
description: string | null;
|
|
4773
4784
|
stickers: StandardStickerResponse[];
|
|
4774
4785
|
cover_sticker_id?: SnowflakeType;
|
|
4775
4786
|
banner_asset_id?: SnowflakeType;
|
|
@@ -4804,8 +4815,8 @@ export type StringSelectComponentResponse = {
|
|
|
4804
4815
|
id: number;
|
|
4805
4816
|
custom_id: string;
|
|
4806
4817
|
placeholder?: string;
|
|
4807
|
-
min_values
|
|
4808
|
-
max_values
|
|
4818
|
+
min_values: number | null;
|
|
4819
|
+
max_values: number | null;
|
|
4809
4820
|
disabled?: boolean;
|
|
4810
4821
|
options: StringSelectOptionResponse[];
|
|
4811
4822
|
};
|
|
@@ -4834,11 +4845,11 @@ export type TargetUsersJobStatusResponse = {
|
|
|
4834
4845
|
/** The number of users processed so far. */
|
|
4835
4846
|
processed_users: UInt32Type;
|
|
4836
4847
|
/** The timestamp when the job was created. */
|
|
4837
|
-
created_at
|
|
4848
|
+
created_at: string | null;
|
|
4838
4849
|
/** The timestamp when the job was successfully completed. */
|
|
4839
|
-
completed_at
|
|
4850
|
+
completed_at: string | null;
|
|
4840
4851
|
/** The error message if the job failed. */
|
|
4841
|
-
error_message
|
|
4852
|
+
error_message: string | null;
|
|
4842
4853
|
};
|
|
4843
4854
|
|
|
4844
4855
|
export type TeamMemberResponse = {
|
|
@@ -4849,7 +4860,7 @@ export type TeamMemberResponse = {
|
|
|
4849
4860
|
|
|
4850
4861
|
export type TeamResponse = {
|
|
4851
4862
|
id: SnowflakeType;
|
|
4852
|
-
icon
|
|
4863
|
+
icon: string | null;
|
|
4853
4864
|
name: string;
|
|
4854
4865
|
owner_user_id: SnowflakeType;
|
|
4855
4866
|
members: TeamMemberResponse[];
|
|
@@ -4891,12 +4902,12 @@ export type TextInputComponentResponse = {
|
|
|
4891
4902
|
id: number;
|
|
4892
4903
|
custom_id: string;
|
|
4893
4904
|
style: TextInputStyleTypes;
|
|
4894
|
-
label
|
|
4905
|
+
label: string | null;
|
|
4895
4906
|
value?: string;
|
|
4896
4907
|
placeholder?: string;
|
|
4897
4908
|
required?: boolean;
|
|
4898
|
-
min_length
|
|
4899
|
-
max_length
|
|
4909
|
+
min_length: number | null;
|
|
4910
|
+
max_length: number | null;
|
|
4900
4911
|
};
|
|
4901
4912
|
|
|
4902
4913
|
export type ThreadMemberResponse = {
|
|
@@ -4909,7 +4920,7 @@ export type ThreadMemberResponse = {
|
|
|
4909
4920
|
|
|
4910
4921
|
export type ThreadMetadataResponse = {
|
|
4911
4922
|
archived: boolean;
|
|
4912
|
-
archive_timestamp
|
|
4923
|
+
archive_timestamp: string | null;
|
|
4913
4924
|
auto_archive_duration: ThreadAutoArchiveDuration;
|
|
4914
4925
|
locked: boolean;
|
|
4915
4926
|
create_timestamp?: string;
|
|
@@ -4967,7 +4978,7 @@ export type ThumbnailComponentResponse = {
|
|
|
4967
4978
|
type: MessageComponentTypes.THUMBNAIL;
|
|
4968
4979
|
id: number;
|
|
4969
4980
|
media: UnfurledMediaResponse;
|
|
4970
|
-
description
|
|
4981
|
+
description: string | null;
|
|
4971
4982
|
spoiler: boolean;
|
|
4972
4983
|
};
|
|
4973
4984
|
|
|
@@ -5119,11 +5130,11 @@ export type UpdateVoiceStateRequestPartial = {
|
|
|
5119
5130
|
|
|
5120
5131
|
export type UserAvatarDecorationResponse = {
|
|
5121
5132
|
asset: string;
|
|
5122
|
-
sku_id
|
|
5133
|
+
sku_id: null | SnowflakeType;
|
|
5123
5134
|
};
|
|
5124
5135
|
|
|
5125
5136
|
export type UserCollectiblesResponse = {
|
|
5126
|
-
nameplate
|
|
5137
|
+
nameplate: null | UserNameplateResponse;
|
|
5127
5138
|
};
|
|
5128
5139
|
|
|
5129
5140
|
export type UserCommunicationDisabledAction = {
|
|
@@ -5152,7 +5163,7 @@ export type UserGuildOnboardingResponse = {
|
|
|
5152
5163
|
};
|
|
5153
5164
|
|
|
5154
5165
|
export type UserNameplateResponse = {
|
|
5155
|
-
sku_id
|
|
5166
|
+
sku_id: null | SnowflakeType;
|
|
5156
5167
|
asset: string;
|
|
5157
5168
|
label: string;
|
|
5158
5169
|
palette: NameplatePalette;
|
|
@@ -5161,7 +5172,7 @@ export type UserNameplateResponse = {
|
|
|
5161
5172
|
export type UserPIIResponse = {
|
|
5162
5173
|
id: SnowflakeType;
|
|
5163
5174
|
username: string;
|
|
5164
|
-
avatar
|
|
5175
|
+
avatar: string | null;
|
|
5165
5176
|
discriminator: string;
|
|
5166
5177
|
public_flags: number;
|
|
5167
5178
|
flags: Int53Type;
|
|
@@ -5169,7 +5180,7 @@ export type UserPIIResponse = {
|
|
|
5169
5180
|
system?: boolean;
|
|
5170
5181
|
banner?: string | null;
|
|
5171
5182
|
accent_color?: number | null;
|
|
5172
|
-
global_name
|
|
5183
|
+
global_name: string | null;
|
|
5173
5184
|
avatar_decoration_data?: null | UserAvatarDecorationResponse;
|
|
5174
5185
|
collectibles?: null | UserCollectiblesResponse;
|
|
5175
5186
|
primary_guild?: null | UserPrimaryGuildResponse;
|
|
@@ -5181,16 +5192,16 @@ export type UserPIIResponse = {
|
|
|
5181
5192
|
};
|
|
5182
5193
|
|
|
5183
5194
|
export type UserPrimaryGuildResponse = {
|
|
5184
|
-
identity_guild_id
|
|
5185
|
-
identity_enabled
|
|
5186
|
-
tag
|
|
5187
|
-
badge
|
|
5195
|
+
identity_guild_id: null | SnowflakeType;
|
|
5196
|
+
identity_enabled: boolean | null;
|
|
5197
|
+
tag: string | null;
|
|
5198
|
+
badge: string | null;
|
|
5188
5199
|
};
|
|
5189
5200
|
|
|
5190
5201
|
export type UserResponse = {
|
|
5191
5202
|
id: SnowflakeType;
|
|
5192
5203
|
username: string;
|
|
5193
|
-
avatar
|
|
5204
|
+
avatar: string | null;
|
|
5194
5205
|
discriminator: string;
|
|
5195
5206
|
public_flags: number;
|
|
5196
5207
|
flags: Int53Type;
|
|
@@ -5198,10 +5209,10 @@ export type UserResponse = {
|
|
|
5198
5209
|
system?: boolean;
|
|
5199
5210
|
banner?: string | null;
|
|
5200
5211
|
accent_color?: number | null;
|
|
5201
|
-
global_name
|
|
5212
|
+
global_name: string | null;
|
|
5202
5213
|
avatar_decoration_data?: null | UserAvatarDecorationResponse;
|
|
5203
5214
|
collectibles?: null | UserCollectiblesResponse;
|
|
5204
|
-
primary_guild
|
|
5215
|
+
primary_guild: null | UserPrimaryGuildResponse;
|
|
5205
5216
|
};
|
|
5206
5217
|
|
|
5207
5218
|
export type UserSelectComponentForMessageRequest = {
|
|
@@ -5233,8 +5244,8 @@ export type UserSelectComponentResponse = {
|
|
|
5233
5244
|
id: number;
|
|
5234
5245
|
custom_id: string;
|
|
5235
5246
|
placeholder?: string;
|
|
5236
|
-
min_values
|
|
5237
|
-
max_values
|
|
5247
|
+
min_values: number | null;
|
|
5248
|
+
max_values: number | null;
|
|
5238
5249
|
disabled?: boolean;
|
|
5239
5250
|
default_values?: UserSelectDefaultValueResponse[];
|
|
5240
5251
|
};
|
|
@@ -5255,7 +5266,7 @@ export type VanityURLErrorResponse = {
|
|
|
5255
5266
|
};
|
|
5256
5267
|
|
|
5257
5268
|
export type VanityURLResponse = {
|
|
5258
|
-
code
|
|
5269
|
+
code: string | null;
|
|
5259
5270
|
uses: number;
|
|
5260
5271
|
error?: null | VanityURLErrorResponse;
|
|
5261
5272
|
};
|
|
@@ -5297,31 +5308,31 @@ export type VoiceScheduledEventResponse = {
|
|
|
5297
5308
|
id: SnowflakeType;
|
|
5298
5309
|
guild_id: SnowflakeType;
|
|
5299
5310
|
name: string;
|
|
5300
|
-
description
|
|
5301
|
-
channel_id
|
|
5302
|
-
creator_id
|
|
5311
|
+
description: string | null;
|
|
5312
|
+
channel_id: null | SnowflakeType;
|
|
5313
|
+
creator_id: null | SnowflakeType;
|
|
5303
5314
|
creator?: UserResponse;
|
|
5304
|
-
image
|
|
5315
|
+
image: string | null;
|
|
5305
5316
|
scheduled_start_time: string;
|
|
5306
|
-
scheduled_end_time
|
|
5317
|
+
scheduled_end_time: string | null;
|
|
5307
5318
|
status: GuildScheduledEventStatuses;
|
|
5308
5319
|
entity_type: GuildScheduledEventEntityTypes.VOICE;
|
|
5309
|
-
entity_id
|
|
5320
|
+
entity_id: null | SnowflakeType;
|
|
5310
5321
|
user_count?: number;
|
|
5311
5322
|
privacy_level: GuildScheduledEventPrivacyLevels;
|
|
5312
5323
|
user_rsvp?: null | ScheduledEventUserResponse;
|
|
5313
|
-
entity_metadata
|
|
5324
|
+
entity_metadata: null | EntityMetadataVoiceResponse;
|
|
5314
5325
|
};
|
|
5315
5326
|
|
|
5316
5327
|
export type VoiceStateResponse = {
|
|
5317
|
-
channel_id
|
|
5328
|
+
channel_id: null | SnowflakeType;
|
|
5318
5329
|
deaf: boolean;
|
|
5319
|
-
guild_id
|
|
5330
|
+
guild_id: null | SnowflakeType;
|
|
5320
5331
|
member?: GuildMemberResponse;
|
|
5321
5332
|
mute: boolean;
|
|
5322
|
-
request_to_speak_timestamp
|
|
5333
|
+
request_to_speak_timestamp: string | null;
|
|
5323
5334
|
suppress: boolean;
|
|
5324
|
-
self_stream
|
|
5335
|
+
self_stream: boolean | null;
|
|
5325
5336
|
self_deaf: boolean;
|
|
5326
5337
|
self_mute: boolean;
|
|
5327
5338
|
self_video: boolean;
|
|
@@ -5359,7 +5370,7 @@ export type WebhookSourceChannelResponse = {
|
|
|
5359
5370
|
|
|
5360
5371
|
export type WebhookSourceGuildResponse = {
|
|
5361
5372
|
id: SnowflakeType;
|
|
5362
|
-
icon
|
|
5373
|
+
icon: string | null;
|
|
5363
5374
|
name: string;
|
|
5364
5375
|
};
|
|
5365
5376
|
|
|
@@ -5388,7 +5399,7 @@ export type WidgetMember = {
|
|
|
5388
5399
|
id: string;
|
|
5389
5400
|
username: string;
|
|
5390
5401
|
discriminator: WidgetUserDiscriminator;
|
|
5391
|
-
avatar
|
|
5402
|
+
avatar: null;
|
|
5392
5403
|
status: string;
|
|
5393
5404
|
avatar_url: string;
|
|
5394
5405
|
activity?: WidgetActivity;
|
|
@@ -5403,7 +5414,7 @@ export type WidgetMember = {
|
|
|
5403
5414
|
export type WidgetResponse = {
|
|
5404
5415
|
id: SnowflakeType;
|
|
5405
5416
|
name: string;
|
|
5406
|
-
instant_invite
|
|
5417
|
+
instant_invite: string | null;
|
|
5407
5418
|
channels: WidgetChannel[];
|
|
5408
5419
|
members: WidgetMember[];
|
|
5409
5420
|
presence_count: number;
|
|
@@ -5411,7 +5422,7 @@ export type WidgetResponse = {
|
|
|
5411
5422
|
|
|
5412
5423
|
export type WidgetSettingsResponse = {
|
|
5413
5424
|
enabled: boolean;
|
|
5414
|
-
channel_id
|
|
5425
|
+
channel_id: null | SnowflakeType;
|
|
5415
5426
|
};
|
|
5416
5427
|
|
|
5417
5428
|
// Paths
|