You can simply convert the color (ff0000
) to an int with base 16
async def embed(ctx, *, content: str):
title, description, color = content.split("|")
embed = discord.Embed(title=title, description=description, colour=int(color, 16))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…