Class PrivateChannelHelpers
- Namespace
- Fluxer.Net
- Assembly
- Fluxer.Net.dll
Http methods for DMChannel and GroupChannel class.
public static class PrivateChannelHelpers
- Inheritance
-
objectPrivateChannelHelpers
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
channelGroupChanneluserUseroptionsRequestOptions
Returns
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
channelGroupChanneluserIdulongoptionsRequestOptions
Returns
Remarks
User account only.
CloseAsync(DMChannel, RequestOptions?)
Close the DM channel.
public static Task CloseAsync(this DMChannel channel, RequestOptions? options = null)
Parameters
channelDMChanneloptionsRequestOptions
Returns
EditNameAsync(GroupChannel, string, RequestOptions?)
Edit the name of the group channel.
public static Task EditNameAsync(this GroupChannel channel, string name, RequestOptions? options = null)
Parameters
channelGroupChannelnamestringoptionsRequestOptions
Returns
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
channelGroupChanneluserUseroptionsRequestOptions
Returns
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
channelGroupChanneluserIdulongoptionsRequestOptions
Returns
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
channelGroupChanneluserUseroptionsRequestOptions
Returns
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
channelGroupChanneluserIdulongoptionsRequestOptions
Returns
Remarks
Requires group ownership.