update_guild
PATCH
/guilds/{guild_id} https://discord.com/api/v10
Parameters
path Path Parameters
| Name | Type |
|---|---|
guild_id
required
| type SnowflakeType = string |
Request Body
application/json
required
interface GuildPatchRequestPartial {
name?: string;
description?: string | null;
region?: string | null;
icon?: string | null;
verification_level?:VerificationLevels | null;
default_message_notifications?:UserNotificationSettings | null;
explicit_content_filter?:GuildExplicitContentFilterTypes | null;
preferred_locale?:AvailableLocalesEnum | null;
afk_timeout?:AfkTimeouts | null;
afk_channel_id?:SnowflakeType | null;
system_channel_id?:SnowflakeType | null;
splash?: string | null;
banner?: string | null;
system_channel_flags?: number | null;
features?: (string | null)[] | null;
discovery_splash?: string | null;
home_header?: string | null;
rules_channel_id?:SnowflakeType | null;
safety_alerts_channel_id?:SnowflakeType | null;
public_updates_channel_id?:SnowflakeType | null;
premium_progress_bar_enabled?: boolean | null;
}
name?: string;
description?: string | null;
region?: string | null;
icon?: string | null;
verification_level?:
default_message_notifications?:
explicit_content_filter?:
preferred_locale?:
afk_timeout?:
afk_channel_id?:
system_channel_id?:
splash?: string | null;
banner?: string | null;
system_channel_flags?: number | null;
features?: (string | null)[] | null;
discovery_splash?: string | null;
home_header?: string | null;
rules_channel_id?:
safety_alerts_channel_id?:
public_updates_channel_id?:
premium_progress_bar_enabled?: boolean | null;
}
Responses
200 application/json
200 response for update_guild
interface GuildResponse {
id:SnowflakeType ;
name: string;
icon?: string | null;
description?: string | null;
home_header?: string | null;
splash?: string | null;
discovery_splash?: string | null;
features:GuildFeatures [];
banner?: string | null;
owner_id:SnowflakeType ;
application_id?:SnowflakeType | null;
region: string;
afk_channel_id?:SnowflakeType | null;
afk_timeout:AfkTimeouts ;
system_channel_id?:SnowflakeType | null;
system_channel_flags: number;
widget_enabled: boolean;
widget_channel_id?:SnowflakeType | null;
verification_level:VerificationLevels ;
roles:GuildRoleResponse [];
default_message_notifications:UserNotificationSettings ;
mfa_level:GuildMFALevel ;
explicit_content_filter:GuildExplicitContentFilterTypes ;
max_presences?: number | null;
max_members: number;
max_stage_video_channel_users: number;
max_video_channel_users: number;
vanity_url_code?: string | null;
premium_tier:PremiumGuildTiers ;
premium_subscription_count: number;
preferred_locale:AvailableLocalesEnum ;
rules_channel_id?:SnowflakeType | null;
safety_alerts_channel_id?:SnowflakeType | null;
public_updates_channel_id?:SnowflakeType | null;
premium_progress_bar_enabled: boolean;
nsfw: boolean;
nsfw_level:GuildNSFWContentLevel ;
emojis:EmojiResponse [];
stickers:GuildStickerResponse [];
}
id:
name: string;
icon?: string | null;
description?: string | null;
home_header?: string | null;
splash?: string | null;
discovery_splash?: string | null;
features:
banner?: string | null;
owner_id:
application_id?:
region: string;
afk_channel_id?:
afk_timeout:
system_channel_id?:
system_channel_flags: number;
widget_enabled: boolean;
widget_channel_id?:
verification_level:
roles:
default_message_notifications:
mfa_level:
explicit_content_filter:
max_presences?: number | null;
max_members: number;
max_stage_video_channel_users: number;
max_video_channel_users: number;
vanity_url_code?: string | null;
premium_tier:
premium_subscription_count: number;
preferred_locale:
rules_channel_id?:
safety_alerts_channel_id?:
public_updates_channel_id?:
premium_progress_bar_enabled: boolean;
nsfw: boolean;
nsfw_level:
emojis:
stickers:
}
Client Errors
429 application/json
Client ratelimited response
type RatelimitedResponse = never
4XX application/json
Client error response
type ErrorResponse = never