Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
tandemdude committed Apr 17, 2023
1 parent 91477b0 commit 1052432
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/source/changelogs/v2-changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ Below are all the changelogs for the stable versions of hikari-lightbulb (versio
Version 2.3.3
=============

**Other Changes**

- ``bucket`` attribute has been added to the :obj:`~lightbulb.errors.MaxConcurrencyLimitReached` class.

- Fix button navigator due to hikari breaking changes.

- Autocomplete callbacks may no longer return instances of ``hikari.CommandChoice` as it has been deprecated. Use ``AutocompleteChoiceBuilder`` instead.

Version 2.3.2
=============

Expand Down
2 changes: 0 additions & 2 deletions lightbulb/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1268,8 +1268,6 @@ def convert_response_value(
if isinstance(val, (str, int, float)):
return hikari.impl.AutocompleteChoiceBuilder(name=str(val), value=val)

return hikari.impl.AutocompleteChoiceBuilder(name=val.name, value=val.value)

return val

resp_to_send: t.List[hikari.api.AutocompleteChoiceBuilder] = []
Expand Down

0 comments on commit 1052432

Please sign in to comment.