Commit 1b8e0ac7 authored by Hugo Denizart's avatar Hugo Denizart
Browse files

Fix definitions and implementations of is<type> functions in main

parent 802af65a
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -822,21 +822,21 @@ declare module "bancho.js" {
	/** Compares the provided object and return true if the object is an instance of BanchoMod. */
	export function isBanchoMod(mod): boolean
	/** Compares the provided object and return true if the object is an instance of BanchoUser. */
	export function isBanchoUser(mod): boolean
	export function isBanchoUser(user): boolean
	/** Compares the provided object and return true if the object is an instance of BanchoChannel. */
	export function isBanchoChannel(mod): boolean
	export function isBanchoChannel(channel): boolean
	/** Compares the provided object and return true if the object is an instance of BanchoMultiplayerChannel. */
	export function isBanchoMultiplayerChannel(mod): boolean
	export function isBanchoMultiplayerChannel(channel): boolean
	/** Compares the provided object and return true if the object is an instance of BanchoLobby. */
	export function isBanchoLobby(mod): boolean
	export function isBanchoLobby(lobby): boolean
	/** Compares the provided object and return true if the object is an instance of BanchoChannelMember. */
	export function isBanchoChannelMember(mod): boolean
	export function isBanchoChannelMember(member): boolean
	/** Compares the provided object and return true if the object is an instance of BanchoMessage. */
	export function isBanchoMessage(mod): boolean
	export function isBanchoMessage(message): boolean
	/** Compares the provided object and return true if the object is an instance of ChannelMessage. */
	export function isChannelMessage(mod): boolean
	export function isChannelMessage(message): boolean
	/** Compares the provided object and return true if the object is an instance of PrivateMessage. */
	export function isPrivateMessage(mod): boolean
	export function isPrivateMessage(message): boolean

	/**
	 * Contains the different connect states: Disconnected, Connecting, Reconnecting, Connected.
+4 −4
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ class Banchojs {
	 * @param {any} member 
	 */
	isBanchoChannelMember(member) {
		return member instanceof require("./lib/Multiplayer/BanchoChannelMember");
		return member instanceof require("./lib/BanchoChannelMember");
	}

	/**
@@ -80,7 +80,7 @@ class Banchojs {
	 * @param {any} message 
	 */
	isBanchoMessage(message) {
		return message instanceof require("./lib/Multiplayer/BanchoMessage");
		return message instanceof require("./lib/BanchoMessage");
	}

	/**
@@ -89,7 +89,7 @@ class Banchojs {
	 * @param {any} message 
	 */
	isChannelMessage(message) {
		return message instanceof require("./lib/Multiplayer/ChannelMessage");
		return message instanceof require("./lib/ChannelMessage");
	}

	/**
@@ -98,7 +98,7 @@ class Banchojs {
	 * @param {any} message 
	 */
	isPrivateMessage(message) {
		return message instanceof require("./lib/Multiplayer/PrivateMessage");
		return message instanceof require("./lib/PrivateMessage");
	}
}