aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2018-06-29 21:50:38 -0400
committerRapptz <[email protected]>2018-06-29 21:50:38 -0400
commit1538c788364c10f5b72a9a379570adee6ad0fce7 (patch)
tree43a0ca3f7d7bd7a9a2d159443f8718829c6be8d1
parentdon't drop guild_available/join before ready (diff)
downloaddiscord.py-1538c788364c10f5b72a9a379570adee6ad0fce7.tar.xz
discord.py-1538c788364c10f5b72a9a379570adee6ad0fce7.zip
Change jump_to_url to jump_url and fix format.
People kept asking, might as well.
-rw-r--r--discord/message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/message.py b/discord/message.py
index 38893a79..c77e7378 100644
--- a/discord/message.py
+++ b/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):