judee
judee

Reputation: 66

Discord.py Links in Embeds

I am looking to put an invite link to my bot in the description of the embed as a hyperlink. I want it to display something similar to click here and then lead to the bot's invite link. If anybody knows how to do this, if you could please advise me that would be great! :)

Upvotes: 1

Views: 7929

Answers (2)

Ares
Ares

Reputation: 167

You can do:

 async def invite(ctx):
        embed = discord.Embed(
            color= discord.Colour.dark_teal() # or any color you want
        )
        embed.add_field(name='If you wish to add me in your server,' ,value='[Click here to add]( bot link )', inline=False)
        await ctx.send(embed=embed)

You can put hyperlinks in this way just in field value.

Upvotes: 4

Łukasz Kwieciński
Łukasz Kwieciński

Reputation: 15689

Like so: [text to click](url)

Note: This won't work in the title, footer or field titles, if you want a hyperlink in the title use the url kwarg

Upvotes: 10

Related Questions