From d9e938b5c3fea82a434fb022862c7aa15222fe1d Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Wed, 4 Oct 2017 11:49:19 +0200 Subject: [PATCH] Fix Menu bug on RTM driver --- src/SlackRTMDriver.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SlackRTMDriver.php b/src/SlackRTMDriver.php index ac1e1ac..2f74551 100644 --- a/src/SlackRTMDriver.php +++ b/src/SlackRTMDriver.php @@ -133,6 +133,10 @@ private function convertQuestion(Question $question) $questionData = $question->toArray(); $buttons = Collection::make($question->getButtons())->map(function ($button) { + if ($button['type'] === 'select') { + return $button; + } + return array_merge([ 'name' => $button['name'], 'text' => $button['text'],