Browse Source

Change jump_to_url to jump_url and fix format.

People kept asking, might as well.
pull/1382/merge
Rapptz 7 years ago
parent
commit
1538c78836
  1. 4
      discord/message.py

4
discord/message.py

@ -434,10 +434,10 @@ class Message:
return self._edited_timestamp
@property
def jump_to_url(self):
def jump_url(self):
""":class:`str`: Returns a URL that allows the client to jump to this message."""
guild_id = getattr(self.guild, 'id', '@me')
return 'https://discordapp.com/channels/{0}/{1.channel.id}?jump={1.id}'.format(guild_id, self)
return 'https://discordapp.com/channels/{0}/{1.channel.id}/{1.id}'.format(guild_id, self)
@utils.cached_slot_property('_cs_system_content')
def system_content(self):

Loading…
Cancel
Save