Browse Source

Initialize lists

pull/1525/head
Paulo 5 years ago
parent
commit
47d5567ade
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net.Core/Entities/Messages/AllowedMentions.cs

+ 2
- 2
src/Discord.Net.Core/Entities/Messages/AllowedMentions.cs View File

@@ -39,7 +39,7 @@ namespace Discord
/// flag of the <see cref="AllowedTypes"/> property. If the flag is set, the value of this property
/// must be <c>null</c> or empty.
/// </summary>
public List<ulong> RoleIds { get; set; }
public List<ulong> RoleIds { get; set; } = new List<ulong>();

/// <summary>
/// Gets or sets the list of all user ids that will be mentioned.
@@ -47,7 +47,7 @@ namespace Discord
/// flag of the <see cref="AllowedTypes"/> property. If the flag is set, the value of this property
/// must be <c>null</c> or empty.
/// </summary>
public List<ulong> UserIds { get; set; }
public List<ulong> UserIds { get; set; } = new List<ulong>();

/// <summary>
/// Initializes a new instance of the <see cref="AllowedMentions"/> class.


Loading…
Cancel
Save