|
|
@@ -33,6 +33,8 @@ namespace Discord.WebSocket |
|
|
|
public bool IsMentionable { get; private set; } |
|
|
|
/// <inheritdoc /> |
|
|
|
public string Name { get; private set; } |
|
|
|
/// <inheritdoc/> |
|
|
|
public Emoji Emoji { get; private set; } |
|
|
|
/// <inheritdoc /> |
|
|
|
public string Icon { get; private set; } |
|
|
|
/// <inheritdoc /> |
|
|
@@ -74,7 +76,6 @@ namespace Discord.WebSocket |
|
|
|
internal void Update(ClientState state, Model model) |
|
|
|
{ |
|
|
|
Name = model.Name; |
|
|
|
Icon = model.Icon; |
|
|
|
IsHoisted = model.Hoist; |
|
|
|
IsManaged = model.Managed; |
|
|
|
IsMentionable = model.Mentionable; |
|
|
@@ -83,6 +84,16 @@ namespace Discord.WebSocket |
|
|
|
Permissions = new GuildPermissions(model.Permissions); |
|
|
|
if (model.Tags.IsSpecified) |
|
|
|
Tags = model.Tags.Value.ToEntity(); |
|
|
|
|
|
|
|
if (model.Icon.IsSpecified) |
|
|
|
{ |
|
|
|
Icon = model.Icon.Value; |
|
|
|
} |
|
|
|
|
|
|
|
if (model.Emoji.IsSpecified) |
|
|
|
{ |
|
|
|
Emoji = new Emoji(model.Emoji.Value); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc /> |
|
|
|