Search Results for

    Show / Hide Table of Contents

    Class ChannelTypesAttribute

    Specify the target channel types for a Channel option.

    Inheritance
    Object
    ChannelTypesAttribute
    Namespace: Discord.Interactions
    Assembly: Discord.Net.Interactions.dll
    Syntax
    public sealed class ChannelTypesAttribute : Attribute

    Constructors

    | Improve this Doc View Source

    ChannelTypesAttribute(ChannelType[])

    Specify the target channel types for a Channel option.

    Declaration
    public ChannelTypesAttribute(params ChannelType[] channelTypes)
    Parameters
    Type Name Description
    ChannelType[] channelTypes

    The allowed channel types for this option.

    Properties

    | Improve this Doc View Source

    ChannelTypes

    Gets the allowed channel types for this option.

    Declaration
    public IReadOnlyCollection<ChannelType> ChannelTypes { get; }
    Property Value
    Type Description
    IReadOnlyCollection<ChannelType>

    Theme

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