🎮FortniteShop
Classes
Functions
setToken(value) ⇒ FortniteShop
Set the Fortnite API token
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
const shop = new canvacard.FortniteShop()
.setToken("f4a26b940ef54a9a4238cef040bd08fa9001cd6c")
.setText("footer", "ESP CUSTOMS X FORTNITE")
const FortniteShopImage = await shop.build("Luckiest Guy");
canvacard.write(FortniteShopImage, "./fortnite_shop.png");
setToken(value) ⇒ FortniteShop
FortniteShop
Set the Fortnite API token
Kind: global function
Returns: FortniteShop
- The current instance of FortniteShop
Throws:
APIError
If the value is not a string
value
string
Fortnite API token
setText(value) ⇒ FortniteShop
FortniteShop
Set the text for the Fortnite Shop card
Kind: global function
Returns: FortniteShop
- The current instance of FortniteShop
Throws:
APIError
If 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:
APIError
If the token is not provided
[font]
string
""Arial""
Font to use for the card
Last updated