1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-17 22:45:08 +00:00

add url meth along with html_url

This commit is contained in:
VarMonke 2022-05-19 00:02:13 +05:30
parent 0f990d8434
commit 8c01855fff
2 changed files with 6 additions and 4 deletions

View file

@ -460,6 +460,10 @@ class Gist(APIObject):
"""TODO: document this."""
return self._response
@property
def url(self) -> str:
return self._response.get('html_url')
async def delete(self):
"""Delete the gist."""
await self._http.delete_gist(self.id)