diff options
| author | Nadir Chowdhury <[email protected]> | 2020-08-01 02:07:20 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-31 21:07:20 -0400 |
| commit | 6d88316767695580a0920f1ce3919398913b5a31 (patch) | |
| tree | 44490ac58537cef1983080c5f479e9d72dd814e4 | |
| parent | Fix AttributeError from internal queue being double underscore. (diff) | |
| download | discord.py-6d88316767695580a0920f1ce3919398913b5a31.tar.xz discord.py-6d88316767695580a0920f1ce3919398913b5a31.zip | |
Fix NameError with resolving codes with Template
| -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 c1d6c69e..efab5908 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -469,7 +469,7 @@ def resolve_template(code): """ from .template import Template # circular import if isinstance(code, Template): - return template.code + return code.code else: rx = r'(?:https?\:\/\/)?discord(?:\.new|(?:app)?\.com\/template)\/(.+)' m = re.match(rx, code) |