Fixes for Button elements

This commit is contained in:
Deon George 2022-08-25 13:44:03 +10:00
parent 64228796ae
commit 9611939c57
2 changed files with 2 additions and 7 deletions

View File

@ -42,13 +42,6 @@ final class Button extends Element
/* OPTIONAL ITEMS */ /* OPTIONAL ITEMS */
public function callback_id(string $string): self
{
$this->callback_id = $string;
return $this;
}
public function confirm(Confirm $confirm): self public function confirm(Confirm $confirm): self
{ {
$this->confirm = $confirm; $this->confirm = $confirm;

View File

@ -113,6 +113,8 @@ final class BlockActions extends Base
case 'value': case 'value':
switch (object_get($this->action,'type')) { switch (object_get($this->action,'type')) {
case 'button':
return object_get($this->action,'text.text');
case 'external_select': case 'external_select':
case 'overflow': case 'overflow':
case 'static_select': case 'static_select':