fix: remove all embed colors (dark theme #2F3136)
All checks were successful
ci / ci (push) Successful in 57s

This commit is contained in:
Mathis 2026-10-04 20:07:10 +02:00
parent cb2321498b
commit 8dc9082700
8 changed files with 19 additions and 19 deletions

View file

@ -45,7 +45,7 @@ class AvisModal(discord.ui.Modal, title="Donner mon avis"):
embed = discord.Embed( embed = discord.Embed(
title="Avis", title="Avis",
description=f"**Note :** {stars} ({note}/5)\n**Auteur :** {interaction.user.mention}\n\n{self.commentaire.value or 'Aucun commentaire'}", 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) embed.set_thumbnail(url=interaction.user.display_avatar.url)
await channel.send(embed=embed) await channel.send(embed=embed)

View file

@ -35,7 +35,7 @@ class CustomMessages(commands.Cog):
self, interaction: discord.Interaction, channel: discord.TextChannel, message: str, title: str = "" self, interaction: discord.Interaction, channel: discord.TextChannel, message: str, title: str = ""
): ):
if title: 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) await channel.send(embed=embed)
else: else:
await channel.send(message) await channel.send(message)
@ -52,13 +52,13 @@ class CustomMessages(commands.Cog):
channel: discord.TextChannel, channel: discord.TextChannel,
title: str, title: str,
description: str, description: str,
color: str = "#5865F2", color: str = "#2f3136",
image_url: str = "", image_url: str = "",
): ):
try: try:
color_int = int(color.lstrip("#"), 16) color_int = int(color.lstrip("#"), 16)
except ValueError: except ValueError:
color_int = 0x5865F2 color_int = 0x2F3136
embed = discord.Embed(title=title, description=description, color=color_int) embed = discord.Embed(title=title, description=description, color=color_int)
if image_url: if image_url:

View file

@ -41,7 +41,7 @@ class ModMail(commands.Cog):
if channel: if channel:
embed = discord.Embed( embed = discord.Embed(
description=message.content or "*Pièce jointe*", description=message.content or "*Pièce jointe*",
color=discord.Color.blurple(), color=0x2F3136,
timestamp=message.created_at, timestamp=message.created_at,
) )
embed.set_author(name=str(message.author), icon_url=message.author.display_avatar.url) embed.set_author(name=str(message.author), icon_url=message.author.display_avatar.url)

View file

@ -38,7 +38,7 @@ class Security(commands.Cog):
title="🛡️ Alerte Antiraid", title="🛡️ Alerte Antiraid",
description=f"**{len(_raids[member.guild.id])}** membres en {cfg.get('antiraid_window', 10)}s.\n" description=f"**{len(_raids[member.guild.id])}** membres en {cfg.get('antiraid_window', 10)}s.\n"
f"**Verification_level** augmenté automatiquement.", f"**Verification_level** augmenté automatiquement.",
color=discord.Color.red(), color=0x2F3136,
) )
if cfg.get("log_channel_id"): if cfg.get("log_channel_id"):
ch = member.guild.get_channel(cfg["log_channel_id"]) ch = member.guild.get_channel(cfg["log_channel_id"])
@ -56,7 +56,7 @@ class Security(commands.Cog):
embed = discord.Embed( embed = discord.Embed(
title="🔨 Protection Ban", title="🔨 Protection Ban",
description=f"**{user}** a été banni de **{guild.name}**", description=f"**{user}** a été banni de **{guild.name}**",
color=discord.Color.orange(), color=0x2F3136,
) )
if cfg.get("log_channel_id"): if cfg.get("log_channel_id"):
ch = guild.get_channel(cfg["log_channel_id"]) ch = guild.get_channel(cfg["log_channel_id"])
@ -71,7 +71,7 @@ class Security(commands.Cog):
embed = discord.Embed( embed = discord.Embed(
title="📥 Départ", title="📥 Départ",
description=f"**{member}** a quitté **{member.guild.name}**", description=f"**{member}** a quitté **{member.guild.name}**",
color=discord.Color.grey(), color=0x2F3136,
timestamp=datetime.now(timezone.utc), timestamp=datetime.now(timezone.utc),
) )
if cfg.get("log_channel_id"): if cfg.get("log_channel_id"):

View file

@ -46,7 +46,7 @@ class Shop(commands.Cog):
embed = discord.Embed( embed = discord.Embed(
title=f"🆕 Nouveau produit — {name}", title=f"🆕 Nouveau produit — {name}",
description=description, description=description,
color=discord.Color.green(), color=0x2F3136,
) )
if price: if price:
embed.add_field(name="💰 Prix", value=price, inline=True) embed.add_field(name="💰 Prix", value=price, inline=True)

View file

@ -98,7 +98,7 @@ class Staff(commands.Cog):
embed = discord.Embed( embed = discord.Embed(
title="Équipe Staff", title="Équipe Staff",
description="\n".join(lines), description="\n".join(lines),
color=discord.Color.blurple(), color=0x2F3136,
) )
await interaction.response.send_message(embed=embed) await interaction.response.send_message(embed=embed)

View file

