Remove calls to new Block that were missed from #b2cd5c7

This commit is contained in:
Deon George 2022-02-01 08:57:35 +11:00
parent 3a7f411020
commit b0c3897e45
2 changed files with 0 additions and 3 deletions

View File

@ -58,8 +58,6 @@ abstract class Base extends SlackBase
$o = new Message; $o = new Message;
if (! $this->channel() || ! $this->channel()->active) { if (! $this->channel() || ! $this->channel()->active) {
$blocks = new Blocks;
$o->addAttachment( $o->addAttachment(
Message\Attachment::item() Message\Attachment::item()
->title(':robot_face: Bot not in this channel') ->title(':robot_face: Bot not in this channel')

View File

@ -27,7 +27,6 @@ class ShortcutListener //implements ShouldQueue
{ {
if (! $event->channel() || ! $event->channel()->active) { if (! $event->channel() || ! $event->channel()->active) {
$modal = new Modal(Text::item(config('app.name'),'plain_text')); $modal = new Modal(Text::item(config('app.name'),'plain_text'));
$blocks = new Blocks;
$modal->addBlock( $modal->addBlock(
Header::item(Text::item(':robot_face: Bot not in this channel','plain_text')) Header::item(Text::item(':robot_face: Bot not in this channel','plain_text'))