Class ChannelExtensions
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
Provides extension methods for IChannel.
public static class ChannelExtensions
- Inheritance
-
ChannelExtensions
- Inherited Members
Methods
GetChannelType(IChannel)
Attempts to get the ChannelType based off of the channel's interfaces.
public static ChannelType? GetChannelType(this IChannel channel)
Parameters
channel
IChannelThe channel to get the type of.
Returns
- ChannelType?
The ChannelType of the channel if found, otherwise
null
.
GetJumpUrl(IChannel)
Gets a URL that jumps to the channel.
public static string GetJumpUrl(this IChannel channel)
Parameters
channel
IChannelThe channel to jump to.
Returns
- string
A string that contains a URL for jumping to the message in chat.