Table of Contents

Class PrivateChannelHelpers

Namespace
Fluxer.Net
Assembly
Fluxer.Net.dll

Http methods for DMChannel and GroupChannel class.

public static class PrivateChannelHelpers
Inheritance
object
PrivateChannelHelpers

Methods

AddUserAsync(GroupChannel, User, RequestOptions?)

Add a user to a group channel.

public static Task AddUserAsync(this GroupChannel channel, User user, RequestOptions? options = null)

Parameters

channel GroupChannel
user User
options RequestOptions

Returns

Task

Remarks

User account only.

AddUserAsync(GroupChannel, ulong, RequestOptions?)

Add a user to a group channel.

public static Task AddUserAsync(this GroupChannel channel, ulong userId, RequestOptions? options = null)

Parameters

channel GroupChannel
userId ulong
options RequestOptions

Returns

Task

Remarks

User account only.

CloseAsync(DMChannel, RequestOptions?)

Close the DM channel.

public static Task CloseAsync(this DMChannel channel, RequestOptions? options = null)

Parameters

channel DMChannel
options RequestOptions

Returns

Task

EditNameAsync(GroupChannel, string, RequestOptions?)

Edit the name of the group channel.

public static Task EditNameAsync(this GroupChannel channel, string name, RequestOptions? options = null)

Parameters

channel GroupChannel
name string
options RequestOptions

Returns

Task

Remarks

Requires group ownership.

RemoveUserAsync(GroupChannel, User, RequestOptions?)

Remove a user from the group channel.

public static Task RemoveUserAsync(this GroupChannel channel, User user, RequestOptions? options = null)

Parameters

channel GroupChannel
user User
options RequestOptions

Returns

Task

Remarks

User account only.

RemoveUserAsync(GroupChannel, ulong, RequestOptions?)

Remove a user from the group channel.

public static Task RemoveUserAsync(this GroupChannel channel, ulong userId, RequestOptions? options = null)

Parameters

channel GroupChannel
userId ulong
options RequestOptions

Returns

Task

Remarks

User account only.

TransferOwnershipAsync(GroupChannel, User, RequestOptions?)

Change ownership of the group channel.

public static Task TransferOwnershipAsync(this GroupChannel channel, User user, RequestOptions? options = null)

Parameters

channel GroupChannel
user User
options RequestOptions

Returns

Task

Remarks

Requires group ownership.

TransferOwnershipAsync(GroupChannel, ulong, RequestOptions?)

Change ownership of the group channel.

public static Task TransferOwnershipAsync(this GroupChannel channel, ulong userId, RequestOptions? options = null)

Parameters

channel GroupChannel
userId ulong
options RequestOptions

Returns

Task

Remarks

Requires group ownership.