From b0c3897e4516624ba41fbc56b63064f12bb3a506 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 1 Feb 2022 08:57:35 +1100 Subject: [PATCH] Remove calls to new Block that were missed from #b2cd5c7 --- src/Command/Base.php | 2 -- src/Listeners/ShortcutListener.php | 1 - 2 files changed, 3 deletions(-) diff --git a/src/Command/Base.php b/src/Command/Base.php index 51e6b5d..9deb861 100644 --- a/src/Command/Base.php +++ b/src/Command/Base.php @@ -58,8 +58,6 @@ abstract class Base extends SlackBase $o = new Message; if (! $this->channel() || ! $this->channel()->active) { - $blocks = new Blocks; - $o->addAttachment( Message\Attachment::item() ->title(':robot_face: Bot not in this channel') diff --git a/src/Listeners/ShortcutListener.php b/src/Listeners/ShortcutListener.php index d4c22c1..75eea47 100644 --- a/src/Listeners/ShortcutListener.php +++ b/src/Listeners/ShortcutListener.php @@ -27,7 +27,6 @@ class ShortcutListener //implements ShouldQueue { if (! $event->channel() || ! $event->channel()->active) { $modal = new Modal(Text::item(config('app.name'),'plain_text')); - $blocks = new Blocks; $modal->addBlock( Header::item(Text::item(':robot_face: Bot not in this channel','plain_text'))