feat(issues): added url to embed title
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
This commit is contained in:
parent
2087bdd054
commit
1f26e32852
1 changed files with 1 additions and 0 deletions
|
@ -246,5 +246,6 @@ class Issues(commands.Cog):
|
||||||
response_json, status_code = await create_issue()
|
response_json, status_code = await create_issue()
|
||||||
if status_code == 201:
|
if status_code == 201:
|
||||||
await interaction.response.send_message(content=f"Issue request {status}.\n[Issue successfully created.]({response_json.get('html_url')})", ephemeral=True)
|
await interaction.response.send_message(content=f"Issue request {status}.\n[Issue successfully created.]({response_json.get('html_url')})", ephemeral=True)
|
||||||
|
embed.url = response_json.get('html_url')
|
||||||
await message.edit(embed=embed, view=None)
|
await message.edit(embed=embed, view=None)
|
||||||
await self.user.send(embed=embed)
|
await self.user.send(embed=embed)
|
||||||
|
|
Loading…
Reference in a new issue