Debug GitLab note DM v3
This commit is contained in:
parent
088ff1e849
commit
db3d15b127
1 changed files with 9 additions and 1 deletions
|
|
@ -111,7 +111,15 @@ class GitLabIntegration(commands.Cog):
|
||||||
await inter.response.send_modal(modal=FeatureModal(self))
|
await inter.response.send_modal(modal=FeatureModal(self))
|
||||||
|
|
||||||
# ---------- Slash command: /signaler_bug ----------
|
# ---------- Slash command: /signaler_bug ----------
|
||||||
@commands.slash_command(name="signaler_bug", description="Signaler un bug du projet")
|
@commands.slash_command(name="notify_deploy", description="Envoyer un DM de confirmation du déploiement")
|
||||||
|
async def notify_deploy(self, inter: disnake.ApplicationCommandInteraction):
|
||||||
|
"""DM the user that the deployment is done."""
|
||||||
|
try:
|
||||||
|
await inter.author.send("✅ C'est fait ! Le code a été déployé sur la branche `main`.")
|
||||||
|
await inter.response.send_message("✅ DM de confirmation envoyé.", ephemeral=True)
|
||||||
|
except disnake.HTTPException:
|
||||||
|
await inter.response.send_message("⚠️ Impossible d'envoyer le DM (DMs désactivés).", ephemeral=True)
|
||||||
|
|
||||||
async def signaler_bug(self, inter: disnake.ApplicationCommandInteraction):
|
async def signaler_bug(self, inter: disnake.ApplicationCommandInteraction):
|
||||||
await inter.response.send_modal(modal=BugModal(self))
|
await inter.response.send_modal(modal=BugModal(self))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue