From 468354f6a8fb84d9fc01eb28cd956ead2dba5ed0 Mon Sep 17 00:00:00 2001 From: Laurynas Karvelis Date: Mon, 24 Dec 2018 13:51:28 +0200 Subject: [PATCH] feature: allow sending silent notifications --- src/types/Base.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/types/Base.js b/src/types/Base.js index d8ba44d..8e0fffe 100644 --- a/src/types/Base.js +++ b/src/types/Base.js @@ -81,6 +81,15 @@ export default class Base extends EventEmitter { return bot.api[this.method](this.properties); } + /** + * Set disable_notification property to true (send a silent notification) + * @returns {object} returns the message object + */ + disableNotification() { + this.properties.disable_notification = true; + return this; + } + /** * Returns properties of the object * @return {object} properties of object -- 2.34.1