mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-01 15:50:02 +00:00
Add MessageApplication.__str__
This commit is contained in:
parent
fe942d1e16
commit
d00c124883
@ -989,6 +989,9 @@ class MessageApplication:
|
|||||||
self._icon: Optional[str] = data['icon']
|
self._icon: Optional[str] = data['icon']
|
||||||
self._cover_image: Optional[str] = data.get('cover_image')
|
self._cover_image: Optional[str] = data.get('cover_image')
|
||||||
|
|
||||||
|
def __str__(self) -> str:
|
||||||
|
return self.name
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return f'<MessageApplication id={self.id} name={self.name!r}>'
|
return f'<MessageApplication id={self.id} name={self.name!r}>'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user