Class GuildThread
- Namespace
- NetCord
- Assembly
- NetCord.dll
public abstract class GuildThread : TextGuildChannel, IEquatable<Entity>, IJsonModel<JsonChannel>, IInteractionChannel, IGuildChannel, INamedChannel, IEntity, ISpanFormattable, IFormattable
- Inheritance
-
GuildThread
- Implements
-
- Derived
-
- Inherited Members
-
Constructors
GuildThread(JsonChannel, RestClient)
protected GuildThread(JsonChannel jsonModel, RestClient client)
Parameters
jsonModel
JsonChannel
client
RestClient
Properties
CurrentUser
public ThreadCurrentUser? CurrentUser { get; }
Property Value
- ThreadCurrentUser
MessageCount
public int MessageCount { get; }
Property Value
- int
public GuildThreadMetadata Metadata { get; }
Property Value
- GuildThreadMetadata
OwnerId
public ulong OwnerId { get; }
Property Value
- ulong
TotalMessageSent
public int TotalMessageSent { get; }
Property Value
- int
UserCount
public int UserCount { get; }
Property Value
- int
Methods
AddUserAsync(ulong, RestRequestProperties?, CancellationToken)
public Task AddUserAsync(ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
userId
ulong
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task
CreateFromJson(JsonChannel, RestClient)
public static GuildThread CreateFromJson(JsonChannel jsonChannel, RestClient client)
Parameters
jsonChannel
JsonChannel
client
RestClient
Returns
- GuildThread
DeleteAsync(RestRequestProperties?, CancellationToken)
public Task<GuildThread> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<GuildThread>
DeleteUserAsync(ulong, RestRequestProperties?, CancellationToken)
public Task DeleteUserAsync(ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
userId
ulong
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task
GetAsync(RestRequestProperties?, CancellationToken)
public Task<GuildThread> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<GuildThread>
GetUserAsync(ulong, bool, RestRequestProperties?, CancellationToken)
public Task<ThreadUser> GetUserAsync(ulong userId, bool withGuildUser = false, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
userId
ulong
withGuildUser
bool
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<ThreadUser>
public IAsyncEnumerable<ThreadUser> GetUsersAsync(OptionalGuildUsersPaginationProperties? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
paginationProperties
OptionalGuildUsersPaginationProperties
properties
RestRequestProperties
Returns
- IAsyncEnumerable<ThreadUser>
JoinAsync(RestRequestProperties?, CancellationToken)
public Task JoinAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task
LeaveAsync(RestRequestProperties?, CancellationToken)
public Task LeaveAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task
ModifyAsync(Action<GuildChannelOptions>, RestRequestProperties?, CancellationToken)
public Task<GuildThread> ModifyAsync(Action<GuildChannelOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
action
Action<GuildChannelOptions>
properties
RestRequestProperties
cancellationToken
CancellationToken
Returns
- Task<GuildThread>