Class ChannelTypesAttribute
- Namespace
- DSharpPlus.Commands.ArgumentModifiers
- Assembly
- DSharpPlus.Commands.dll
Specifies what channel types the parameter supports.
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
public sealed class ChannelTypesAttribute : ParameterCheckAttribute
- Inheritance
-
ChannelTypesAttribute
Constructors
- ChannelTypesAttribute(params DiscordChannelType[])
Specifies what channel types the parameter supports.
Properties
- ChannelTypes
Gets the channel types allowed for this parameter.