Export BanchoMessage, PrivateMessage, ChannelMessage

parent 02a138e5
Pipeline #2049 passed with stage
in 2 minutes and 53 seconds
......@@ -617,7 +617,7 @@ declare module "bancho.js" {
/**
* Bancho incoming message
*/
class BanchoMessage {
export class BanchoMessage {
user: BanchoUser
message: string
self: boolean
......@@ -626,14 +626,14 @@ declare module "bancho.js" {
/**
* The type for channel messages.
*/
class ChannelMessage extends BanchoMessage {
export class ChannelMessage extends BanchoMessage {
channel: BanchoChannel
}
/**
* The type for private messages.
*/
class PrivateMessage extends BanchoMessage {
export class PrivateMessage extends BanchoMessage {
recipient: BanchoUser
}
......
......@@ -11,6 +11,9 @@
class Banchojs {
constructor() {
this.Client = this.BanchoClient = require("./lib/BanchoClient");
this.BanchoMessage = require("./lib/BanchoMessage");
this.PrivateMessage = require("./lib/PrivateMessage");
this.ChannelMessage = require("./lib/ChannelMessage");
this.OutgoingBanchoMessage = require("./lib/OutgoingBanchoMessage");
this.ConnectStates = require("./lib/Enums/ConnectStates");
this.BanchoLobbyPlayerStates = require("./lib/Multiplayer/Enums/BanchoLobbyPlayerStates");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment