Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ These changes are available on the `master` branch, but have not yet been releas
([#2448](https://github.com/Pycord-Development/pycord/pull/2448))
- Fixed missing `application_id` in `Entitlement.delete`.
([#2458](https://github.com/Pycord-Development/pycord/pull/2458))
- Fixed `AttributeError` in `register_commands` when a `discord.Option` was constructed
with its `input_type` set to `None`
([#2464](https://github.com/Pycord-Development/pycord/pull/2464))

### Changed

Expand Down
3 changes: 3 additions & 0 deletions discord/commands/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ def __init__(
"description_localizations", MISSING
)

if input_type is None:
raise TypeError("input_type cannot be NoneType.")

def to_dict(self) -> dict:
as_dict = {
"name": self.name,
Expand Down