Class GuildThreadUser
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
jsonModelJsonThreadUserclientRestClient
Properties
GuildUser
The thread user's PartialGuildUser object.
public PartialGuildUser GuildUser { get; }
Property Value
Methods
DeleteAsync(RestRequestProperties?, CancellationToken)
Removes a user from a thread.
public Task DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
propertiesRestRequestPropertiesOptional properties to customize the request, can be null.
cancellationTokenCancellationTokenA token that can be used to cancel the operation before it completes.