From 5d0d451753ccdda413116c4177277a19a0689131 Mon Sep 17 00:00:00 2001 From: Aboubacar M'houmadi Date: Sun, 8 Feb 2026 22:29:12 +0100 Subject: [PATCH] =?UTF-8?q?test=201.2=20de=20la=20r=C3=A9cup=C3=A9ration?= =?UTF-8?q?=20de=20pp=20discord=20sur=20site=20web?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/routes.py | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/api/routes.py b/src/api/routes.py index 1923221..64755fe 100644 --- a/src/api/routes.py +++ b/src/api/routes.py @@ -55,25 +55,25 @@ def setup_routes(app, bot): "description": guild.description if guild.description else None, "features": list(guild.features) if guild.features else [], "created_at": guild.created_at.isoformat() if guild.created_at else None, - "channels": [ - { - "id": channel.id, - "name": channel.name, - "type": str(channel.type), - "category": channel.category.name if channel.category else None - } - for channel in guild.channels - ], - "roles": [ - { - "id": role.id, - "name": role.name, - "color": role.color, - "position": role.position, - "member_count": len(role.members) - } - for role in guild.roles - ] + # "channels": [ + # { + # "id": channel.id, + # "name": channel.name, + # "type": str(channel.type), + # "category": channel.category.name if channel.category else None + # } + # for channel in guild.channels + # ], + # "roles": [ + # { + # "id": role.id, + # "name": role.name, + # "color": role.color, + # "position": role.position, + # "member_count": len(role.members) + # } + # for role in guild.roles + # ] }) @app.route("/api/status") @@ -85,7 +85,7 @@ def setup_routes(app, bot): "user_id": bot.user.id if bot.user else None, "guild_count": len(bot.guilds), "total_members": sum(guild.member_count for guild in bot.guilds) if bot.guilds else 0, - "total_channels": sum(len(guild.channels) for guild in bot.guilds) if bot.guilds else 0, + # "total_channels": sum(len(guild.channels) for guild in bot.guilds) if bot.guilds else 0, "uptime": "N/A", # TODO: Implement uptime tracking "version": "2.0.0", "api_endpoints": [