

set_footer (text = 'Disco Message Embeds tutorial' )Įmbed. Last up, let's set a footer, color and add a timestamp: embed. For example, creating some **bold** or ~~strikethrough~~ text.' description = 'This is the general description of the embed, you can use the Discord supported MD in here too, to make it look extra fancy. add_field (name = 'A non-inline field', value = 'You can only have a max of 3 inline field on 1 line', inline = False )Įmbed. add_field (name = 'Inline field 3', value = 'Third value for the third field', inline = True )Įmbed.

add_field (name = 'Inline field 2', value = 'Another value for another field', inline = True )Įmbed. add_field (name = 'Inline field 1', value = 'Some value for this field', inline = True )Įmbed. Now, we can add a description and a few fields: embed. url = '' #This URL will be hooked up to the title of the embed First, lets set the author and the title, with a link that leads to this page. Now that we have that, let's assign some values to it. This will create a default, empty, Discord Embed object. message import MessageEmbed #We need this to create the embed from datetime import datetime #We need this to set the timestamp

Color (sets the color of the left sidebar of the embed)Ĭreating an embed is simple, and can be done like this: from disco.An Embed object is another component of Discord messages that can be used to present data with special formatting and structure.Īn embed can contain the following components: A Message Embed represents a Discord Embed object.
