From 985ac60191376ef66bb8e8b4f585e446b38f8e7e Mon Sep 17 00:00:00 2001 From: koko210Serve Date: Tue, 10 Feb 2026 22:57:55 +0200 Subject: [PATCH] Webhook pfp updates properly now --- bot/utils/profile_picture_manager.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bot/utils/profile_picture_manager.py b/bot/utils/profile_picture_manager.py index d78f59e..dfc82bf 100644 --- a/bot/utils/profile_picture_manager.py +++ b/bot/utils/profile_picture_manager.py @@ -440,6 +440,13 @@ class ProfilePictureManager: if dominant_color: await self._update_role_colors(dominant_color, debug=debug) + # Update bipolar webhook avatars if bipolar mode is active + if globals.BIPOLAR_MODE: + from bot.utils.bipolar_mode import update_webhook_avatars + updated = await update_webhook_avatars() + if debug: + logger.info(f"Updated bipolar webhook avatars: {updated}") + return result except discord.HTTPException as e: @@ -535,6 +542,15 @@ class ProfilePictureManager: if dominant_color: await self._update_role_colors(dominant_color, debug=debug) + # Step 8: Update bipolar webhook avatars if bipolar mode is active + if globals.BIPOLAR_MODE: + try: + from utils.bipolar_mode import update_webhook_avatars + await update_webhook_avatars(globals.client) + logger.debug("Updated bipolar webhook avatars after profile picture change") + except Exception as e: + logger.warning(f"Failed to update bipolar webhook avatars: {e}") + except discord.HTTPException as e: result["error"] = f"Discord API error: {e}" logger.warning(f"Failed to update Discord avatar: {e}")