Class ChannelTypesAttribute
Specify the target channel types for a Channel option.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public sealed class ChannelTypesAttribute : Attribute
Constructors
| Improve this Doc View SourceChannelTypesAttribute(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 SourceChannelTypes
Gets the allowed channel types for this option.
Declaration
public IReadOnlyCollection<ChannelType> ChannelTypes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<ChannelType> |