Table of Contents

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 IChannel

The 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 IChannel

The channel to jump to.

Returns

string

A string that contains a URL for jumping to the message in chat.