mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Normalize type formatting in TypeError
Normalize most mixed usages of `__class__`, `__class__!r`, `__class__.__name__!r` to the standard form of `__class__.__name__`
This commit is contained in:
@ -1513,7 +1513,7 @@ class Messageable:
|
||||
reference_dict = MISSING
|
||||
|
||||
if view and not hasattr(view, '__discord_ui_view__'):
|
||||
raise TypeError(f'view parameter must be View not {view.__class__!r}')
|
||||
raise TypeError(f'view parameter must be View not {view.__class__.__name__}')
|
||||
|
||||
if suppress_embeds:
|
||||
from .message import MessageFlags # circular import
|
||||
|
Reference in New Issue
Block a user