Embed Commands
Simple embed upon executing a command
This is how you would implement themes into embeds:
@Rise.command()
async def example(ctx):
await ctx.message.delete()
print(f"{CmdColor}[♥] Command Ran: example")
embed=discord.Embed(title=f"{h['title']}", description= f"This is the example description text", color=colors.get(h['color']))
embed.set_thumbnail(url=f"{h['thumbnail']}")
embed.set_footer(text=f"{h['footertext']}")
await ctx.send(embed=embed)
Explanation for each line:
@Rise.command()
async def example(ctx): #the command name/arguments required in the brackets
await ctx.message.delete() #deletes the command upon executing in chat
print(f"{CmdColor}[♥] Command Ran: example") #prints what you want in console after execution
embed=discord.Embed(title=f"{h['title']}", description= f"This is the example description text", color=colors.get(h['color'])) #defines what the embed is, and whats in it
embed.set_thumbnail(url=f"{h['thumbnail']}") #sets the embed thumbnail as your theme
embed.set_footer(text=f"{h['footertext']}") #sets the embed footertext as your theme
await ctx.send(embed=embed) #finally sends the embed in chat
Last updated