Class ChannelTypesAttribute
- Namespace
- DSharpPlus.SlashCommands
- Assembly
- DSharpPlus.SlashCommands.dll
Defines allowed channel types for a channel parameter.
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
public class ChannelTypesAttribute : Attribute
- Inheritance
-
objectAttributeChannelTypesAttribute
Constructors
- ChannelTypesAttribute(params DiscordChannelType[])
Defines allowed channel types for a channel parameter.
Properties
- ChannelTypes
Allowed channel types.