Type parameters
-
Res: APIMessage | null = APIMessage
Constructors
constructor
- new Embed<Res>(sendback?: (embed: Embed<Res>, reply: boolean, mention: boolean, ephermal: boolean) => Promise<Res>): Embed<Res>
-
Type parameters
-
Res: null | APIMessage = APIMessage
Parameters
-
Optional sendback: (embed: Embed<Res>, reply: boolean, mention: boolean, ephermal: boolean) => Promise<Res>
-
- (embed: Embed<Res>, reply: boolean, mention: boolean, ephermal: boolean): Promise<Res>
-
Parameters
-
embed: Embed<Res>
-
reply: boolean
-
mention: boolean
-
ephermal: boolean
Returns Promise<Res>
Returns Embed<Res>
Methods
author
- author(name?: string, icon?: string, url?: string): Embed<Res>
-
Parameters
-
Optional name: string
-
Optional icon: string
-
Optional url: string
Returns Embed<Res>
color
- color(color: number | "Lavender" | "Thistle" | "Plum" | "Violet" | "Orchid" | "Fuchsia" | "Magenta" | "MediumOrchid" | "MediumPurple" | "BlueViolet" | "DarkViolet" | "DarkOrchid" | "DarkMagenta" | "Purple" | "Indigo" | "DarkSlateBlue" | "SlateBlue" | "MediumSlateBlue" | "Pink" | "LightPink" | "HotPink" | "DeepPink" | "PaleVioletRed" | "MediumVioletRed" | "LightSalmon" | "Salmon" | "DarkSalmon" | "LightCoral" | "IndianRed" | "Crimson" | "FireBrick" | "DarkRed" | "Red" | "OrangeRed" | "Tomato" | "Coral" | "DarkOrange" | "Orange" | "Yellow" | "LightYellow" | "LemonChiffon" | "LightGoldenrodYellow" | "PapayaWhip" | "Moccasin" | "PeachPuff" | "PaleGoldenrod" | "Khaki" | "DarkKhaki" | "Gold" | "Cornsilk" | "BlanchedAlmond" | "Bisque" | "NavajoWhite" | "Wheat" | "BurlyWood" | "Tan" | "RosyBrown" | "SandyBrown" | "Goldenrod" | "DarkGoldenrod" | "Peru" | "Chocolate" | "SaddleBrown" | "Sienna" | "Brown" | "Maroon" | "DarkOliveGreen" | "Olive" | "OliveDrab" | "YellowGreen" | "LimeGreen" | "Lime" | "LawnGreen" | "Chartreuse" | "GreenYellow" | "SpringGreen" | "MediumSpringGreen" | "LightGreen" | "PaleGreen" | "DarkSeaGreen" | "MediumSeaGreen" | "SeaGreen" | "ForestGreen" | "Green" | "DarkGreen" | "MediumAquamarine" | "Aqua" | "Cyan" | "LightCyan" | "PaleTurquoise" | "Aquamarine" | "Turquoise" | "MediumTurquoise" | "DarkTurquoise" | "LightSeaGreen" | "CadetBlue" | "DarkCyan" | "Teal" | "LightSteelBlue" | "PowderBlue" | "LightBlue" | "SkyBlue" | "LightSkyBlue" | "DeepSkyBlue" | "DodgerBlue" | "CornflowerBlue" | "SteelBlue" | "RoyalBlue" | "Blue" | "MediumBlue" | "DarkBlue" | "Navy" | "MidnightBlue" | "White" | "Snow" | "Honeydew" | "MintCream" | "Azure" | "AliceBlue" | "GhostWhite" | "WhiteSmoke" | "Seashell" | "Beige" | "OldLace" | "FloralWhite" | "Ivory" | "AntiqueWhite" | "Linen" | "LavenderBlush" | "MistyRose" | "Gainsboro" | "LightGray" | "Silver" | "DarkGray" | "Gray" | "DimGray" | "LightSlateGray" | "SlateGray" | "DarkSlateGray" | "Black"): Embed<Res>
-
Parameters
-
color: number | "Lavender" | "Thistle" | "Plum" | "Violet" | "Orchid" | "Fuchsia" | "Magenta" | "MediumOrchid" | "MediumPurple" | "BlueViolet" | "DarkViolet" | "DarkOrchid" | "DarkMagenta" | "Purple" | "Indigo" | "DarkSlateBlue" | "SlateBlue" | "MediumSlateBlue" | "Pink" | "LightPink" | "HotPink" | "DeepPink" | "PaleVioletRed" | "MediumVioletRed" | "LightSalmon" | "Salmon" | "DarkSalmon" | "LightCoral" | "IndianRed" | "Crimson" | "FireBrick" | "DarkRed" | "Red" | "OrangeRed" | "Tomato" | "Coral" | "DarkOrange" | "Orange" | "Yellow" | "LightYellow" | "LemonChiffon" | "LightGoldenrodYellow" | "PapayaWhip" | "Moccasin" | "PeachPuff" | "PaleGoldenrod" | "Khaki" | "DarkKhaki" | "Gold" | "Cornsilk" | "BlanchedAlmond" | "Bisque" | "NavajoWhite" | "Wheat" | "BurlyWood" | "Tan" | "RosyBrown" | "SandyBrown" | "Goldenrod" | "DarkGoldenrod" | "Peru" | "Chocolate" | "SaddleBrown" | "Sienna" | "Brown" | "Maroon" | "DarkOliveGreen" | "Olive" | "OliveDrab" | "YellowGreen" | "LimeGreen" | "Lime" | "LawnGreen" | "Chartreuse" | "GreenYellow" | "SpringGreen" | "MediumSpringGreen" | "LightGreen" | "PaleGreen" | "DarkSeaGreen" | "MediumSeaGreen" | "SeaGreen" | "ForestGreen" | "Green" | "DarkGreen" | "MediumAquamarine" | "Aqua" | "Cyan" | "LightCyan" | "PaleTurquoise" | "Aquamarine" | "Turquoise" | "MediumTurquoise" | "DarkTurquoise" | "LightSeaGreen" | "CadetBlue" | "DarkCyan" | "Teal" | "LightSteelBlue" | "PowderBlue" | "LightBlue" | "SkyBlue" | "LightSkyBlue" | "DeepSkyBlue" | "DodgerBlue" | "CornflowerBlue" | "SteelBlue" | "RoyalBlue" | "Blue" | "MediumBlue" | "DarkBlue" | "Navy" | "MidnightBlue" | "White" | "Snow" | "Honeydew" | "MintCream" | "Azure" | "AliceBlue" | "GhostWhite" | "WhiteSmoke" | "Seashell" | "Beige" | "OldLace" | "FloralWhite" | "Ivory" | "AntiqueWhite" | "Linen" | "LavenderBlush" | "MistyRose" | "Gainsboro" | "LightGray" | "Silver" | "DarkGray" | "Gray" | "DimGray" | "LightSlateGray" | "SlateGray" | "DarkSlateGray" | "Black"
Returns Embed<Res>
description
- description(desc: string): Embed<Res>
-
Parameters
Returns Embed<Res>
field
- field(name: string, value: string, inline?: boolean): Embed<Res>
-
Parameters
-
name: string
-
value: string
-
Optional inline: boolean
Returns Embed<Res>
footer
- footer(text?: string, icon?: string): Embed<Res>
-
Parameters
-
Optional text: string
-
Optional icon: string
Returns Embed<Res>
image
- image(url: string, width?: number, height?: number): Embed<Res>
-
Parameters
-
url: string
-
Optional width: number
-
Optional height: number
Returns Embed<Res>
send
- send(reply?: boolean, mention?: boolean, ephermal?: boolean): Promise<Res>
-
Parameters
-
reply: boolean = true
-
mention: boolean = false
-
ephermal: boolean = false
Returns Promise<Res>
thumbnail
- thumbnail(url: string, width?: number, height?: number): Embed<Res>
-
Parameters
-
url: string
-
Optional width: number
-
Optional height: number
Returns Embed<Res>
timestamp
- timestamp(date?: Date): Embed<Res>
-
Parameters
Returns Embed<Res>
title
- title(title?: string, url?: string): Embed<Res>
-
Parameters
-
Optional title: string
-
Optional url: string
Returns Embed<Res>
Discord Embed