diff --git a/commandes/bug_report.py b/commandes/bug_report.py index a286a4e..9c7ae2e 100644 --- a/commandes/bug_report.py +++ b/commandes/bug_report.py @@ -379,9 +379,17 @@ class BugReport(commands.Cog): is_system = note_attr.get("system", False) if not is_system: - note_body = note_attr.get("note", "") + # GitLab peut envoyer des champs différents selon version/config + note_body = ( + note_attr.get("note") + or note_attr.get("body") + or payload.get("note", "") + or payload.get("object_attributes", {}).get("note", "") + or "" + ) author_name = payload.get("user", {}).get("name", "Développeur") + try: components = [ disnake.ui.Container(