mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-21 23:27:47 +00:00
13 lines
358 B
Python
13 lines
358 B
Python
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
|