Fixes for Button elements
This commit is contained in:
parent
64228796ae
commit
9611939c57
@ -42,13 +42,6 @@ final class Button extends Element
|
||||
|
||||
/* OPTIONAL ITEMS */
|
||||
|
||||
public function callback_id(string $string): self
|
||||
{
|
||||
$this->callback_id = $string;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function confirm(Confirm $confirm): self
|
||||
{
|
||||
$this->confirm = $confirm;
|
||||
|
@ -113,6 +113,8 @@ final class BlockActions extends Base
|
||||
|
||||
case 'value':
|
||||
switch (object_get($this->action,'type')) {
|
||||
case 'button':
|
||||
return object_get($this->action,'text.text');
|
||||
case 'external_select':
|
||||
case 'overflow':
|
||||
case 'static_select':
|
||||
|
Loading…
Reference in New Issue
Block a user