#How do I add a button to an embed?

1 messages · Page 1 of 1 (latest)

wispy widget
#

you don't add buttons to embeds, you add the to the message

muted shadow
#

and you can use a component handler for this purpose, most likely #miru or #flare

#

you can also do it without them, but it's nicer this way

woeful saffron
#

yes i already tried with miru but I don’t understand how the librairie work

muted shadow
#

what part specifically are you having trouble with?

woeful saffron
#

I try to watch some youtube’s videos and he talk about but I didn’t work at all

#

I’m going to read the doc thx

muted shadow
#

probably because the youtube videos are hopelessly out of date

woeful saffron
#

yes I think

muted shadow
#

this is why I recommend against trying to learn via youtube videos

woeful saffron
#

k

#

i’m going to try with doc

muted shadow
#

I tried to put a lot of effort into making the docs easy to understand & digest, so if anything is unclear, lmk

woeful saffron
#

thanks !!

woeful saffron
#

I tried with the doc, so It's not possible to add a button on a embed @muted shadow ?

muted shadow
#

buttons are added to messages

#

that's how Discord defined them

woeful saffron
#

k

muted shadow
#

so not sure where you got that idea from

#

like, if you look, this isn't in the embed

#

it's under it

woeful saffron
#

ohh okay

muted shadow
#

it's a seperate part of the message

woeful saffron
#

I want to do this

muted shadow
#

yeah then just follow the guide

#

it tells you how to do all this

woeful saffron
#

k

woeful saffron
#

I can't send a message after my embed

muted shadow
woeful saffron
#

I can't

muted shadow
#

can you elaborate

#

you send the components & the embed as one message

#

this is shown even in the guide, just with regular text content, not an embed

#

but it works the same way with embeds

woeful saffron
#

have u a example

muted shadow
#

whatever.respond(embed=embed, components=view)

#

you just send them together

woeful saffron
#

k

woeful saffron
#

I generate a embed and I have at the end ˋ return embedˋ, how can I send the buttons after ?

muted shadow
#

what lol

#

where do you actually send the message

woeful saffron
#

I did it!

muted shadow
#

nice!

woeful saffron
#

how can I add link button ?

muted shadow
#

as shown in the subclassing part

#

it's just called miru.LinkButton

#

so no need to create any funny special subclasses