🪄
Canvacard
  • 🥳Welcome
  • 🗂️Classes
    • 🎨Welcome / Leave
    • 🎮FortniteShop
    • 🎯Canvacard
    • 🎶Spotify
    • 🏆Rank
    • 🖋️Plugins
  • 🧰Utils
    • 🔧Abbreviate
    • 🖼️Canvas
    • 🕒Discord Time
    • ⚠️Error
    • 🏳️Flags
    • 🔍Format and Validate Hex
    • ⏰Format Time
    • 📏Format Variable
    • 📅Get Date or String
    • 🔍Icon
    • 🔢Is Number
    • 🔤Is String
    • 🖼️Parse Image
    • 📄Parse PNG
    • 📄Parse SVG
    • 🔽Shorten
    • ✂️Truncate Text
    • 👤Username
Powered by GitBook
On this page
  • Classes
  • Functions
  • FortniteShop
  • setToken(value) ⇒ FortniteShop
  • setText(value) ⇒ FortniteShop
  • build([font]) ⇒ Promise.<Buffer>
  1. Classes

FortniteShop

PreviousWelcome / LeaveNextCanvacard

Last updated 6 months ago

Classes

Functions

⇒

Set the Fortnite API token

⇒

Set the text for the Fortnite Shop card

⇒ Promise.<Buffer>

Build the Fortnite Shop card

FortniteShop

Kind: global class

new FortniteShop()

Fortnite Shop card creator

PREVIEW

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");

Set the Fortnite API token

  • APIError If the value is not a string

Param
Type
Description

value

string

Fortnite API token

Set the text for the Fortnite Shop card

  • APIError If the value is not a string

Param
Type
Description

value

string

Text to set for the card

build([font]) ⇒ 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]

string

"&quot;Arial&quot;"

Font to use for the card

To obtain a Fortnite API token, visit

setToken(value) ⇒

Kind: global function Returns: - The current instance of FortniteShop Throws:

setText(value) ⇒

Kind: global function Returns: - The current instance of FortniteShop Throws:

🗂️
🎮
fortnite-api.com
FortniteShop
FortniteShop
FortniteShop
FortniteShop
FortniteShop
setToken(value)
FortniteShop
setText(value)
FortniteShop
build([font])