|
|
@@ -10,16 +10,14 @@ namespace Discord.WebSocket |
|
|
|
/// <summary> |
|
|
|
/// Represents a thread user received over the gateway. |
|
|
|
/// </summary> |
|
|
|
public class SocketThreadUser : SocketUser, IGuildUser |
|
|
|
public class SocketThreadUser : SocketUser, IThreadUser, IGuildUser |
|
|
|
{ |
|
|
|
/// <summary> |
|
|
|
/// Gets the <see cref="SocketThreadChannel"/> this user is in. |
|
|
|
/// </summary> |
|
|
|
public SocketThreadChannel Thread { get; private set; } |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// Gets the timestamp for when this user joined this thread. |
|
|
|
/// </summary> |
|
|
|
/// <inheritdoc/> |
|
|
|
public DateTimeOffset ThreadJoinedAt { get; private set; } |
|
|
|
|
|
|
|
/// <summary> |
|
|
@@ -180,8 +178,12 @@ namespace Discord.WebSocket |
|
|
|
|
|
|
|
/// <inheritdoc/> |
|
|
|
public Task RemoveTimeOutAsync(RequestOptions options = null) => GuildUser.RemoveTimeOutAsync(options); |
|
|
|
|
|
|
|
/// <inheritdoc/> |
|
|
|
GuildPermissions IGuildUser.GuildPermissions => GuildUser.GuildPermissions; |
|
|
|
IThreadChannel IThreadUser.Thread => Thread; |
|
|
|
|
|
|
|
/// <inheritdoc/> |
|
|
|
IGuild IThreadUser.Guild => Guild; |
|
|
|
|
|
|
|
/// <inheritdoc/> |
|
|
|
IGuild IGuildUser.Guild => Guild; |
|
|
@@ -190,6 +192,9 @@ namespace Discord.WebSocket |
|
|
|
ulong IGuildUser.GuildId => Guild.Id; |
|
|
|
|
|
|
|
/// <inheritdoc/> |
|
|
|
GuildPermissions IGuildUser.GuildPermissions => GuildUser.GuildPermissions; |
|
|
|
|
|
|
|
/// <inheritdoc/> |
|
|
|
IReadOnlyCollection<ulong> IGuildUser.RoleIds => GuildUser.Roles.Select(x => x.Id).ToImmutableArray(); |
|
|
|
|
|
|
|
string IGuildUser.GetGuildAvatarUrl(ImageFormat format, ushort size) => GuildUser.GetGuildAvatarUrl(format, size); |
|
|
|