Class PrivateChannelHelpers
Http methods for DMChannel and GroupChannel class.
public static class PrivateChannelHelpers
- Inheritance
-
objectPrivateChannelHelpers
Methods
AddUserAsync(GroupChannel, User)
public static Task AddUserAsync(this GroupChannel channel, User user)
Parameters
channelGroupChanneluserUser
Returns
AddUserAsync(GroupChannel, ulong)
public static Task AddUserAsync(this GroupChannel channel, ulong userId)
Parameters
channelGroupChanneluserIdulong
Returns
CloseAsync(DMChannel)
Close the DM channel.
public static Task CloseAsync(this DMChannel channel)
Parameters
channelDMChannel
Returns
EditNameAsync(GroupChannel, string)
Edit the name of the group channel.
public static Task EditNameAsync(this GroupChannel channel, string name)
Parameters
channelGroupChannelnamestring
Returns
Remarks
Requires group ownership.
RemoveUserAsync(GroupChannel, User)
public static Task RemoveUserAsync(this GroupChannel channel, User user)
Parameters
channelGroupChanneluserUser
Returns
RemoveUserAsync(GroupChannel, ulong)
public static Task RemoveUserAsync(this GroupChannel channel, ulong userId)
Parameters
channelGroupChanneluserIdulong
Returns
TransferOwnershipAsync(GroupChannel, User)
Change ownership of the group channel.
public static Task TransferOwnershipAsync(this GroupChannel channel, User user)
Parameters
channelGroupChanneluserUser
Returns
Remarks
Requires group ownership.
TransferOwnershipAsync(GroupChannel, ulong)
Change ownership of the group channel.
public static Task TransferOwnershipAsync(this GroupChannel channel, ulong userId)
Parameters
channelGroupChanneluserIdulong
Returns
Remarks
Requires group ownership.