๐ฎFortniteShop
Classes
Functions
setToken(value) โ FortniteShop
Set the Fortnite API token
setText(value) โ FortniteShop
Set the text for the Fortnite Shop card
build([font]) โ Promise.<Buffer>
Build the Fortnite Shop card
FortniteShop
Kind: global class
new FortniteShop()
Fortnite Shop card creator
To obtain a Fortnite API token, visit fortnite-api.com
Example
setToken(value) โ FortniteShop
FortniteShopSet the Fortnite API token
Kind: global function
Returns: FortniteShop - The current instance of FortniteShop
Throws:
APIErrorIf the value is not a string
value
string
Fortnite API token
setText(value) โ FortniteShop
FortniteShopSet the text for the Fortnite Shop card
Kind: global function
Returns: FortniteShop - The current instance of FortniteShop
Throws:
APIErrorIf the value is not a string
value
string
Text to set for the card
build([font]) โ Promise.<Buffer>
Promise.<Buffer>Build the Fortnite Shop card
Kind: global function
Returns: Promise.<Buffer> - Card image in buffer format
Throws:
APIErrorIf the token is not provided
[font]
string
""Arial""
Font to use for the card
Last updated
