Partial migration to dpy, music cog

This commit is contained in:
2022-11-12 19:38:22 +01:00
parent a4986a04fc
commit 9f62a48bbd
15 changed files with 446 additions and 611 deletions
+12
View File
@@ -0,0 +1,12 @@
import discord
from bot import colors
def create_embed(user: discord.Member | discord.User) -> discord.Embed:
avatar = None
if avatar_asset := user.avatar:
avatar = avatar_asset.with_static_format("jpeg")
embed = discord.Embed(color=colors["embed"])
embed.set_footer(text=f"Requested by: {user}", icon_url=avatar)
return embed