mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-21 23:37:47 +00:00
Partial migration to dpy, music cog
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user