feat(issues): added url to embed title
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
Seaswimmer 2023-08-19 17:36:58 -04:00
parent 2087bdd054
commit 1f26e32852
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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)