#embed help

1 messages · Page 1 of 1 (latest)

pallid tapir
#

you have given us nothing to work with

#

show code

marsh sorrel
#

ok wait

#

@lightbulb.command("embed", "Sends an embed in the command channel")
@lightbulb.implements(lightbulb.SlashCommand)
async def embed_command(ctx):
embed = hikari.Embed(title="Example embed", description="An example hikari embed")
embed.add_field("Field name", "Field content (value)")
embed.set_thumbnail("https://i.imgur.com/EpuEOXC.jpg")
embed.set_footer("This is the footer")
await ctx.respond(embed) # or respond(embed=embed)

im new so im just trying out, thats my code

#

@pallid tapir u know how to fix it?

pallid tapir
#

no, i dont use lightbulb

marsh sorrel
#

oh ok

pallid tapir
#

someone else will know how to help

marsh sorrel
#

u know another extension i can use for embeds?

pallid tapir
#

you dont need any extensions to use embeds

marsh sorrel
#

oh really?

pallid tapir
#

embeds are a part of hikari

marsh sorrel
#

u know how can i use that?

pallid tapir
#

you just did

#

idk what you're even asking

marsh sorrel
#

what

pallid tapir
#

you wanted to make an embed and send it

#

which you have written the correct code to do so

marsh sorrel
#

in my code it sais lightbulb and when i try it i cant find the slash command

pallid tapir
#

that is not a problem about embeds then

marsh sorrel
#

ok

pallid tapir
#

idk how lightbulb command registeration works