Skip to content

Commit

Permalink
getFlags returns 0 if null
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming authored Feb 25, 2025
1 parent 0c0244f commit 859ef46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Discord/Builders/MessageBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -643,11 +643,11 @@ public function setFlags(int $flags): self
/**
* Get the current flags of the message.
*
* @return ?int
* @return int
*/
public function getFlags(): ?int
public function getFlags(): int
{
return $this->flags ?? null;
return $this->flags ?? 0;
}

/**
Expand Down

0 comments on commit 859ef46

Please sign in to comment.