mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Fix NameError with resolving codes with Template
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user