|
@ -2314,6 +2314,14 @@ class DMChannel(discord.abc.Messageable, Hashable): |
|
|
""":class:`ChannelType`: The channel's Discord type.""" |
|
|
""":class:`ChannelType`: The channel's Discord type.""" |
|
|
return ChannelType.private |
|
|
return ChannelType.private |
|
|
|
|
|
|
|
|
|
|
|
@property |
|
|
|
|
|
def jump_url(self) -> str: |
|
|
|
|
|
""":class:`str`: Returns a URL that allows the client to jump to the channel. |
|
|
|
|
|
|
|
|
|
|
|
.. versionadded:: 2.0 |
|
|
|
|
|
""" |
|
|
|
|
|
return f'https://discord.com/channels/@me/{self.id}' |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def created_at(self) -> datetime.datetime: |
|
|
def created_at(self) -> datetime.datetime: |
|
|
""":class:`datetime.datetime`: Returns the direct message channel's creation time in UTC.""" |
|
|
""":class:`datetime.datetime`: Returns the direct message channel's creation time in UTC.""" |
|
@ -2472,6 +2480,14 @@ class GroupChannel(discord.abc.Messageable, Hashable): |
|
|
""":class:`datetime.datetime`: Returns the channel's creation time in UTC.""" |
|
|
""":class:`datetime.datetime`: Returns the channel's creation time in UTC.""" |
|
|
return utils.snowflake_time(self.id) |
|
|
return utils.snowflake_time(self.id) |
|
|
|
|
|
|
|
|
|
|
|
@property |
|
|
|
|
|
def jump_url(self) -> str: |
|
|
|
|
|
""":class:`str`: Returns a URL that allows the client to jump to the channel. |
|
|
|
|
|
|
|
|
|
|
|
.. versionadded:: 2.0 |
|
|
|
|
|
""" |
|
|
|
|
|
return f'https://discord.com/channels/@me/{self.id}' |
|
|
|
|
|
|
|
|
def permissions_for(self, obj: Snowflake, /) -> Permissions: |
|
|
def permissions_for(self, obj: Snowflake, /) -> Permissions: |
|
|
"""Handles permission resolution for a :class:`User`. |
|
|
"""Handles permission resolution for a :class:`User`. |
|
|
|
|
|
|
|
|