Browse Source

Update from release/3.x

pull/1923/head
quin lynch 3 years ago
parent
commit
db201df6fb
3 changed files with 0 additions and 6 deletions
  1. +0
    -1
      src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs
  2. +0
    -2
      src/Discord.Net.WebSocket/Entities/Interaction/SocketInteraction.cs
  3. +0
    -3
      src/Discord.Net.WebSocket/Entities/Roles/SocketRole.cs

+ 0
- 1
src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs View File

@@ -365,7 +365,6 @@ namespace Discord.Rest
Preconditions.AtMost(allowedMentions?.RoleIds?.Count ?? 0, 100, nameof(allowedMentions.RoleIds), "A max of 100 role Ids are allowed.");
Preconditions.AtMost(allowedMentions?.UserIds?.Count ?? 0, 100, nameof(allowedMentions.UserIds), "A max of 100 user Ids are allowed.");
Preconditions.AtMost(embeds.Length, 10, nameof(embeds), "A max of 10 embeds are allowed.");
Preconditions.NotNullOrEmpty(filename, nameof(filename), "File Name must not be empty or null");

foreach(var attachment in attachments)
{


+ 0
- 2
src/Discord.Net.WebSocket/Entities/Interaction/SocketInteraction.cs View File

@@ -55,8 +55,6 @@ namespace Discord.WebSocket
/// </remarks>
public abstract bool HasResponded { get; internal set; }

internal abstract bool _hasResponded { get; set; }

/// <summary>
/// <see langword="true"/> if the token is valid for replying to, otherwise <see langword="false"/>.
/// </summary>


+ 0
- 3
src/Discord.Net.WebSocket/Entities/Roles/SocketRole.cs View File

@@ -38,8 +38,6 @@ namespace Discord.WebSocket
/// <inheritdoc />
public string Icon { get; private set; }
/// <inheritdoc />
public string Icon { get; private set; }
/// <inheritdoc />
public GuildPermissions Permissions { get; private set; }
/// <inheritdoc />
public int Position { get; private set; }
@@ -78,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;


Loading…
Cancel
Save