Add missing IThreadUser interface (#2055)

* Implement

* Add IMentionable to RestThreadUser

* Rather move mentionable to interface for consistency.

* Further consistency
This commit is contained in:
Armano den Boef
2022-01-27 14:51:30 +01:00
committed by GitHub
parent b14af1c008
commit 3475bd8d6f
3 changed files with 44 additions and 17 deletions

View File

@@ -0,0 +1,25 @@
using System;
namespace Discord
{
/// <summary>
/// Represents a Discord thread user.
/// </summary>
public interface IThreadUser : IMentionable
{
/// <summary>
/// Gets the <see cref="IThreadChannel"/> this user is in.
/// </summary>
IThreadChannel Thread { get; }
/// <summary>
/// Gets the timestamp for when this user joined this thread.
/// </summary>
DateTimeOffset ThreadJoinedAt { get; }
/// <summary>
/// Gets the guild this thread was created in.
/// </summary>
IGuild Guild { get; }
}
}