Class ChannelTypesAttribute
Defines allowed channel types for a channel parameter.
Inheritance
System.Object
System.Attribute
ChannelTypesAttribute
Namespace: DisCatSharp.ApplicationCommands.Attributes
Assembly: DisCatSharp.ApplicationCommands.dll
Syntax
[AttributeUsage(AttributeTargets.Parameter)]
public class ChannelTypesAttribute : Attribute
Constructors
| Improve this Doc View SourceChannelTypesAttribute(ChannelType[])
Defines allowed channel types for a channel parameter.
Declaration
public ChannelTypesAttribute(params ChannelType[] channelTypes)
Parameters
Type | Name | Description |
---|---|---|
ChannelType[] | channelTypes | The channel types to allow. |
Properties
| Improve this Doc View SourceChannelTypes
Allowed channel types.
Declaration
public IEnumerable<ChannelType> ChannelTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ChannelType> |