Class ThreadHelpers
- Namespace
- Fluxer.Net
- Assembly
- Fluxer.Net.dll
Http methods for Channel class.
public static class ThreadHelpers
- Inheritance
-
objectThreadHelpers
Methods
AddMemberAsync(ThreadChannel, GuildMember, RequestOptions?)
Add a member to the thread.
public static Task AddMemberAsync(this ThreadChannel channel, GuildMember member, RequestOptions? options = null)
Parameters
channelThreadChannelmemberGuildMemberoptionsRequestOptions
Returns
Remarks
Requires ManageThreads or Thread Owner.
AddMemberAsync(ThreadChannel, ulong, RequestOptions?)
Add a member to the thread.
public static Task AddMemberAsync(this ThreadChannel channel, ulong userId, RequestOptions? options = null)
Parameters
channelThreadChanneluserIdulongoptionsRequestOptions
Returns
Remarks
Requires ManageThreads or Thread Owner.
ArchiveAsync(ThreadChannel, RequestOptions?)
Update a thread.
public static Task<ThreadChannel> ArchiveAsync(this ThreadChannel channel, RequestOptions? options = null)
Parameters
channelThreadChanneloptionsRequestOptions
Returns
Remarks
Requires ManageThreads or Thread Owner.
JoinAsync(ThreadChannel, RequestOptions?)
Join a thread.
public static Task JoinAsync(this ThreadChannel channel, RequestOptions? options = null)
Parameters
channelThreadChanneloptionsRequestOptions
Returns
Remarks
Requires ViewChannel.
LeaveAsync(ThreadChannel, RequestOptions?)
Leave a thread.
public static Task LeaveAsync(this ThreadChannel channel, RequestOptions? options = null)
Parameters
channelThreadChanneloptionsRequestOptions
Returns
Remarks
Requires ViewChannel.
LockAsync(ThreadChannel, RequestOptions?)
Update a thread.
public static Task<ThreadChannel> LockAsync(this ThreadChannel channel, RequestOptions? options = null)
Parameters
channelThreadChanneloptionsRequestOptions
Returns
Remarks
Requires ManageThreads or Thread Owner.
ModifyAsync(ThreadChannel, UpdateThreadRequest, RequestOptions?)
Update a thread.
public static Task<ThreadChannel> ModifyAsync(this ThreadChannel channel, UpdateThreadRequest req, RequestOptions? options = null)
Parameters
channelThreadChannelreqUpdateThreadRequestoptionsRequestOptions
Returns
Remarks
Requires ManageThreads or Thread Owner.
OpenAsync(ThreadChannel, RequestOptions?)
Update a thread.
public static Task<ThreadChannel> OpenAsync(this ThreadChannel channel, RequestOptions? options = null)
Parameters
channelThreadChanneloptionsRequestOptions
Returns
Remarks
Requires ManageThreads or Thread Owner.
RemoveMemberAsync(ThreadChannel, GuildMember, RequestOptions?)
Remove a member from a thread.
public static Task RemoveMemberAsync(this ThreadChannel channel, GuildMember member, RequestOptions? options = null)
Parameters
channelThreadChannelmemberGuildMemberoptionsRequestOptions
Returns
Remarks
Requires ManageThreads or Thread Owner.
RemoveMemberAsync(ThreadChannel, ulong, RequestOptions?)
Remove a member from a thread.
public static Task RemoveMemberAsync(this ThreadChannel channel, ulong userId, RequestOptions? options = null)
Parameters
channelThreadChanneluserIdulongoptionsRequestOptions
Returns
Remarks
Requires ManageThreads or Thread Owner.
UnLockAsync(ThreadChannel, RequestOptions?)
Update a thread.
public static Task<ThreadChannel> UnLockAsync(this ThreadChannel channel, RequestOptions? options = null)
Parameters
channelThreadChanneloptionsRequestOptions
Returns
Remarks
Requires ManageThreads or Thread Owner.