Welcome / Leave
Last updated
Last updated
⇒
Set the avatar of the card
⇒
Set the title of the card
⇒
Set the subtitle of the card
⇒
Set the color of the circle
⇒
Set the color of the overlay
⇒
Set the opacity of the overlay
⇒
Set background image/color of the card
Set the type of overlay
Build the card
Kind: global class
Welcome or Leave card creator
Example
Set the avatar of the card
APIError
Missing field: avatar
value
string
| Buffer
Avatar URL or Buffer
Set the title of the card
APIError
The title must be a string
value
string
Title value
color
string
HTML5 color code "#000000"
Set the subtitle of the card
APIError
The subtitle must be a string
value
string
Subtitle value
color
string
HTML5 color code "#000000"
Set the color of the circle
APIError
The color must be a string
value
string
HTML5 color code "#000000"
Set the color of the overlay
APIError
The color must be a string
value
string
HTML5 color code "#000000"
Set the opacity of the overlay
APIError
The opacity must be a number
value
number
Opacity value (0 to 1)
Set background image/color of the card
APIError
Missing field: data
type
"COLOR"
| "IMAGE"
Type of background
data
string
Image URL or HTML color code
Set the type of overlay
APIError
Missing field: type
type
"RECTANGLE"
| "ROUNDED"
Type of overlay
Promise.<Buffer>
Build the card
Kind: global function
Returns: Promise.<Buffer>
- Card image in buffer format
Throws:
APIError
Error loading background image
[font]
string
"Arial"
Font to use in the card
⇒
⇒ Promise.<Buffer>
Kind: global function Returns: - The current instance of WelcomeLeave Throws:
Kind: global function Returns: - The current instance of WelcomeLeave Throws:
Kind: global function Returns: - The current instance of WelcomeLeave Throws:
Kind: global function Returns: - The current instance of WelcomeLeave Throws:
Kind: global function Returns: - The current instance of WelcomeLeave Throws:
Kind: global function Returns: - The current instance of WelcomeLeave Throws:
Kind: global function Returns: - The current instance of WelcomeLeave Throws:
Kind: global function Returns: - The current instance of WelcomeLeave Throws: