Skip to content

Commit

Permalink
Document None channel_types will allow all types
Browse files Browse the repository at this point in the history
  • Loading branch information
davfsa authored Sep 29, 2021
1 parent 2e6fa77 commit 8e385da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hikari/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ class CommandOption:
channel_types: typing.Optional[typing.Sequence[typing.Union[channels.ChannelType, int]]] = attr.field(
default=None, repr=False
)
"""If a channel type option, the channel types that this option will accept."""
"""The channel types that this option will accept.
If `builtins.None`, then all channel types will be accepted.
"""


@attr_extensions.with_copy
Expand Down

0 comments on commit 8e385da

Please sign in to comment.