Embeds
Making and using embeds with Py-cord

import discord # make sure you install py-cord - read the Home Page
from discord.ext import commands # will be discussed later
import os
bot = commands.Bot(command_prefix='!', case_insensitive=True)
@bot.event
async def on_ready():
print(f"{bot.user} is ready and online!")
@bot.command()
async def hello(ctx):
await ctx.send("Hey!")
### Embed Command ###
@bot.command()
async def embed(ctx):
embed = discord.Embed(title="How to make embeds with Py-cord", description="This tutorial will show you how to make embeds in py-cord. Simple enough, so lets get started!", color = discord.Color.from_rbg(255, 255, 255))
await ctx.send(embed = embed)
bot.run(os.getenv('TOKEN'))
Last updated
