1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-14 09:50:03 +00:00

Add Template.url

This commit is contained in:
Sebastian Law 2021-05-12 03:38:26 -07:00 committed by GitHub
parent ef22178dee
commit 124c4a3919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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