Search Results for

    Show / Hide Table of Contents

    Class ChannelExtensions

    Inheritance
    Object
    ChannelExtensions
    Namespace: Discord
    Assembly: Discord.Net.Core.dll
    Syntax
    public static class ChannelExtensions : object

    Methods

    | Improve this Doc View Source

    GetChannelType(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.

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2023 3.12.0