Browse Source

Rather move mentionable to interface for consistency.

pull/2055/head
Armano den Boef 3 years ago
parent
commit
137802a027
2 changed files with 5 additions and 2 deletions
  1. +4
    -1
      src/Discord.Net.Core/Entities/Users/IThreadUser.cs
  2. +1
    -1
      src/Discord.Net.Rest/Entities/Users/RestThreadUser.cs

+ 4
- 1
src/Discord.Net.Core/Entities/Users/IThreadUser.cs View File

@@ -2,7 +2,7 @@ using System;


namespace Discord namespace Discord
{ {
public interface IThreadUser
public interface IThreadUser : IMentionable
{ {
/// <summary> /// <summary>
/// Gets the <see cref="IThreadChannel"/> this user is in. /// Gets the <see cref="IThreadChannel"/> this user is in.
@@ -13,5 +13,8 @@ namespace Discord
/// Gets the timestamp for when this user joined this thread. /// Gets the timestamp for when this user joined this thread.
/// </summary> /// </summary>
DateTimeOffset ThreadJoinedAt { get; } DateTimeOffset ThreadJoinedAt { get; }

/// <inheritdoc />
string Mention { get; }
} }
} }

+ 1
- 1
src/Discord.Net.Rest/Entities/Users/RestThreadUser.cs View File

@@ -7,7 +7,7 @@ namespace Discord.Rest
/// <summary> /// <summary>
/// Represents a thread user received over the REST api. /// Represents a thread user received over the REST api.
/// </summary> /// </summary>
public class RestThreadUser : RestEntity<ulong>, IThreadUser, IMentionable
public class RestThreadUser : RestEntity<ulong>, IThreadUser
{ {
/// <inheritdoc /> /// <inheritdoc />
public IThreadChannel Thread { get; } public IThreadChannel Thread { get; }


Loading…
Cancel
Save