Browse Source

Add Template.url

pull/6900/head
Sebastian Law 4 years ago
committed by GitHub
parent
commit
124c4a3919
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      discord/template.py

8
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}'

Loading…
Cancel
Save