diff --git a/README.md b/README.md index fc736eb..ddd0d06 100644 --- a/README.md +++ b/README.md @@ -353,6 +353,11 @@ The user object represents an in-game player. - `minecraft:the_nether` - The Nether - `minecraft:the_end` - The End - afk - If the player is AFK +- alt - If the player is an alt account +- bot - If the player is a bot +- supporter - the current public tier of the player's supporter status. This will be `0` if the player is not a + supporter or has opted out of showing their supporter tag, `1` for a Tier 1 supporter, `2` for a Tier 2 supporter, and + `3` for a Tier 3 supporter. ### DiscordUser object diff --git a/package.json b/package.json index 61692ca..789e2d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "switchchat", - "version": "3.1.3", + "version": "3.1.4", "description": "Framework for the SwitchCraft Chatbox v2", "main": "dist/index.js", "types": "types/index.d.ts", diff --git a/src/types/User.ts b/src/types/User.ts index b4b560e..e648837 100644 --- a/src/types/User.ts +++ b/src/types/User.ts @@ -37,4 +37,17 @@ export interface User { /** Whether the player is currently AFK. */ afk?: boolean; + + /** Whether the player is an alt account. */ + alt: boolean; + + /** Whether the player is a bot account. */ + bot: boolean; + + /** + * The current public tier of the player's supporter status. This will be `0` if the player is not a supporter or + * has opted out of showing their supporter tag, `1` for a Tier 1 supporter, `2` for a Tier 2 supporter, and `3` for + * a Tier 3 supporter. + */ + supporter: number; }