internal DiscordUserGuild(DiscordApiData data) : base(data) { Name = data.GetString("name"); IsOwner = data.GetBoolean("owner").Value; string iconHash = data.GetString("icon"); if (iconHash != null) { Icon = DiscordCdnUrl.ForGuildIcon(Id, iconHash); } long permissions = data.GetInt64("permissions").Value; Permissions = (DiscordPermission)permissions; }
internal DiscordActivityTimestamps(DiscordApiData data) { Start = data.GetInt64("start"); End = data.GetInt64("end"); }