fix: remove all embed colors (dark theme #2F3136)
All checks were successful
ci / ci (push) Successful in 57s
All checks were successful
ci / ci (push) Successful in 57s
This commit is contained in:
parent
cb2321498b
commit
8dc9082700
8 changed files with 19 additions and 19 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue