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.

Merging

This annotation can be merged if found with other meta-annotations. Keep in mind that a direct annotation overrides all meta-annotations.

Properties

Link copied to clipboard