Skip to content

Commit

Permalink
remove trailing / when id=None
Browse files Browse the repository at this point in the history
  • Loading branch information
Le0Developer committed Apr 14, 2024
1 parent 91d9844 commit 85cb229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hikari/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ def make_link(self) -> str:
The jump link to the message reference target.
"""
guild_id_str = "@me" if self.guild_id is None else self.guild_id
message_id_str = "" if self.id is None else self.id
return f"{urls.BASE_URL}/channels/{guild_id_str}/{self.channel_id}/{message_id_str}"
message_id_str = "" if self.id is None else f"/{self.id}"
return f"{urls.BASE_URL}/channels/{guild_id_str}/{self.channel_id}{message_id_str}"


@attrs_extensions.with_copy
Expand Down

0 comments on commit 85cb229

Please sign in to comment.