Table of Contents

Class ThreadHelpers

Namespace
Fluxer.Net
Assembly
Fluxer.Net.dll

Http methods for Channel class.

public static class ThreadHelpers
Inheritance
object
ThreadHelpers

Methods

AddMemberAsync(ThreadChannel, GuildMember, RequestOptions?)

Add a member to the thread.

public static Task AddMemberAsync(this ThreadChannel channel, GuildMember member, RequestOptions? options = null)

Parameters

channel ThreadChannel
member GuildMember
options RequestOptions

Returns

Task

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

channel ThreadChannel
userId ulong
options RequestOptions

Returns

Task

Remarks

Requires ManageThreads or Thread Owner.

ArchiveAsync(ThreadChannel, RequestOptions?)

Update a thread.

public static Task<ThreadChannel> ArchiveAsync(this ThreadChannel channel, RequestOptions? options = null)

Parameters

channel ThreadChannel
options RequestOptions

Returns

Task<ThreadChannel>

ThreadChannel

Remarks

Requires ManageThreads or Thread Owner.

JoinAsync(ThreadChannel, RequestOptions?)

Join a thread.

public static Task JoinAsync(this ThreadChannel channel, RequestOptions? options = null)

Parameters

channel ThreadChannel
options RequestOptions

Returns

Task

Remarks

Requires ViewChannel.

LeaveAsync(ThreadChannel, RequestOptions?)

Leave a thread.

public static Task LeaveAsync(this ThreadChannel channel, RequestOptions? options = null)

Parameters

channel ThreadChannel
options RequestOptions

Returns

Task

Remarks

Requires ViewChannel.

LockAsync(ThreadChannel, RequestOptions?)

Update a thread.

public static Task<ThreadChannel> LockAsync(this ThreadChannel channel, RequestOptions? options = null)

Parameters

channel ThreadChannel
options RequestOptions

Returns

Task<ThreadChannel>

ThreadChannel

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

channel ThreadChannel
req UpdateThreadRequest
options RequestOptions

Returns

Task<ThreadChannel>

ThreadChannel

Remarks

Requires ManageThreads or Thread Owner.

OpenAsync(ThreadChannel, RequestOptions?)

Update a thread.

public static Task<ThreadChannel> OpenAsync(this ThreadChannel channel, RequestOptions? options = null)

Parameters

channel ThreadChannel
options RequestOptions

Returns

Task<ThreadChannel>

ThreadChannel

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

channel ThreadChannel
member GuildMember
options RequestOptions

Returns

Task

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

channel ThreadChannel
userId ulong
options RequestOptions

Returns

Task

Remarks

Requires ManageThreads or Thread Owner.

UnLockAsync(ThreadChannel, RequestOptions?)

Update a thread.

public static Task<ThreadChannel> UnLockAsync(this ThreadChannel channel, RequestOptions? options = null)

Parameters

channel ThreadChannel
options RequestOptions

Returns

Task<ThreadChannel>

ThreadChannel

Remarks

Requires ManageThreads or Thread Owner.