diff options
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/template.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/discord/template.py b/discord/template.py index fd4554d7..2eaa6927 100644 --- a/discord/template.py +++ b/discord/template.py @@ -283,3 +283,11 @@ class Template: This template does not exist. """ await self._state.http.delete_template(self.source_guild.id, self.code) + + @property + def url(self) -> str: + """:class:`str`: The template url. + + .. versionadded:: 2.0 + """ + return f'https://discord.new/{self.code}' |