Skip to main content
Module

x/discord_api_types/rest/v10/guild.ts

Up to date Discord API Typings, versioned by the API version
Go to Latest
File
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908
import type { RESTPutAPIChannelPermissionJSONBody } from './channel.ts';import type { Permissions, Snowflake } from '../../globals.ts';import type { APIBan, APIChannel, APIDMChannel, APIExtendedInvite, APIGroupDMChannel, APIGuild, APIGuildIntegration, APIGuildMember, APIGuildMembershipScreening, APIGuildPreview, APIGuildWelcomeScreen, APIGuildWidget, APIGuildWidgetSettings, APIRole, APIThreadList, APIVoiceRegion, GuildDefaultMessageNotifications, GuildExplicitContentFilter, GuildFeature, GuildMFALevel, GuildSystemChannelFlags, GuildVerificationLevel, GuildWidgetStyle,} from '../../payloads/v10/mod.ts';import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, DistributiveOmit, DistributivePick, Nullable, StrictPartial, StrictRequired,} from '../../utils/internals.ts';
export interface APIGuildCreateOverwrite extends RESTPutAPIChannelPermissionJSONBody { id: number | string;}
export type APIGuildChannelResolvable = Exclude<APIChannel, APIDMChannel | APIGroupDMChannel>;export type APIGuildCreatePartialChannel = StrictPartial< DistributivePick< APIGuildChannelResolvable, | 'type' | 'topic' | 'nsfw' | 'bitrate' | 'user_limit' | 'rate_limit_per_user' | 'default_auto_archive_duration' | 'position' | 'rtc_region' | 'video_quality_mode' | 'flags' >> & AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ name: string; id?: number | string; parent_id?: number | string | null; permission_overwrites?: APIGuildCreateOverwrite[]; }>;
export interface APIGuildCreateRole extends RESTPostAPIGuildRoleJSONBody { id: number | string;}
/** * https://discord.com/developers/docs/resources/guild#create-guild */export type RESTPostAPIGuildsJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Name of the guild (2-100 characters) */ name: string; /** * Voice region id * * See https://discord.com/developers/docs/resources/voice#voice-region-object */ region?: string; /** * base64 1024x1024 png/jpeg image for the guild icon * * See https://discord.com/developers/docs/reference#image-data */ icon?: string; /** * Verification level * * See https://discord.com/developers/docs/resources/guild#guild-object-verification-level */ verification_level?: GuildVerificationLevel; /** * Default message notification level * * See https://discord.com/developers/docs/resources/guild#guild-object-default-message-notification-level */ default_message_notifications?: GuildDefaultMessageNotifications; /** * Explicit content filter level * * See https://discord.com/developers/docs/resources/guild#guild-object-explicit-content-filter-level */ explicit_content_filter?: GuildExplicitContentFilter; /** * New guild roles * * **When using this parameter, the first member of the array is used to change properties of the guild's @everyone role. * If you are trying to bootstrap a guild with additional roles, keep this in mind.** * * *When using this parameter, the required `id` field within each role object is an integer placeholder, * and will be replaced by the API upon consumption. Its purpose is to allow you to overwrite a role's permissions * in a channel when also passing in channels with the channels array.* * * See https://discord.com/developers/docs/topics/permissions#role-object */ roles?: APIGuildCreateRole[]; /** * New guild's channels * * **When using the channels parameter, the `position` field is ignored, and none of the default channels are created.** * * *When using the channels parameter, the `id` field within each channel object may be set to an integer placeholder, * and will be replaced by the API upon consumption. Its purpose is to allow you to create `GUILD_CATEGORY` channels * by setting the `parent_id` field on any children to the category's id field. * Category channels must be listed before any children.* * * See https://discord.com/developers/docs/resources/channel#channel-object */ channels?: APIGuildCreatePartialChannel[]; /** * ID for afk channel */ afk_channel_id?: number | Snowflake | null; /** * AFK timeout in seconds */ afk_timeout?: number; /** * The id of the channel where guild notices such as welcome messages and boost events are posted */ system_channel_id?: number | Snowflake | null; /** * System channel flags * * See https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags */ system_channel_flags?: GuildSystemChannelFlags; /** * Whether the boosts progress bar should be enabled. */ premium_progress_bar_enabled?: boolean;}>;
/** * https://discord.com/developers/docs/resources/guild#create-guild */export type RESTPostAPIGuildsResult = APIGuild;
/** * https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level */export interface RESTPostAPIGuildsMFAJSONBody { /** * MFA level * * See https://discord.com/developers/docs/resources/guild#guild-object-mfa-level */ level: GuildMFALevel;}
/** * https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level */export type RESTPostAPIGuildsMFAResult = RESTPostAPIGuildsMFAJSONBody;
/** * https://discord.com/developers/docs/resources/guild#get-guild */export interface RESTGetAPIGuildQuery { /** * When `true`, will return approximate member and presence counts for the guild * * @default false */ with_counts?: boolean;}
/** * https://discord.com/developers/docs/resources/guild#get-guild */export type RESTGetAPIGuildResult = APIGuild;
/** * https://discord.com/developers/docs/resources/guild#get-guild-preview */export type RESTGetAPIGuildPreviewResult = APIGuildPreview;
/** * https://discord.com/developers/docs/resources/guild#modify-guild */export type RESTPatchAPIGuildJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * New name for the guild (2-100 characters) */ name?: string; /** * Voice region id * * See https://discord.com/developers/docs/resources/voice#voice-region-object */ region?: string | null; /** * Verification level * * See https://discord.com/developers/docs/resources/guild#guild-object-verification-level */ verification_level?: GuildVerificationLevel | null; /** * Default message notification level * * See https://discord.com/developers/docs/resources/guild#guild-object-default-message-notification-level */ default_message_notifications?: GuildDefaultMessageNotifications | null; /** * Explicit content filter level * * See https://discord.com/developers/docs/resources/guild#guild-object-explicit-content-filter-level */ explicit_content_filter?: GuildExplicitContentFilter | null; /** * ID for afk channel */ afk_channel_id?: Snowflake | null; /** * AFK timeout in seconds */ afk_timeout?: number; /** * base64 1024x1024 png/jpeg/gif image for the guild icon (can be animated gif when the guild has `ANIMATED_ICON` feature) * * See https://discord.com/developers/docs/reference#image-data */ icon?: string | null; /** * User id to transfer guild ownership to (must be owner) */ owner_id?: Snowflake; /** * base64 16:9 png/jpeg image for the guild splash (when the guild has `INVITE_SPLASH` feature) * * See https://discord.com/developers/docs/reference#image-data */ splash?: string | null; /** * base64 png/jpeg image for the guild discovery splash (when the guild has `DISCOVERABLE` feature) */ discovery_splash?: string | null; /** * base64 16:9 png/jpeg image for the guild banner (when the server has the `BANNER` feature; can be animated gif when the server has the `ANIMATED_BANNER` feature) */ banner?: string | null; /** * The id of the channel where guild notices such as welcome messages and boost events are posted */ system_channel_id?: Snowflake | null; /** * System channel flags * * See https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags */ system_channel_flags?: GuildSystemChannelFlags; /** * The id of the channel where Community guilds display rules and/or guidelines */ rules_channel_id?: Snowflake | null; /** * The id of the channel where admins and moderators of Community guilds receive notices from Discord */ public_updates_channel_id?: Snowflake | null; /** * The preferred locale of a Community guild used in server discovery and notices from Discord; defaults to "en-US" * * @default "en-US" (if the value is set to `null`) */ preferred_locale?: string | null; /** * Enabled guild features * * See https://discord.com/developers/docs/resources/guild#guild-object-guild-features */ features?: GuildFeature[]; /** * The description for the guild */ description?: string | null; /** * Whether the boosts progress bar should be enabled. */ premium_progress_bar_enabled?: boolean;}>;
/** * https://discord.com/developers/docs/resources/guild#modify-guild */export type RESTPatchAPIGuildResult = APIGuild;
/** * https://discord.com/developers/docs/resources/guild#delete-guild */export type RESTDeleteAPIGuildResult = never;
/** * https://discord.com/developers/docs/resources/guild#get-guild-channels */export type RESTGetAPIGuildChannelsResult = APIChannel[];
/** * https://discord.com/developers/docs/resources/guild#create-guild-channel */export type RESTPostAPIGuildChannelJSONBody = DistributiveOmit<APIGuildCreatePartialChannel, 'id'>;
/** * https://discord.com/developers/docs/resources/guild#create-guild-channel */export type RESTPostAPIGuildChannelResult = APIChannel;
/** * https://discord.com/developers/docs/resources/guild#modify-guild-channel-positions */export type RESTPatchAPIGuildChannelPositionsJSONBody = Array< AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Channel id */ id: Snowflake; /** * Sorting position of the channel */ position: number; /** * Sync channel overwrites with the new parent, when moving to a new `parent_id` */ lock_permissions?: boolean; /** * The new parent id of this channel */ parent_id?: Snowflake | null; }>>;
/** * https://discord.com/developers/docs/resources/guild#modify-guild-channel-positions */export type RESTPatchAPIGuildChannelPositionsResult = never;
/** * https://discord.com/developers/docs/resources/guild#list-active-guild-threads */export type RESTGetAPIGuildThreadsResult = APIThreadList;
/** * https://discord.com/developers/docs/resources/guild#get-guild-member */export type RESTGetAPIGuildMemberResult = APIGuildMember;
/** * https://discord.com/developers/docs/resources/guild#list-guild-members */export interface RESTGetAPIGuildMembersQuery { /** * Max number of members to return (1-1000) * * @default 1 */ limit?: number; /** * The highest user id in the previous page * * @default 0 */ after?: Snowflake;}
/** * https://discord.com/developers/docs/resources/guild#list-guild-members */export type RESTGetAPIGuildMembersResult = APIGuildMember[];
/** * https://discord.com/developers/docs/resources/guild#search-guild-members */export interface RESTGetAPIGuildMembersSearchQuery { /** * Query string to match username(s) and nickname(s) against */ query: string; /** * Max number of members to return (1-1000) * * @default 1 */ limit?: number;}
export type RESTGetAPIGuildMembersSearchResult = APIGuildMember[];
/** * https://discord.com/developers/docs/resources/guild#add-guild-member */export type RESTPutAPIGuildMemberJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * An oauth2 access token granted with the `guilds.join` to the bot's application for the user you want to add to the guild */ access_token: string; /** * Value to set users nickname to * * Requires `MANAGE_NICKNAMES` permission */ nick?: string; /** * Array of role ids the member is assigned * * Requires `MANAGE_ROLES` permission */ roles?: Snowflake[]; /** * Whether the user is muted in voice channels * * Requires `MUTE_MEMBERS` permission */ mute?: boolean; /** * Whether the user is deafened in voice channels * * Requires `DEAFEN_MEMBERS` permission */ deaf?: boolean;}>;
export type RESTPutAPIGuildMemberResult = APIGuildMember | never;
/** * https://discord.com/developers/docs/resources/guild#modify-guild-member */export type RESTPatchAPIGuildMemberJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Value to set users nickname to * * Requires `MANAGE_NICKNAMES` permission */ nick?: string | null; /** * Array of role ids the member is assigned * * Requires `MANAGE_ROLES` permission */ roles?: Snowflake[] | null; /** * Whether the user is muted in voice channels. Will throw a 400 if the user is not in a voice channel * * Requires `MUTE_MEMBERS` permission */ mute?: boolean | null; /** * Whether the user is deafened in voice channels. Will throw a 400 if the user is not in a voice channel * * Requires `DEAFEN_MEMBERS` permission */ deaf?: boolean | null; /** * ID of channel to move user to (if they are connected to voice) * * Requires `MOVE_MEMBERS` permission */ channel_id?: Snowflake | null; /** * Timestamp of when the time out will be removed; until then, they cannot interact with the guild */ communication_disabled_until?: string | null;}>;
/** * https://discord.com/developers/docs/resources/guild#add-guild-member */export type RESTPatchAPIGuildMemberResult = APIGuildMember;
/** * https://discord.com/developers/docs/resources/guild#modify-current-user-nick * * @deprecated Use [Modify Current Member](https://discord.com/developers/docs/resources/guild#modify-current-member) instead. */export type RESTPatchAPICurrentGuildMemberNicknameJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Value to set users nickname to * * Requires `CHANGE_NICKNAME` permission */ nick?: string | null;}>;
/** * https://discord.com/developers/docs/resources/guild#modify-current-member */export type RESTPatchAPICurrentGuildMemberJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Value to set users nickname to * * Requires `CHANGE_NICKNAME` permission */ nick?: string | null;}>;
/** * https://discord.com/developers/docs/resources/guild#modify-current-user-nick * * @deprecated Use [Modify Current Member](https://discord.com/developers/docs/resources/guild#modify-current-member) instead. */export type RESTPatchAPICurrentGuildMemberNicknameResult = StrictRequired<RESTPatchAPICurrentGuildMemberNicknameJSONBody>;
/** * https://discord.com/developers/docs/resources/guild#add-guild-member-role */export type RESTPutAPIGuildMemberRoleResult = never;
/** * https://discord.com/developers/docs/resources/guild#remove-guild-member-role */export type RESTDeleteAPIGuildMemberRoleResult = never;
/** * https://discord.com/developers/docs/resources/guild#remove-guild-member */export type RESTDeleteAPIGuildMemberResult = never;
/** * https://discord.com/developers/docs/resources/guild#get-guild-bans */export type RESTGetAPIGuildBansResult = APIBan[];
/** * https://discord.com/developers/docs/resources/guild#get-guild-bans */export interface RESTGetAPIGuildBansQuery { /** * Consider only users before given user id */ before?: Snowflake; /** * Consider only users after given user id */ after?: Snowflake; /** * Number of users to return (1-1000) * * @default 1000 */ limit?: number;}
/** * https://discord.com/developers/docs/resources/guild#get-guild-ban */export type RESTGetAPIGuildBanResult = APIBan;
/** * https://discord.com/developers/docs/resources/guild#create-guild-ban */export type RESTPutAPIGuildBanJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Number of days to delete messages for (0-7) */ delete_message_days?: number;}>;
/** * https://discord.com/developers/docs/resources/guild#create-guild-ban */export type RESTPutAPIGuildBanResult = never;
/** * https://discord.com/developers/docs/resources/guild#remove-guild-ban */export type RESTDeleteAPIGuildBanResult = never;
/** * https://discord.com/developers/docs/resources/guild#get-guild-roles */export type RESTGetAPIGuildRolesResult = APIRole[];
/** * https://discord.com/developers/docs/resources/guild#create-guild-role */export type RESTPostAPIGuildRoleJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Name of the role * * @default "new role" */ name?: string | null; /** * Bitwise value of the enabled/disabled permissions * * @default "default role permissions in guild" */ permissions?: Permissions | null; /** * RGB color value * * @default 0 */ color?: number | null; /** * Whether the role should be displayed separately in the sidebar * * @default false */ hoist?: boolean | null; /** * The role's icon image (if the guild has the `ROLE_ICONS` feature) */ icon?: string | null; /** * The role's unicode emoji as a standard emoji (if the guild has the `ROLE_ICONS` feature) */ unicode_emoji?: string | null; /** * Whether the role should be mentionable * * @default false */ mentionable?: boolean | null;}>;
/** * https://discord.com/developers/docs/resources/guild#create-guild-role */export type RESTPostAPIGuildRoleResult = APIRole;
/** * https://discord.com/developers/docs/resources/guild#modify-guild-role-positions */export type RESTPatchAPIGuildRolePositionsJSONBody = Array< AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Role id */ id: Snowflake; /** * Sorting position of the role */ position?: number; }>>;
/** * https://discord.com/developers/docs/resources/guild#modify-guild-role-positions */export type RESTPatchAPIGuildRolePositionsResult = APIRole[];
/** * https://discord.com/developers/docs/resources/guild#modify-guild-role */export type RESTPatchAPIGuildRoleJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Name of the role */ name?: string | null; /** * Bitwise value of the enabled/disabled permissions */ permissions?: Permissions | null; /** * RGB color value */ color?: number | null; /** * Whether the role should be displayed separately in the sidebar */ hoist?: boolean | null; /** * The role's icon image (if the guild has the `ROLE_ICONS` feature) */ icon?: string | null; /** * The role's unicode emoji as a standard emoji (if the guild has the `ROLE_ICONS` feature) */ unicode_emoji?: string | null; /** * Whether the role should be mentionable */ mentionable?: boolean | null;}>;
/** * https://discord.com/developers/docs/resources/guild#modify-guild-role */export type RESTPatchAPIGuildRoleResult = APIRole;
/** * https://discord.com/developers/docs/resources/guild#delete-guild-role */export type RESTDeleteAPIGuildRoleResult = never;
/** * https://discord.com/developers/docs/resources/guild#get-guild-prune-count */export interface RESTGetAPIGuildPruneCountQuery { /** * Number of days to count prune for (1 or more) * * @default 7 */ days?: number; /** * Role(s) to include * * While this is typed as a string, it represents an array of * role IDs delimited by commas * * See https://discord.com/developers/docs/resources/guild#get-guild-prune-count-query-string-params */ include_roles?: string;}
/** * https://discord.com/developers/docs/resources/guild#get-guild-prune-count */export interface RESTGetAPIGuildPruneCountResult { pruned: number;}
/** * https://discord.com/developers/docs/resources/guild#begin-guild-prune */export type RESTPostAPIGuildPruneJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Number of days to count prune for (1 or more) * * @default 7 */ days?: number; /** * Whether `pruned is returned, discouraged for large guilds * * @default true */ compute_prune_count?: boolean; /** * Role(s) to include */ include_roles?: Snowflake[];}>;
/** * https://discord.com/developers/docs/resources/guild#begin-guild-prune */export interface RESTPostAPIGuildPruneResult { pruned: number | null;}
/** * https://discord.com/developers/docs/resources/guild#get-guild-voice-regions */export type RESTGetAPIGuildVoiceRegionsResult = APIVoiceRegion[];
/** * https://discord.com/developers/docs/resources/guild#get-guild-invites */export type RESTGetAPIGuildInvitesResult = APIExtendedInvite[];
/** * https://discord.com/developers/docs/resources/guild#get-guild-integrations */export type RESTGetAPIGuildIntegrationsResult = APIGuildIntegration[];
/** * https://discord.com/developers/docs/resources/guild#delete-guild-integration */export type RESTDeleteAPIGuildIntegrationResult = never;
/** * https://discord.com/developers/docs/resources/guild#get-guild-widget-settings */export type RESTGetAPIGuildWidgetSettingsResult = APIGuildWidgetSettings;
/** * https://discord.com/developers/docs/resources/guild#modify-guild-widget */export type RESTPatchAPIGuildWidgetSettingsJSONBody = StrictPartial<APIGuildWidgetSettings>;
/** * https://discord.com/developers/docs/resources/guild#modify-guild-widget */export type RESTPatchAPIGuildWidgetSettingsResult = APIGuildWidgetSettings;
/** * https://discord.com/developers/docs/resources/guild#get-guild-widget */export type RESTGetAPIGuildWidgetJSONResult = APIGuildWidget;
/** * https://discord.com/developers/docs/resources/guild#get-guild-vanity-url */export interface RESTGetAPIGuildVanityUrlResult { code: string | null; uses: number;}
/** * https://discord.com/developers/docs/resources/guild#get-guild-widget-image */export interface RESTGetAPIGuildWidgetImageQuery { /** * Style of the widget image returned * * @default "shield" */ style?: GuildWidgetStyle;}
/** * Note: while the return type is `ArrayBuffer`, the expected result is * a buffer of sorts (depends if in browser or on node.js/deno). */export type RESTGetAPIGuildWidgetImageResult = ArrayBuffer;
export type RESTGetAPIGuildMemberVerificationResult = APIGuildMembershipScreening;
export type RESTPatchAPIGuildMemberVerificationJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Whether Membership Screening is enabled */ enabled?: boolean; /** * Array of field objects serialized in a string */ form_fields?: string; /** * The server description to show in the screening form */ description?: string | null;}>;
export type RESTPatchAPIGuildMemberVerificationResult = APIGuildMembershipScreening;
/** * https://discord.com/developers/docs/resources/guild#modify-current-user-voice-state */export type RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * The id of the channel the user is currently in */ channel_id: Snowflake; /** * Toggles the user's suppress state */ suppress?: boolean; /** * Sets the user's request to speak */ request_to_speak_timestamp?: string | null;}>;
/** * https://discord.com/developers/docs/resources/guild#modify-current-user-voice-state */export type RESTPatchAPIGuildVoiceStateCurrentMemberResult = never;
/** * https://discord.com/developers/docs/resources/guild#modify-user-voice-state */export type RESTPatchAPIGuildVoiceStateUserJSONBody = AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * The id of the channel the user is currently in */ channel_id: Snowflake; /** * Toggles the user's suppress state */ suppress?: boolean;}>;
/** * https://discord.com/developers/docs/resources/guild#get-guild-welcome-screen */export type RESTGetAPIGuildWelcomeScreenResult = APIGuildWelcomeScreen;
/** * https://discord.com/developers/docs/resources/guild#modify-guild-welcome-screen */export type RESTPatchAPIGuildWelcomeScreenJSONBody = Nullable<StrictPartial<APIGuildWelcomeScreen>> & AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ /** * Whether the welcome screen is enabled */ enabled?: boolean | null; }>;
/** * https://discord.com/developers/docs/resources/guild#modify-guild-welcome-screen */export type RESTPatchAPIGuildWelcomeScreenResult = APIGuildWelcomeScreen;