Class ChannelExtensions
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public static class ChannelExtensions : object
Methods
| Improve this Doc View SourceGetChannelType(IChannel)
Attempts to get the ChannelType based off of the channel's interfaces.
Declaration
public static ChannelType? GetChannelType(this IChannel channel)
Parameters
Type | Name | Description |
---|---|---|
IChannel | channel | The channel to get the type of. |
Returns
Type | Description |
---|---|
Nullable<ChannelType> | The ChannelType of the channel if found, otherwise null. |