Ask coding questions

← Back to all posts
Discord.Py Embed Message instead of regular message
h
replitcode (141)

I came across a bot on the repl.it discord server... Repl Talk... and saw that all of its messages were embedded instead of regular text... how do I make MY messages embedded instead of the regular ones?

Answered by mat1 (4400) [earned 5 cycles]
View Answer
Comments
hotnewtop
mat1 (4400)

You can use
embed = discord.Embed(title='Embed title',description='Embed description')
await client.send_message(message.channel, embed=embed
to send a very simple embed message. You can look at https://discordpy.readthedocs.io/en/latest/api.html#discord.Embed for more things you can do with embeds

Please upvote this comment if it was helpful or useful in any way

replitcode (141)

@mat1 thanks... thats so cool!

HamzaATHAR (0)

Thank you but how to add links

replitcode (141)

@HamzaATHAR easy as putting in the link in the message event. it should automatically convert to hyperlink status in discord! happy coding my friend!