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:
parent
0f990d8434
commit
8c01855fff
2 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue