Skip to main content

new


General

Creates an embed.


Usage

Embed.new((array) data)
Returns: <Embed> embed


Example

local Embed = Okwo.class.Embed

Embed.new({
  	title = "A test embed",
  	description = "This is a test embed! Yay",
	fields = {
		{
        	name = "Test Field",
          	value = "Test Value :D"
        }
    },
  	footer = {
    	text = "Some text"
    }
})