Commit 7004c687 authored by Frangu Vlad's avatar Frangu Vlad Committed by Hugo "ThePooN" Denizart

Make content getter (#2)

* Make content getter

* Update index.d.ts
parent 9994dee3
......@@ -621,6 +621,7 @@ declare module "bancho.js" {
user: BanchoUser
message: string
self: boolean
readonly content: string
}
/**
......@@ -847,4 +848,4 @@ declare module "bancho.js" {
export const BanchoLobbyWinConditions: BanchoLobbyWinConditionsTypes
export const BanchoMods: BanchoModsTypes
export const ConnectStates: ConnectStateTypes
}
\ No newline at end of file
}
......@@ -20,6 +20,14 @@ class BanchoMessage {
this.message = message;
this.self = self;
}
/**
* The content of this message
* @type {string}
*/
get content() {
return this.message;
}
}
module.exports = BanchoMessage;
\ No newline at end of file
module.exports = BanchoMessage;
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