Table of Contents

Class ThreadUser

Namespace
NetCord
Assembly
NetCord.dll

Represents a user that has joined a thread.

public class ThreadUser : ClientEntity, IEntity, IEquatable<Entity>, ISpanFormattable, IFormattable, IJsonModel<JsonThreadUser>
Inheritance
ThreadUser
Implements
Derived
Inherited Members

Constructors

ThreadUser(JsonThreadUser, RestClient)

Represents a user that has joined a thread.

public ThreadUser(JsonThreadUser jsonModel, RestClient client)

Parameters

jsonModel JsonThreadUser
client RestClient

Properties

Flags

The user's thread settings, currently only used for notifications.

public ThreadUserFlags Flags { get; }

Property Value

ThreadUserFlags

Id

The thread user's ID.

public override ulong Id { get; }

Property Value

ulong

JoinTimestamp

The timestamp at which the user last joined the thread.

public DateTimeOffset JoinTimestamp { get; }

Property Value

DateTimeOffset

ThreadId

The ID corresponding to the joined thread.

public ulong ThreadId { get; }

Property Value

ulong

Methods

ToString()

public override string ToString()

Returns

string

TryFormat(Span<char>, out int, ReadOnlySpan<char>, IFormatProvider?)

public override bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider? provider = null)

Parameters

destination Span<char>
charsWritten int
format ReadOnlySpan<char>
provider IFormatProvider

Returns

bool