@ -44,7 +44,7 @@ class Welcome(commands.Cog):
text = text.replace("{member_count}", str(member.guild.member_count)) text = text.replace("{member_count}", str(member.guild.member_count))
text = text.replace("{username}", member.name) 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) embed.set_thumbnail(url=member.display_avatar.url)
if inviter: if inviter:
@ -126,7 +126,7 @@ class Welcome(commands.Cog):
embed = discord.Embed( embed = discord.Embed(
title=f"Invitations de {member}", title=f"Invitations de {member}",
description=f"**{count}** invitations", description=f"**{count}** invitations",
color=discord.Color.blurple(), color=0x2F3136,
) )
embed.set_thumbnail(url=member.display_avatar.url) embed.set_thumbnail(url=member.display_avatar.url)
await interaction.response.send_message(embed=embed) await interaction.response.send_message(embed=embed)

View file

@ -219,7 +219,7 @@ class TicketModal(discord.ui.Modal, title="Nouveau Ticket"):
embed = discord.Embed( embed = discord.Embed(
title="Ticket créé", title="Ticket créé",
description=f"**Catégorie :** {cat.name}\n**Utilisateur :** {interaction.user.mention}\n**Canal :** {channel.mention}", 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), timestamp=datetime.now(timezone.utc),
) )
await _send_log(guild, config, embed) await _send_log(guild, config, embed)
@ -264,7 +264,7 @@ class ClaimButton(discord.ui.Button):
embed = discord.Embed( embed = discord.Embed(
title="Ticket claim", title="Ticket claim",
description=f"Réclamé par {interaction.user.mention}", description=f"Réclamé par {interaction.user.mention}",
color=discord.Color.green(), color=0x2F3136,
timestamp=datetime.now(timezone.utc), timestamp=datetime.now(timezone.utc),
) )
await _send_log(interaction.guild, config, embed) await _send_log(interaction.guild, config, embed)
@ -327,7 +327,7 @@ class AddMemberSelect(discord.ui.UserSelect):
embed = discord.Embed( embed = discord.Embed(
title="Membre ajouté", title="Membre ajouté",
description=f"{user.mention} a été ajouté par {interaction.user.mention}", description=f"{user.mention} a été ajouté par {interaction.user.mention}",
color=discord.Color.blue(), color=0x2F3136,
timestamp=datetime.now(timezone.utc), timestamp=datetime.now(timezone.utc),
) )
await _send_log(interaction.guild, storage.get_config(interaction.guild_id), embed) await _send_log(interaction.guild, storage.get_config(interaction.guild_id), embed)
@ -386,7 +386,7 @@ class TransferSelect(discord.ui.UserSelect):
embed = discord.Embed( embed = discord.Embed(
title="Ticket transféré", title="Ticket transféré",
description=f"Transféré à {user.mention} par {interaction.user.mention}", description=f"Transféré à {user.mention} par {interaction.user.mention}",
color=discord.Color.blue(), color=0x2F3136,
timestamp=datetime.now(timezone.utc), timestamp=datetime.now(timezone.utc),
) )
await _send_log(interaction.guild, storage.get_config(interaction.guild_id), embed) await _send_log(interaction.guild, storage.get_config(interaction.guild_id), embed)
@ -450,7 +450,7 @@ class PrioritySelect(discord.ui.Select):
embed = discord.Embed( embed = discord.Embed(
title="Priorite changee", title="Priorite changee",
description=f"Priorite : **{self.values[0]}** par {interaction.user.mention}", description=f"Priorite : **{self.values[0]}** par {interaction.user.mention}",
color=discord.Color.blue(), color=0x2F3136,
timestamp=datetime.now(timezone.utc), timestamp=datetime.now(timezone.utc),
) )
await _send_log(interaction.guild, storage.get_config(interaction.guild_id), embed) await _send_log(interaction.guild, storage.get_config(interaction.guild_id), embed)
@ -497,7 +497,7 @@ class LockButton(discord.ui.Button):
embed = discord.Embed( embed = discord.Embed(
title=f"Ticket {'verrouillé' if ticket.locked else 'déverrouillé'}", title=f"Ticket {'verrouillé' if ticket.locked else 'déverrouillé'}",
description=f"Par {interaction.user.mention}", description=f"Par {interaction.user.mention}",
color=discord.Color.orange() if ticket.locked else discord.Color.green(), color=0x2F3136,
timestamp=datetime.now(timezone.utc), timestamp=datetime.now(timezone.utc),
) )
await _send_log(interaction.guild, config, embed) await _send_log(interaction.guild, config, embed)
@ -603,7 +603,7 @@ class CloseButton(discord.ui.Button):
embed = discord.Embed( embed = discord.Embed(
title="Ticket fermé", title="Ticket fermé",
description=f"**Fermé par :** {interaction.user.mention}\n**Catégorie :** {ticket.category_id}", description=f"**Fermé par :** {interaction.user.mention}\n**Catégorie :** {ticket.category_id}",
color=discord.Color.red(), color=0x2F3136,
timestamp=datetime.now(timezone.utc), timestamp=datetime.now(timezone.utc),
) )
await _send_log(interaction.guild, config, embed) await _send_log(interaction.guild, config, embed)