Class: Banchojs

Banchojs

Main Banchojs class


new Banchojs()

Properties:
Name Type Description
BanchoClient BanchoClient

The BanchoClient class (Client alias is kept for history purposes)

OutgoingBanchoMessage OutgoingBanchoMessage

The OutgoingMessage class to produce messages

ConnectStates ConnectStates

An enum containing all the possible ConnectStates of bancho.js

BanchoLobbyPlayerStates BanchoLobbyPlayerStates

An enum containing the different player states for players in lobbies

BanchoLobbyTeamModes BanchoLobbyTeamModes

An enum containing the 4 different team modes in Bancho

BanchoLobbyTeams BanchoLobbyTeams

An enum containing the 2 different teams in a multiplayer lobby

BanchoLobbyWinConditions BanchoLobbyWinConditions

An enum containing the 4 win conditions on Bancho

Source:

Methods


isBanchoChannel(channel)

Compares the provided object and return true if the object is an instance of BanchoChannel.

Parameters:
Name Type Description
channel any
Source:

isBanchoChannelMember(member)

Compares the provided object and return true if the object is an instance of BanchoChannelMember.

Parameters:
Name Type Description
member any
Source:

isBanchoLobby(lobby)

Compares the provided object and return true if the object is an instance of BanchoLobby.

Parameters:
Name Type Description
lobby any
Source:

isBanchoMessage(message)

Compares the provided object and return true if the object is an instance of BanchoMessage.

Parameters:
Name Type Description
message any
Source:

isBanchoMod(mod)

Compares the provided object and return true if the object is an instance of BanchoMod.

Parameters:
Name Type Description
mod any
Source:

isBanchoMultiplayerChannel(channel)

Compares the provided object and return true if the object is an instance of BanchoMultiplayerChannel.

Parameters:
Name Type Description
channel any
Source:

isBanchoUser(user)

Compares the provided object and return true if the object is an instance of BanchoUser.

Parameters:
Name Type Description
user any
Source:

isChannelMessage(message)

Compares the provided object and return true if the object is an instance of ChannelMessage.

Parameters:
Name Type Description
message any
Source:

isPrivateMessage(message)

Compares the provided object and return true if the object is an instance of PrivateMessage.

Parameters:
Name Type Description
message any
Source: