Comparing version 2.0.0 to 2.0.1
@@ -9,3 +9,3 @@ export declare class Crispy { | ||
connect(): Promise<unknown>; | ||
join(room: string): void; | ||
join(room: string, user: object | undefined): void; | ||
getIgnoreList(roomName: string): void; | ||
@@ -12,0 +12,0 @@ checkYoutube(notify: boolean): void; |
@@ -63,5 +63,5 @@ "use strict"; | ||
} | ||
join(room) { | ||
join(room, user) { | ||
if (this.io) { | ||
this.io.emit("room::join", { room }); | ||
this.io.emit("room::join", { room, user }); | ||
} | ||
@@ -68,0 +68,0 @@ else { |
{ | ||
"name": "crispybot", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "An annoying bot.", | ||
@@ -5,0 +5,0 @@ "main": "dist/crispy.js", |
@@ -67,5 +67,5 @@ import io from "socket.io-client"; | ||
public join(room: string) { | ||
public join(room: string, user: object | undefined) { | ||
if (this.io) { | ||
this.io.emit("room::join", { room }); | ||
this.io.emit("room::join", { room, user }); | ||
} else { | ||
@@ -72,0 +72,0 @@ throw new Error("Socket disconnected!"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
64888
0