Class ChannelTypesAttribute
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Specify the target channel types for a Channel option.
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public sealed class ChannelTypesAttribute : Attribute
- Inheritance
-
ChannelTypesAttribute
- Inherited Members
Constructors
ChannelTypesAttribute(params ChannelType[])
Specify the target channel types for a Channel option.
public ChannelTypesAttribute(params ChannelType[] channelTypes)
Parameters
channelTypes
ChannelType[]The allowed channel types for this option.
Properties
ChannelTypes
Gets the allowed channel types for this option.
public IReadOnlyCollection<ChannelType> ChannelTypes { get; }