diff options
| author | Rapptz <[email protected]> | 2018-11-25 04:54:12 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-11-25 04:54:12 -0500 |
| commit | 1f2602d11edf932d7b331e31a1ecbb9dd5c91c8e (patch) | |
| tree | 406724dd21200ed001fb03e5f01e78c56f25a52d | |
| parent | Add support for default notification level in audit logs and Guild.edit (diff) | |
| download | discord.py-1f2602d11edf932d7b331e31a1ecbb9dd5c91c8e.tar.xz discord.py-1f2602d11edf932d7b331e31a1ecbb9dd5c91c8e.zip | |
Support discordapp.com invite URLs.
| -rw-r--r-- | discord/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py index c0449cc0..3055a1ff 100644 --- a/discord/client.py +++ b/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) |