🎮FortniteShop
Last updated
Last updated
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
Kind: global class
Fortnite Shop card creator
To obtain a Fortnite API token, visit fortnite-api.com
Example
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
Param | Type | Description |
---|---|---|
value |
| Fortnite API token |
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
Param | Type | Description |
---|---|---|
value |
| Text to set for the card |
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
Param | Type | Default | Description |
---|---|---|---|
[font] |
|
| Font to use for the card |