mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 16:32:59 +00:00
Add Template.url
This commit is contained in:
@@ -283,3 +283,11 @@ class Template:
|
|||||||
This template does not exist.
|
This template does not exist.
|
||||||
"""
|
"""
|
||||||
await self._state.http.delete_template(self.source_guild.id, self.code)
|
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}'
|
||||||
|
Reference in New Issue
Block a user