Ask coding questions

← Back to all posts
Error with importing of commands discord bot (python)
codeMusicGame (0)

Having a problem with being able to post an embed using a command.

bot = discord.ext.commands.Bot(command_prefix = "--");

async def sendembed(ctx):
embed = discord.Embed(
title = 'Title',
description = 'this is a description.',
colour =

embed.set_footer(text='gaming get ready.')
embed.set_author(name='Author Name',on_url='')
embed.add_field(name='field Name', value='field Value', inline=False)
await ctx.send(embed=embed)