Skip to content

Commit 3a5ece9

Browse files
Maxmikhaylovma
andauthored
add ability to set param in disableNotification (#70)
* add ability to set param in disableNotification * fix camelCase Co-authored-by: mikhaylovma <[email protected]>
1 parent 2bcaa3b commit 3a5ece9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Traits/HasSharedLogic.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ public function button($text, $url, $columns = 2): self
5151
* Send the message silently.
5252
* Users will receive a notification with no sound.
5353
*
54+
* @param bool $disableNotification
5455
* @return $this
5556
*/
56-
public function disableNotification(): self
57+
public function disableNotification(bool $disableNotification = true): self
5758
{
58-
$this->payload['disable_notification'] = true;
59+
$this->payload['disable_notification'] = $disableNotification;
5960

6061
return $this;
6162
}

0 commit comments

Comments
 (0)