#[non_exhaustive]pub struct ModifyGuild {Show 19 fields
pub name: Option<CompactString>,
pub verification_level: Patch<VerificationLevel>,
pub default_message_notifications: Patch<DefaultMessageNotificationLevel>,
pub explicit_content_filter: Patch<ExplicitContentFilterLevel>,
pub afk_channel_id: Patch<ChannelId>,
pub afk_timeout: Option<u32>,
pub icon: Patch<ImageData>,
pub splash: Patch<ImageData>,
pub discovery_splash: Patch<ImageData>,
pub banner: Patch<ImageData>,
pub system_channel_id: Patch<ChannelId>,
pub system_channel_flags: Option<SystemChannelFlags>,
pub rules_channel_id: Patch<ChannelId>,
pub public_updates_channel_id: Patch<ChannelId>,
pub preferred_locale: Patch<Locale>,
pub features: Option<Vec<Feature>>,
pub description: Patch<CompactString>,
pub premium_progress_bar_enabled: Option<bool>,
pub safety_alerts_channel_id: Patch<ChannelId>,
}Expand description
The body of Modify Guild.
Every field is optional; Patch fields can also be cleared. Adding or removing the
COMMUNITY feature needs ADMINISTRATOR.
discord.js counterpart: GuildEditOptions.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<CompactString>The name.
verification_level: Patch<VerificationLevel>Who can talk in the guild.
default_message_notifications: Patch<DefaultMessageNotificationLevel>Which messages notify members by default.
explicit_content_filter: Patch<ExplicitContentFilterLevel>Whose media is scanned for explicit content.
afk_channel_id: Patch<ChannelId>The AFK voice channel.
afk_timeout: Option<u32>Seconds of inactivity before members are moved to the AFK channel: 60, 300, 900, 1800 or 3600.
icon: Patch<ImageData>The icon (1024×1024; an animated GIF with the ANIMATED_ICON feature).
splash: Patch<ImageData>The invite splash (16:9; needs the INVITE_SPLASH feature).
discovery_splash: Patch<ImageData>The discovery splash (16:9; needs the DISCOVERABLE feature).
The banner (16:9; needs the BANNER feature, animated with ANIMATED_BANNER).
system_channel_id: Patch<ChannelId>The channel of welcome and boost messages.
system_channel_flags: Option<SystemChannelFlags>Which messages the system channel shows (set flags suppress them).
rules_channel_id: Patch<ChannelId>The rules or guidelines channel of a community guild.
public_updates_channel_id: Patch<ChannelId>The channel where community guild moderators get notices from Discord.
preferred_locale: Patch<Locale>The language of a community guild (Discord’s default: en-US).
features: Option<Vec<Feature>>The enabled features (all of them).
description: Patch<CompactString>The description.
Whether the boost progress bar is shown.
safety_alerts_channel_id: Patch<ChannelId>The channel where community guild moderators get safety alerts.