Add Template.url

This commit is contained in:
Sebastian Law authored and GitHub committed 2021-05-12 06:38:26 -04:00
1 parent ef22178dee
commit 124c4a3919
1 file changed
+8
+8
View File
@@ -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}'