|
@@ -3,6 +3,7 @@ using System; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Immutable; |
|
|
using System.Collections.Immutable; |
|
|
using System.Diagnostics; |
|
|
using System.Diagnostics; |
|
|
|
|
|
using System.Globalization; |
|
|
using System.Linq; |
|
|
using System.Linq; |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
using EmbedModel = Discord.API.GuildEmbed; |
|
|
using EmbedModel = Discord.API.GuildEmbed; |
|
@@ -64,6 +65,11 @@ namespace Discord.Rest |
|
|
public string Description { get; private set; } |
|
|
public string Description { get; private set; } |
|
|
/// <inheritdoc /> |
|
|
/// <inheritdoc /> |
|
|
public int PremiumSubscriptionCount { get; private set; } |
|
|
public int PremiumSubscriptionCount { get; private set; } |
|
|
|
|
|
/// <inheritdoc /> |
|
|
|
|
|
public string PreferredLocale { get; private set; } |
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc /> |
|
|
|
|
|
public CultureInfo PreferredCulture { get; private set; } |
|
|
|
|
|
|
|
|
/// <inheritdoc /> |
|
|
/// <inheritdoc /> |
|
|
public DateTimeOffset CreatedAt => SnowflakeUtils.FromSnowflake(Id); |
|
|
public DateTimeOffset CreatedAt => SnowflakeUtils.FromSnowflake(Id); |
|
@@ -124,6 +130,8 @@ namespace Discord.Rest |
|
|
SystemChannelFlags = model.SystemChannelFlags; |
|
|
SystemChannelFlags = model.SystemChannelFlags; |
|
|
Description = model.Description; |
|
|
Description = model.Description; |
|
|
PremiumSubscriptionCount = model.PremiumSubscriptionCount.GetValueOrDefault(); |
|
|
PremiumSubscriptionCount = model.PremiumSubscriptionCount.GetValueOrDefault(); |
|
|
|
|
|
PreferredLocale = model.PreferredLocale; |
|
|
|
|
|
PreferredCulture = new CultureInfo(PreferredLocale); |
|
|
|
|
|
|
|
|
if (model.Emojis != null) |
|
|
if (model.Emojis != null) |
|
|
{ |
|
|
{ |
|
|