Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
feat: licenseOwnerUser in hello packet
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemmmy committed Mar 11, 2024
1 parent 05963d3 commit d344ff8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ You are also able to listen after these packets that are sent by SwitchCraft to

- guest - `boolean` that says if you are authenticated with the guest key
- licenseOwner - `string` that represents who owns the chatbox license
- licenseOwnerUser - `User` that represents who owns the chatbox license, or null if this is a guest connection
- capabilities - Array of `string`s that can tell you what capabilities you have

### Players packet
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "switchchat",
"version": "3.3.0",
"version": "3.3.1",
"description": "Framework for the SwitchCraft Chatbox v2",
"main": "dist/index.js",
"types": "types/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/packets/Hello.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import {Data} from "./Data";
import { User } from "../types";

export interface Hello extends Data {
guest: boolean;
licenseOwner: string;
licenseOwnerUser?: User | null;
capabilities: string[];
}

0 comments on commit d344ff8

Please sign in to comment.