Skip to content

Commit

Permalink
fix: _bytes_to_base64_data not defined (#2185)
Browse files Browse the repository at this point in the history
* fix: _bytes_to_base64_data isn't defined

* Add changelog entry

---------

Signed-off-by: Middledot <[email protected]>
Co-authored-by: Middledot <[email protected]>
  • Loading branch information
llamaair and Middledot authored Oct 30, 2023
1 parent 6888b90 commit bbb1e32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ These changes are available on the `master` branch, but have not yet been releas
([#2156](https://github.com/Pycord-Development/pycord/pull/2156))
- Fixed `ScheduledEvent.creator_id` returning `str` instead of `int`.
([#2162](https://github.com/Pycord-Development/pycord/pull/2162))
- Fixed `_bytes_to_base64_data` not defined.
([#2185](https://github.com/Pycord-Development/pycord/pull/2185))
- Fixed type-hinting of `values` argument of `basic_autocomplete` to include
type-hinting of `Iterable[OptionChoice]`.
([#2164](https://github.com/Pycord-Development/pycord/pull/2164))
Expand Down
2 changes: 1 addition & 1 deletion discord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -2908,7 +2908,7 @@ async def create_role(
if icon is None:
fields["icon"] = None
else:
fields["icon"] = _bytes_to_base64_data(icon)
fields["icon"] = utils._bytes_to_base64_data(icon)
fields["unicode_emoji"] = None

if unicode_emoji is not MISSING:
Expand Down

0 comments on commit bbb1e32

Please sign in to comment.