Skip to content

Commit

Permalink
Emit Ready Client
Browse files Browse the repository at this point in the history
  • Loading branch information
BrydenIsNotSmart committed Jan 13, 2024
1 parent c893aa1 commit ad24de0
Show file tree
Hide file tree
Showing 2 changed files with 438 additions and 324 deletions.
3 changes: 2 additions & 1 deletion src/client/WebsocketClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export class WebsocketClient {
case OpCodes.DISPATCH:
switch (event) {
case "READY":
console.log(data);
this.client.user = data.user;
this.client.emit("ready", this.client);
break;
}
break;
Expand Down
Loading

0 comments on commit ad24de0

Please sign in to comment.