Bestiary

Usage

import { bestiary } from "runescape-api"

Functions

getAreas()

List all bestiary areas

bestiary.getAreas().then(data => {
    console.log(data)
})

getBeast(:id)

Retrieve a beast

Parameter

Type

id

number

bestiary.getBeast(16705).then(data => {
    console.log(data)
})

getBeastsByArea(:area)

List all beasts within a given area

Parameter

Type

area

string | Area

bestiary.getBeastsByArea("Glarial's tomb").then(data => {
    console.log(data)
})

getBeastsByTerms(:term)

List all beasts by a given term

Parameter

Type

term

string

bestiary.getBeastsByTerms("cow").then(data => {
    console.log(data)
})

getBeastsByFirstLetter(:letter)

List all beasts starting with a given letter

Parameter

Type

letter

string

bestiary.getBeastsByFirstLetter("c").then(data => {
    console.log(data)
})

getBeastsBySlayerCategory(:categoryId)

List all beasts within a given slayer category

Parameter

Type

categoryId

number

bestiary.getBeastsBySlayerCategory(45).then(data => {
    console.log(data)
})

getBeastsByWeakness(:weaknessId)

List all beasts with a given weakness

Parameter

Type

weaknessId

number

bestiary.getBeastsByWeakness(7).then(data => {
    console.log(data)
})

getSlayerCategories()

List all slayer categories

bestiary.getSlayerCategories().then(data => {
    console.log(data)
})

getWeaknesses()

List all weaknesses

bestiary.getWeaknesses().then(data => {
    console.log(data)
})

Last updated