|
|
@@ -32,7 +32,8 @@ namespace Discord.Rest |
|
|
|
Icon = args.Icon.IsSpecified ? args.Icon.Value?.ToModel() : Optional.Create<ImageModel?>(), |
|
|
|
Name = args.Name, |
|
|
|
Splash = args.Splash.IsSpecified ? args.Splash.Value?.ToModel() : Optional.Create<ImageModel?>(), |
|
|
|
VerificationLevel = args.VerificationLevel |
|
|
|
VerificationLevel = args.VerificationLevel, |
|
|
|
ExplicitContentFilter = args.ExplicitContentFilter |
|
|
|
}; |
|
|
|
|
|
|
|
if (args.AfkChannel.IsSpecified) |
|
|
@@ -60,6 +61,9 @@ namespace Discord.Rest |
|
|
|
if (!apiArgs.Icon.IsSpecified && guild.IconId != null) |
|
|
|
apiArgs.Icon = new ImageModel(guild.IconId); |
|
|
|
|
|
|
|
if (args.ExplicitContentFilter.IsSpecified) |
|
|
|
apiArgs.ExplicitContentFilter = args.ExplicitContentFilter.Value; |
|
|
|
|
|
|
|
return await client.ApiClient.ModifyGuildAsync(guild.Id, apiArgs, options).ConfigureAwait(false); |
|
|
|
} |
|
|
|
/// <exception cref="ArgumentNullException"><paramref name="func"/> is <c>null</c>.</exception> |
|
|
|