Skip to content

Commit ae5354c

Browse files
committed
Update TextInput.php
1 parent 87c40a1 commit ae5354c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Discord/Builders/Components/TextInput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class TextInput extends Interactive
103103
* @param int $style The style of the text input.
104104
* @param string|null $custom_id The custom ID of the text input. If not given, a UUID will be used
105105
*/
106-
public function __construct(?string $label = null, int $style, ?string $custom_id = null)
106+
public function __construct(?string $label, int $style, ?string $custom_id = null)
107107
{
108108
$this->setLabel($label);
109109
$this->setStyle($style);
@@ -119,7 +119,7 @@ public function __construct(?string $label = null, int $style, ?string $custom_i
119119
*
120120
* @return self
121121
*/
122-
public static function new(?string $label = null, int $style, ?string $custom_id = null): self
122+
public static function new(?string $label, int $style, ?string $custom_id = null): self
123123
{
124124
return new self($label, $style, $custom_id);
125125
}

0 commit comments

Comments
 (0)