Method ModifyGuildAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
ModifyGuildAsync(ulong, Optional<string>, Optional<string>, Optional<DiscordVerificationLevel>, Optional<DiscordDefaultMessageNotifications>, Optional<DiscordMfaLevel>, Optional<DiscordExplicitContentFilter>, Optional<ulong?>, Optional<int>, Optional<string>, Optional<ulong>, Optional<string>, Optional<ulong?>, Optional<string>, Optional<string>, Optional<string>, Optional<IEnumerable<string>>, Optional<string>, Optional<ulong?>, Optional<ulong?>, Optional<DiscordSystemChannelFlags>, string)
Modifies a guild
public Task<DiscordGuild> ModifyGuildAsync(ulong guildId, Optional<string> name, Optional<string> region, Optional<DiscordVerificationLevel> verificationLevel, Optional<DiscordDefaultMessageNotifications> defaultMessageNotifications, Optional<DiscordMfaLevel> mfaLevel, Optional<DiscordExplicitContentFilter> explicitContentFilter, Optional<ulong?> afkChannelId, Optional<int> afkTimeout, Optional<string> iconb64, Optional<ulong> ownerId, Optional<string> splashb64, Optional<ulong?> systemChannelId, Optional<string> banner, Optional<string> description, Optional<string> discorverySplash, Optional<IEnumerable<string>> features, Optional<string> preferredLocale, Optional<ulong?> publicUpdatesChannelId, Optional<ulong?> rulesChannelId, Optional<DiscordSystemChannelFlags> systemChannelFlags, string reason)
Parameters
guildId
ulongGuild ID
name
Optional<string>New guild Name
region
Optional<string>New guild voice region
verificationLevel
Optional<DiscordVerificationLevel>New guild verification level
defaultMessageNotifications
Optional<DiscordDefaultMessageNotifications>New guild default message notification level
mfaLevel
Optional<DiscordMfaLevel>New guild MFA level
explicitContentFilter
Optional<DiscordExplicitContentFilter>New guild explicit content filter level
afkChannelId
Optional<ulong?>New guild AFK channel ID
afkTimeout
Optional<int>New guild AFK timeout in seconds
iconb64
Optional<string>New guild icon (base64)
ownerId
Optional<ulong>New guild owner ID
splashb64
Optional<string>New guild splash (base64)
systemChannelId
Optional<ulong?>New guild system channel ID
banner
Optional<string>New guild banner
description
Optional<string>New guild description
discorverySplash
Optional<string>New guild Discovery splash
features
Optional<IEnumerable<string>>List of new guild features
preferredLocale
Optional<string>New preferred locale
publicUpdatesChannelId
Optional<ulong?>New updates channel ID
rulesChannelId
Optional<ulong?>New rules channel ID
systemChannelFlags
Optional<DiscordSystemChannelFlags>New system channel flags
reason
stringModify reason
Returns
ModifyGuildAsync(ulong, Action<GuildEditModel>)
Modifies a guild
public Task<DiscordGuild> ModifyGuildAsync(ulong guildId, Action<GuildEditModel> action)
Parameters
guildId
ulongGuild ID
action
Action<GuildEditModel>Guild modifications