You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/migration.rst
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -232,3 +232,7 @@ your option name! Example:
232
232
~~~~~~~~~~~~~~~
233
233
234
234
The ``Color`` class was refactored into an enum. You may now access its contents via ``interactions.Color.COLOR``.
235
+
Due to `complaints <https://www.github.com/interactions-py/library/issues/1040>`_ on str and repr magic methods, we have
236
+
decided to `remove all implementations of them in the model classes <https://www.github.com/interactions.py/library/pulls/1050>`_.
237
+
This affects the way you can send emojis. You can no longer use ``str(emoji)`` or ``f"{emoji}"``.
238
+
Instead you will have to use ``emoji.format`` or ``f"{emoji.format}"`` to transform an emoji into a send-able form.
0 commit comments