Skip to content

Commit

Permalink
Update discord/ui/select.py
Browse files Browse the repository at this point in the history
Co-authored-by: NeloBlivion <41271523+NeloBlivion@users.noreply.github.com>
  • Loading branch information
Lulalaby and NeloBlivion committed Oct 30, 2022
1 parent 773321e commit b856289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/ui/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def channel_types(self) -> list[ChannelType]:
def channel_types(self, value: list[ChannelType]):
if self._underlying.type is not ComponentType.channel_select:
raise InvalidArgument("channel_types can only be set on channel selects")
self._underlying.disabled = bool(value)
self._underlying.channel_types = value

@property
def options(self) -> list[SelectOption]:
Expand Down

0 comments on commit b856289

Please sign in to comment.