Commit 7004c687 authored by Frangu Vlad's avatar Frangu Vlad Committed by Hugo Denizart
Browse files

Make content getter (#2)

* Make content getter

* Update index.d.ts
parent 9994dee3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -621,6 +621,7 @@ declare module "bancho.js" {
		user: BanchoUser
		message: string
		self: boolean
		readonly content: string
	}

	/**
+9 −1
Original line number Diff line number Diff line
@@ -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;