| @@ -7,7 +7,7 @@ namespace Discord | |||||
| /// These describe what the activity payload includes. | /// These describe what the activity payload includes. | ||||
| /// </summary> | /// </summary> | ||||
| [Flags] | [Flags] | ||||
| public enum ActivityFlag | |||||
| public enum ActivityProperties | |||||
| { | { | ||||
| /// <summary> | /// <summary> | ||||
| /// Indicates that no actions on this activity can be taken. | /// Indicates that no actions on this activity can be taken. | ||||
| @@ -13,7 +13,7 @@ namespace Discord | |||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public ActivityType Type { get; internal set; } | public ActivityType Type { get; internal set; } | ||||
| /// <inheritdoc/> | /// <inheritdoc/> | ||||
| public ActivityFlag Flags { get; internal set; } | |||||
| public ActivityProperties Flags { get; internal set; } | |||||
| internal Game() { } | internal Game() { } | ||||
| /// <summary> | /// <summary> | ||||
| @@ -23,11 +23,11 @@ namespace Discord | |||||
| /// Gets the flags that are relevant to this activity. | /// Gets the flags that are relevant to this activity. | ||||
| /// </summary> | /// </summary> | ||||
| /// <remarks> | /// <remarks> | ||||
| /// This value is determined by bitwise OR-ing <see cref="ActivityFlag"/> values together. | |||||
| /// This value is determined by bitwise OR-ing <see cref="ActivityProperties"/> values together. | |||||
| /// </remarks> | /// </remarks> | ||||
| /// <returns> | /// <returns> | ||||
| /// The value of flags for this activity. | /// The value of flags for this activity. | ||||
| /// </returns> | /// </returns> | ||||
| ActivityFlag Flags { get; } | |||||
| ActivityProperties Flags { get; } | |||||
| } | } | ||||
| } | } | ||||
| @@ -116,12 +116,12 @@ namespace Discord | |||||
| /// Gets the flags that are applied to a user's account. | /// Gets the flags that are applied to a user's account. | ||||
| /// </summary> | /// </summary> | ||||
| /// <remarks> | /// <remarks> | ||||
| /// This value is determined by bitwise OR-ing <see cref="UserFlag"/> values together. | |||||
| /// This value is determined by bitwise OR-ing <see cref="UserProperties"/> values together. | |||||
| /// </remarks> | /// </remarks> | ||||
| /// <returns> | /// <returns> | ||||
| /// The value of flags for this user. | /// The value of flags for this user. | ||||
| /// </returns> | /// </returns> | ||||
| UserFlag Flags { get; } | |||||
| UserProperties Flags { get; } | |||||
| /// <summary> | /// <summary> | ||||
| /// Gets the type of Nitro subscription that is active on this user's account. | /// Gets the type of Nitro subscription that is active on this user's account. | ||||
| /// </summary> | /// </summary> | ||||
| @@ -3,7 +3,7 @@ using System; | |||||
| namespace Discord | namespace Discord | ||||
| { | { | ||||
| [Flags] | [Flags] | ||||
| public enum UserFlag | |||||
| public enum UserProperties | |||||
| { | { | ||||
| /// <summary> | /// <summary> | ||||
| /// Default value for flags, when none are given to an account. | /// Default value for flags, when none are given to an account. | ||||
| @@ -34,7 +34,7 @@ namespace Discord.API | |||||
| [JsonProperty("session_id")] | [JsonProperty("session_id")] | ||||
| public Optional<string> SessionId { get; set; } | public Optional<string> SessionId { get; set; } | ||||
| [JsonProperty("Flags")] | [JsonProperty("Flags")] | ||||
| public Optional<ActivityFlag> Flags { get; set; } | |||||
| public Optional<ActivityProperties> Flags { get; set; } | |||||
| [OnError] | [OnError] | ||||
| internal void OnError(StreamingContext context, ErrorContext errorContext) | internal void OnError(StreamingContext context, ErrorContext errorContext) | ||||
| @@ -24,7 +24,7 @@ namespace Discord.API | |||||
| [JsonProperty("mfa_enabled")] | [JsonProperty("mfa_enabled")] | ||||
| public Optional<bool> MfaEnabled { get; set; } | public Optional<bool> MfaEnabled { get; set; } | ||||
| [JsonProperty("flags")] | [JsonProperty("flags")] | ||||
| public Optional<UserFlag> Flags { get; set; } | |||||
| public Optional<int> Flags { get; set; } | |||||
| [JsonProperty("premium_type")] | [JsonProperty("premium_type")] | ||||
| public Optional<PremiumType> PremiumType { get; set; } | public Optional<PremiumType> PremiumType { get; set; } | ||||
| [JsonProperty("locale")] | [JsonProperty("locale")] | ||||
| @@ -33,7 +33,7 @@ namespace Discord.Rest | |||||
| /// <inheritdoc /> | /// <inheritdoc /> | ||||
| public virtual bool IsWebhook => false; | public virtual bool IsWebhook => false; | ||||
| /// <inheritdoc /> | /// <inheritdoc /> | ||||
| public UserFlag Flags { get; private set; } | |||||
| public UserProperties Flags { get; private set; } | |||||
| /// <inheritdoc /> | /// <inheritdoc /> | ||||
| public PremiumType? PremiumType { get; private set; } | public PremiumType? PremiumType { get; private set; } | ||||
| /// <inheritdoc /> | /// <inheritdoc /> | ||||
| @@ -66,7 +66,7 @@ namespace Discord.Rest | |||||
| if (model.Username.IsSpecified) | if (model.Username.IsSpecified) | ||||
| Username = model.Username.Value; | Username = model.Username.Value; | ||||
| if (model.Flags.IsSpecified) | if (model.Flags.IsSpecified) | ||||
| Flags = model.Flags.Value; | |||||
| Flags = (UserProperties) model.Flags.Value; | |||||
| if (model.PremiumType.IsSpecified) | if (model.PremiumType.IsSpecified) | ||||
| PremiumType = model.PremiumType.Value; | PremiumType = model.PremiumType.Value; | ||||
| if (model.Locale.IsSpecified) | if (model.Locale.IsSpecified) | ||||
| @@ -39,7 +39,7 @@ namespace Discord.WebSocket | |||||
| /// <inheritdoc /> | /// <inheritdoc /> | ||||
| public UserStatus Status => Presence.Status; | public UserStatus Status => Presence.Status; | ||||
| /// <inheritdoc /> | /// <inheritdoc /> | ||||
| public UserFlag Flags { get; internal set; } | |||||
| public UserProperties Flags { get; internal set; } | |||||
| /// <inheritdoc /> | /// <inheritdoc /> | ||||
| public PremiumType? PremiumType { get; internal set; } | public PremiumType? PremiumType { get; internal set; } | ||||
| /// <inheritdoc /> | /// <inheritdoc /> | ||||
| @@ -81,9 +81,9 @@ namespace Discord.WebSocket | |||||
| Username = model.Username.Value; | Username = model.Username.Value; | ||||
| hasChanges = true; | hasChanges = true; | ||||
| } | } | ||||
| if (model.Flags.IsSpecified && model.Flags.Value != Flags) | |||||
| if (model.Flags.IsSpecified ) // && model.Flags.Value != Flags) | |||||
| { | { | ||||
| Flags = model.Flags.Value; | |||||
| Flags = (UserProperties) model.Flags.Value; | |||||
| hasChanges = true; | hasChanges = true; | ||||
| } | } | ||||
| if (model.PremiumType.IsSpecified && model.PremiumType.Value != PremiumType) | if (model.PremiumType.IsSpecified && model.PremiumType.Value != PremiumType) | ||||