diff options
| author | NCPlayz <[email protected]> | 2020-05-17 02:05:42 +0100 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-05-23 21:56:40 -0400 |
| commit | f09162f25968716b54ae4fc504729cbeeebd3a22 (patch) | |
| tree | e044be701288d38e7d82e5f025003927aa8529fb | |
| parent | Change _handshaking variable when handshake terminate (diff) | |
| download | discord.py-f09162f25968716b54ae4fc504729cbeeebd3a22.tar.xz discord.py-f09162f25968716b54ae4fc504729cbeeebd3a22.zip | |
isinstance(x, y) and isinstance(x, z) -> isinstance(x, (y, z))
| -rw-r--r-- | discord/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/utils.py b/discord/utils.py index c9ba2f38..3124a737 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -427,7 +427,7 @@ def resolve_invite(invite): The invite code. """ from .invite import Invite # circular import - if isinstance(invite, Invite) or isinstance(invite, Object): + if isinstance(invite, (Invite, Object)): return invite.id else: rx = r'(?:https?\:\/\/)?discord(?:\.gg|app\.com\/invite)\/(.+)' |