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(
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)

View file

@ -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:

View file

@ -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)

View file

@ -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"):

View file

@ -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)

View file

@ -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)

View file

@ -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)