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