| @@ -27,7 +27,9 @@ namespace Discord.API | |||||
| [JsonProperty("mention_everyone")] | [JsonProperty("mention_everyone")] | ||||
| public Optional<bool> MentionEveryone { get; set; } | public Optional<bool> MentionEveryone { get; set; } | ||||
| [JsonProperty("mentions")] | [JsonProperty("mentions")] | ||||
| public Optional<User[]> Mentions { get; set; } | |||||
| public Optional<User[]> UserMentions { get; set; } | |||||
| [JsonProperty("mention_roles")] | |||||
| public Optional<ulong[]> RoleMentions { get; set; } | |||||
| [JsonProperty("attachments")] | [JsonProperty("attachments")] | ||||
| public Optional<Attachment[]> Attachments { get; set; } | public Optional<Attachment[]> Attachments { get; set; } | ||||
| [JsonProperty("embeds")] | [JsonProperty("embeds")] | ||||
| @@ -86,9 +86,9 @@ namespace Discord.Rest | |||||
| } | } | ||||
| ImmutableArray<IUser> mentions = ImmutableArray.Create<IUser>(); | ImmutableArray<IUser> mentions = ImmutableArray.Create<IUser>(); | ||||
| if (model.Mentions.IsSpecified) | |||||
| if (model.UserMentions.IsSpecified) | |||||
| { | { | ||||
| var value = model.Mentions.Value; | |||||
| var value = model.UserMentions.Value; | |||||
| if (value.Length > 0) | if (value.Length > 0) | ||||
| { | { | ||||
| var newMentions = ImmutableArray.CreateBuilder<IUser>(value.Length); | var newMentions = ImmutableArray.CreateBuilder<IUser>(value.Length); | ||||
| @@ -87,9 +87,9 @@ namespace Discord.WebSocket | |||||
| } | } | ||||
| ImmutableArray<IUser> mentions = ImmutableArray.Create<IUser>(); | ImmutableArray<IUser> mentions = ImmutableArray.Create<IUser>(); | ||||
| if (model.Mentions.IsSpecified) | |||||
| if (model.UserMentions.IsSpecified) | |||||
| { | { | ||||
| var value = model.Mentions.Value; | |||||
| var value = model.UserMentions.Value; | |||||
| if (value.Length > 0) | if (value.Length > 0) | ||||
| { | { | ||||
| var newMentions = ImmutableArray.CreateBuilder<IUser>(value.Length); | var newMentions = ImmutableArray.CreateBuilder<IUser>(value.Length); | ||||