feature: allow sending silent notifications
This commit is contained in:
parent
5b7c636aed
commit
468354f6a8
@ -81,6 +81,15 @@ export default class Base extends EventEmitter {
|
|||||||
return bot.api[this.method](this.properties);
|
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
|
* Returns properties of the object
|
||||||
* @return {object} properties of object
|
* @return {object} properties of object
|
||||||
|
Loading…
Reference in New Issue
Block a user