actions
actions: {
makeWebRequest: {
format: "parameters" | "json" | "discord";
url: string;
value: string;
}[];
playAnimation: {
animationUuid?: string;
colors: string[];
duration?: number;
face: number;
faceMask?: number;
fade?: number;
intensity?: number;
loopCount: number;
}[];
playAudioClip: {
clipUuid?: string;
loopCount: number;
volume: number;
}[];
speakText: {
pitch: number;
rate: number;
text: string;
volume: number;
}[];
}
brightness
brightness: number
colorway
colorway:
| "unknown"
| "onyxBlack"
| "hematiteGrey"
| "midnightGalaxy"
| "auroraSky"
| "clear"
| "whiteAurora"
| "custom"
conditions
conditions: {
battery: {
flags: (
| "ok"
| "low"
| "charging"
| "done"
| "badCharging"
| "error")[];
recheckAfter: number;
}[];
connection: {
flags: ("connected" | "disconnected")[];
}[];
helloGoodbye: {
flags: ("hello" | "goodbye")[];
}[];
idle: {
period: number;
}[];
rolled: {
faces: number[];
}[];
rolling: {
recheckAfter: number;
}[];
}
creationDate
creationDate: number
description
description: string
dieType
dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge"
lastModified
lastModified: number
rules
rules: {
actions: {
index: number;
type:
| "playAnimation"
| "playAudioClip"
| "makeWebRequest"
| "speakText";
}[];
condition: {
index: number;
type:
| "helloGoodbye"
| "handling"
| "rolling"
| "crooked"
| "connection"
| "battery"
| "idle"
| "rolled";
};
}[]