Browse Source

Support discordapp.com invite URLs.

pull/1741/head
Rapptz 6 years ago
parent
commit
1f2602d11e
  1. 2
      discord/client.py

2
discord/client.py

@ -172,7 +172,7 @@ class Client:
if isinstance(invite, Invite) or isinstance(invite, Object):
return invite.id
else:
rx = r'(?:https?\:\/\/)?discord\.gg\/(.+)'
rx = r'(?:https?\:\/\/)?discord(?:\.gg|app\.com\/invite)\/(.+)'
m = re.match(rx, invite)
if m:
return m.group(1)

Loading…
Cancel
Save