ChannelTypes

annotation class ChannelTypes(val value: ChannelType)(source)

Sets the desired channel types for this parameter.

This works for annotated commands as well as code-declared commands

You can alternatively use a specific channel type, such as TextChannel to automatically restrict the channel type.

Properties

Link copied to clipboard