Adjust BASE urls to have no trailing slash (consistency)

This commit is contained in:
Devon R
2019-11-14 21:54:34 +00:00
committed by Rapptz
parent f5ebf42e1f
commit bf9b9c5879
6 changed files with 15 additions and 15 deletions

View File

@ -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|