|
|
@ -1866,6 +1866,14 @@ class PartialApplication(Hashable): |
|
|
|
def __repr__(self) -> str: |
|
|
|
return f'<{self.__class__.__name__} id={self.id} name={self.name!r} description={self.description!r}>' |
|
|
|
|
|
|
|
@property |
|
|
|
def created_at(self) -> datetime: |
|
|
|
""":class:`datetime.datetime`: Returns the application's creation time in UTC. |
|
|
|
|
|
|
|
.. versionadded:: 2.1 |
|
|
|
""" |
|
|
|
return utils.snowflake_time(self.id) |
|
|
|
|
|
|
|
@property |
|
|
|
def icon(self) -> Optional[Asset]: |
|
|
|
"""Optional[:class:`Asset`]: Retrieves the application's icon asset, if any.""" |
|
|
@ -3542,6 +3550,14 @@ class IntegrationApplication(Hashable): |
|
|
|
def __repr__(self) -> str: |
|
|
|
return f'<IntegrationApplication id={self.id} name={self.name!r}>' |
|
|
|
|
|
|
|
@property |
|
|
|
def created_at(self) -> datetime: |
|
|
|
""":class:`datetime.datetime`: Returns the application's creation time in UTC. |
|
|
|
|
|
|
|
.. versionadded:: 2.1 |
|
|
|
""" |
|
|
|
return utils.snowflake_time(self.id) |
|
|
|
|
|
|
|
@property |
|
|
|
def icon(self) -> Optional[Asset]: |
|
|
|
"""Optional[:class:`Asset`]: Retrieves the application's icon asset, if any.""" |
|
|
|