๐จWelcome / Leave
Classes
Functions
setAvatar(value) โ WelcomeLeave
Set the avatar of the card
setTitulo(value, color) โ WelcomeLeave
Set the title of the card
setSubtitulo(value, color) โ WelcomeLeave
Set the subtitle of the card
setColorCircle(value) โ WelcomeLeave
Set the color of the circle
setColorOverlay(value) โ WelcomeLeave
Set the color of the overlay
setOpacityOverlay(value) โ WelcomeLeave
Set the opacity of the overlay
setBackground(type, data) โ WelcomeLeave
Set background image/color of the card
setTypeOverlay(type) โ WelcomeLeave
Set the type of overlay
build([font]) โ Promise.<Buffer>
Build the card
WelcomeLeave
Kind: global class
new WelcomeLeave()
Welcome or Leave card creator
Example
setAvatar(value) โ WelcomeLeave
WelcomeLeave
Set the avatar of the card
Kind: global function
Returns: WelcomeLeave
- The current instance of WelcomeLeave
Throws:
APIError
Missing field: avatar
setTitulo(value, color) โ WelcomeLeave
WelcomeLeave
Set the title of the card
Kind: global function
Returns: WelcomeLeave
- The current instance of WelcomeLeave
Throws:
APIError
The title must be a string
setSubtitulo(value, color) โ WelcomeLeave
WelcomeLeave
Set the subtitle of the card
Kind: global function
Returns: WelcomeLeave
- The current instance of WelcomeLeave
Throws:
APIError
The subtitle must be a string
setColorCircle(value) โ WelcomeLeave
WelcomeLeave
Set the color of the circle
Kind: global function
Returns: WelcomeLeave
- The current instance of WelcomeLeave
Throws:
APIError
The color must be a string
setColorOverlay(value) โ WelcomeLeave
WelcomeLeave
Set the color of the overlay
Kind: global function
Returns: WelcomeLeave
- The current instance of WelcomeLeave
Throws:
APIError
The color must be a string
setOpacityOverlay(value) โ WelcomeLeave
WelcomeLeave
Set the opacity of the overlay
Kind: global function
Returns: WelcomeLeave
- The current instance of WelcomeLeave
Throws:
APIError
The opacity must be a number
setBackground(type, data) โ WelcomeLeave
WelcomeLeave
Set background image/color of the card
Kind: global function
Returns: WelcomeLeave
- The current instance of WelcomeLeave
Throws:
APIError
Missing field: data
setTypeOverlay(type) โ WelcomeLeave
WelcomeLeave
Set the type of overlay
Kind: global function
Returns: WelcomeLeave
- The current instance of WelcomeLeave
Throws:
APIError
Missing field: type
build([font]) โ Promise.<Buffer>
Promise.<Buffer>
Build the card
Kind: global function
Returns: Promise.<Buffer>
- Card image in buffer format
Throws:
APIError
Error loading background image
Last updated