diff options
| author | Devon R <[email protected]> | 2019-11-14 21:54:34 +0000 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-11-15 04:25:38 -0500 |
| commit | bf9b9c5879b4e534cf205cf44ab1248e6cc37c24 (patch) | |
| tree | 44c4c62a1970953eed242a62487de2bcf0856d6f /discord/invite.py | |
| parent | Return invites as https, various URL normalization (diff) | |
| download | discord.py-bf9b9c5879b4e534cf205cf44ab1248e6cc37c24.tar.xz discord.py-bf9b9c5879b4e534cf205cf44ab1248e6cc37c24.zip | |
Adjust BASE urls to have no trailing slash (consistency)
Diffstat (limited to 'discord/invite.py')
| -rw-r--r-- | discord/invite.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/invite.py b/discord/invite.py index f4c8e1f2..28458b7a 100644 --- a/discord/invite.py +++ b/discord/invite.py @@ -256,7 +256,7 @@ class Invite(Hashable): 'temporary', 'max_uses', 'inviter', 'channel', '_state', 'approximate_member_count', 'approximate_presence_count' ) - BASE = 'https://discord.gg/' + BASE = 'https://discord.gg' def __init__(self, *, state, data): self._state = state @@ -311,7 +311,7 @@ class Invite(Hashable): @property def url(self): """:class:`str`: A property that retrieves the invite URL.""" - return self.BASE + self.code + return self.BASE + '/' + self.code async def delete(self, *, reason=None): """|coro| |