Table of Contents

Class GuildThreadUser

Namespace
NetCord.Rest
Assembly
NetCord.dll

Represents a ThreadUser with an included user object.

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

Constructors

GuildThreadUser(JsonThreadUser, RestClient)

Represents a ThreadUser with an included user object.

public GuildThreadUser(JsonThreadUser jsonModel, RestClient client)

Parameters

jsonModel JsonThreadUser
client RestClient

Properties

GuildUser

The thread user's PartialGuildUser object.

public PartialGuildUser GuildUser { get; }

Property Value

PartialGuildUser

Methods

DeleteAsync(RestRequestProperties?, CancellationToken)

Removes a user from a thread.

public Task DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties

Optional properties to customize the request, can be null.

cancellationToken CancellationToken

A token that can be used to cancel the operation before it completes.

Returns

Task