From 8dc908270037dfa54349592cbbd90f6a60c7ac52 Mon Sep 17 00:00:00 2001 From: Mathis Date: Sun, 4 Oct 2026 20:07:10 +0200 Subject: [PATCH] fix: remove all embed colors (dark theme #2F3136) --- features/avis.py | 2 +- features/custom.py | 6 +++--- features/modmail.py | 2 +- features/security.py | 6 +++--- features/shop.py | 2 +- features/staff.py | 2 +- features/welcome.py | 4 ++-- tickets/ui.py | 14 +++++++------- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/features/avis.py b/features/avis.py index eecef8d..07eba52 100644 --- a/features/avis.py +++ b/features/avis.py @@ -45,7 +45,7 @@ class AvisModal(discord.ui.Modal, title="Donner mon avis"): embed = discord.Embed( title="Avis", description=f"**Note :** {stars} ({note}/5)\n**Auteur :** {interaction.user.mention}\n\n{self.commentaire.value or 'Aucun commentaire'}", - color=discord.Color.gold(), + color=0x2F3136, ) embed.set_thumbnail(url=interaction.user.display_avatar.url) await channel.send(embed=embed) diff --git a/features/custom.py b/features/custom.py index 55c7310..3269430 100644 --- a/features/custom.py +++ b/features/custom.py @@ -35,7 +35,7 @@ class CustomMessages(commands.Cog): self, interaction: discord.Interaction, channel: discord.TextChannel, message: str, title: str = "" ): if title: - embed = discord.Embed(title=title, description=message, color=discord.Color.blurple()) + embed = discord.Embed(title=title, description=message, color=0x2F3136) await channel.send(embed=embed) else: await channel.send(message) @@ -52,13 +52,13 @@ class CustomMessages(commands.Cog): channel: discord.TextChannel, title: str, description: str, - color: str = "#5865F2", + color: str = "#2f3136", image_url: str = "", ): try: color_int = int(color.lstrip("#"), 16) except ValueError: - color_int = 0x5865F2 + color_int = 0x2F3136 embed = discord.Embed(title=title, description=description, color=color_int) if image_url: diff --git a/features/modmail.py b/features/modmail.py index 992f2fd..85c5f6f 100644 --- a/features/modmail.py +++ b/features/modmail.py @@ -41,7 +41,7 @@ class ModMail(commands.Cog): if channel: embed = discord.Embed( description=message.content or "*Pièce jointe*", - color=discord.Color.blurple(), + color=0x2F3136, timestamp=message.created_at, ) embed.set_author(name=str(message.author), icon_url=message.author.display_avatar.url) diff --git a/features/security.py b/features/security.py index 4d4570c..051b560 100644 --- a/features/security.py +++ b/features/security.py @@ -38,7 +38,7 @@ class Security(commands.Cog): title="🛡️ Alerte Antiraid", description=f"**{len(_raids[member.guild.id])}** membres en {cfg.get('antiraid_window', 10)}s.\n" f"**Verification_level** augmenté automatiquement.", - color=discord.Color.red(), + color=0x2F3136, ) if cfg.get("log_channel_id"): ch = member.guild.get_channel(cfg["log_channel_id"]) @@ -56,7 +56,7 @@ class Security(commands.Cog): embed = discord.Embed( title="🔨 Protection Ban", description=f"**{user}** a été banni de **{guild.name}**", - color=discord.Color.orange(), + color=0x2F3136, ) if cfg.get("log_channel_id"): ch = guild.get_channel(cfg["log_channel_id"]) @@ -71,7 +71,7 @@ class Security(commands.Cog): embed = discord.Embed( title="📥 Départ", description=f"**{member}** a quitté **{member.guild.name}**", - color=discord.Color.grey(), + color=0x2F3136, timestamp=datetime.now(timezone.utc), ) if cfg.get("log_channel_id"): diff --git a/features/shop.py b/features/shop.py index ae60a33..7f7e6bc 100644 --- a/features/shop.py +++ b/features/shop.py @@ -46,7 +46,7 @@ class Shop(commands.Cog): embed = discord.Embed( title=f"🆕 Nouveau produit — {name}", description=description, - color=discord.Color.green(), + color=0x2F3136, ) if price: embed.add_field(name="💰 Prix", value=price, inline=True) diff --git a/features/staff.py b/features/staff.py index f0aafd5..f0c32c9 100644 --- a/features/staff.py +++ b/features/staff.py @@ -98,7 +98,7 @@ class Staff(commands.Cog): embed = discord.Embed( title="Équipe Staff", description="\n".join(lines), - color=discord.Color.blurple(), + color=0x2F3136, ) await interaction.response.send_message(embed=embed) diff --git a/features/welcome.py b/features/welcome.py index 76eaaa0..4a54983 100644 --- a/features/welcome.py +++ b/features/welcome.py @@ -44,7 +44,7 @@ class Welcome(commands.Cog): text = text.replace("{member_count}", str(member.guild.member_count)) text = text.replace("{username}", member.name) - embed = discord.Embed(description=text, color=discord.Color.blurple()) + embed = discord.Embed(description=text, color=0x2F3136) embed.set_thumbnail(url=member.display_avatar.url) if inviter: @@ -126,7 +126,7 @@ class Welcome(commands.Cog): embed = discord.Embed( title=f"Invitations de {member}", description=f"**{count}** invitations", - color=discord.Color.blurple(), + color=0x2F3136, ) embed.set_thumbnail(url=member.display_avatar.url) await interaction.response.send_message(embed=embed) diff --git a/tickets/ui.py b/tickets/ui.py index 641a926..5a6aff1 100644 --- a/tickets/ui.py +++ b/tickets/ui.py @@ -219,7 +219,7 @@ class TicketModal(discord.ui.Modal, title="Nouveau Ticket"): embed = discord.Embed( title="Ticket créé", description=f"**Catégorie :** {cat.name}\n**Utilisateur :** {interaction.user.mention}\n**Canal :** {channel.mention}", - color=discord.Color.green(), + color=0x2F3136, timestamp=datetime.now(timezone.utc), ) await _send_log(guild, config, embed) @@ -264,7 +264,7 @@ class ClaimButton(discord.ui.Button): embed = discord.Embed( title="Ticket claim", description=f"Réclamé par {interaction.user.mention}", - color=discord.Color.green(), + color=0x2F3136, timestamp=datetime.now(timezone.utc), ) await _send_log(interaction.guild, config, embed) @@ -327,7 +327,7 @@ class AddMemberSelect(discord.ui.UserSelect): embed = discord.Embed( title="Membre ajouté", description=f"{user.mention} a été ajouté par {interaction.user.mention}", - color=discord.Color.blue(), + color=0x2F3136, timestamp=datetime.now(timezone.utc), ) await _send_log(interaction.guild, storage.get_config(interaction.guild_id), embed) @@ -386,7 +386,7 @@ class TransferSelect(discord.ui.UserSelect): embed = discord.Embed( title="Ticket transféré", description=f"Transféré à {user.mention} par {interaction.user.mention}", - color=discord.Color.blue(), + color=0x2F3136, timestamp=datetime.now(timezone.utc), ) await _send_log(interaction.guild, storage.get_config(interaction.guild_id), embed) @@ -450,7 +450,7 @@ class PrioritySelect(discord.ui.Select): embed = discord.Embed( title="Priorite changee", description=f"Priorite : **{self.values[0]}** par {interaction.user.mention}", - color=discord.Color.blue(), + color=0x2F3136, timestamp=datetime.now(timezone.utc), ) await _send_log(interaction.guild, storage.get_config(interaction.guild_id), embed) @@ -497,7 +497,7 @@ class LockButton(discord.ui.Button): embed = discord.Embed( title=f"Ticket {'verrouillé' if ticket.locked else 'déverrouillé'}", description=f"Par {interaction.user.mention}", - color=discord.Color.orange() if ticket.locked else discord.Color.green(), + color=0x2F3136, timestamp=datetime.now(timezone.utc), ) await _send_log(interaction.guild, config, embed) @@ -603,7 +603,7 @@ class CloseButton(discord.ui.Button): embed = discord.Embed( title="Ticket fermé", description=f"**Fermé par :** {interaction.user.mention}\n**Catégorie :** {ticket.category_id}", - color=discord.Color.red(), + color=0x2F3136, timestamp=datetime.now(timezone.utc), ) await _send_log(interaction.guild, config, embed)