Skip to content

Commit a2e8393

Browse files
committed
Update Skywars Typescript Types
1 parent 25c1150 commit a2e8393

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

src/structures/MiniGames/SkyWars.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,5 +637,33 @@ w */
637637
* * `Rainbow`
638638
* * `Mythic`
639639
*/
640+
/**
641+
* @typedef {string} SkyWarsPrestigeIcons
642+
* * '⋆'
643+
* * '★'
644+
* * '☆'
645+
* * '⁕',
646+
* * '✶',
647+
* * '✳',
648+
* * '✴',
649+
* * '✷',
650+
* * '❋',
651+
* * '✼',
652+
* * '❂',
653+
* * '❁',
654+
* * '☬',
655+
* * '✙',
656+
* * '❤️',
657+
* * '☠',
658+
* * '✦',
659+
* * '✌',
660+
* * '❦',
661+
* * '✵',
662+
* * '❣',
663+
* * '☯',
664+
* * '✺',
665+
* * 'ಠ_ಠ',
666+
* * '⚔'
667+
*/
640668

641669
module.exports = SkyWars;

typings/index.d.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export type GAME_CODE =
130130
| 'SMP'
131131
| 'WOOL_GAMES';
132132
export type SKYWARS_PRESTIGE =
133+
| 'Iron'
133134
| 'Iron'
134135
| 'Gold'
135136
| 'Diamond'
@@ -3085,6 +3086,15 @@ declare module 'hypixel-api-reborn' {
30853086
fastestWin: number;
30863087
heads: number;
30873088
}
3089+
class SkywarsMode {
3090+
constructor(data: Record<string, unknown>, gamemode: string);
3091+
kills: number;
3092+
deaths: number;
3093+
KDRatio: number;
3094+
wins: number;
3095+
losses: number;
3096+
WLRatio: number;
3097+
}
30883098
class SkyWars {
30893099
constructor(data: Record<string, unknown>);
30903100
coins: number;
@@ -3094,8 +3104,8 @@ declare module 'hypixel-api-reborn' {
30943104
level: number;
30953105
levelProgress: LevelProgress;
30963106
levelFormatted: string;
3097-
prestige: SkyWarsPrestige;
3098-
prestigeIcon: SkyWarsPrestigeIcons;
3107+
prestige: SKYWARS_PRESTIGE;
3108+
prestigeIcon: SKYWARS_PRESTIGE_ICON;
30993109
opals: number;
31003110
avarice: number;
31013111
tenacity: number;

0 commit comments

Comments
 (0)