Skip to content

Commit

Permalink
Remove undesired nullsafe
Browse files Browse the repository at this point in the history
It always returns 0 if it would otherwise be null
  • Loading branch information
valzargaming authored Feb 25, 2025
1 parent 859ef46 commit 35ee22c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Discord/Parts/Interactions/Interaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public function sendFollowUpMessage(MessageBuilder $builder, bool $ephemeral = f
}

if ($ephemeral) {
$builder->setFlags(($builder->getFlags() ?? 0) | Message::FLAG_EPHEMERAL);
$builder->setFlags($builder->getFlags() | Message::FLAG_EPHEMERAL);
}

return (function () use ($builder): PromiseInterface {
Expand Down Expand Up @@ -434,7 +434,7 @@ public function respondWithMessage(MessageBuilder|string $builder, bool $ephemer
}

if ($ephemeral) {
$builder->setFlags(($builder->getFlags() ?? 0) | Message::FLAG_EPHEMERAL);
$builder->setFlags($builder->getFlags() | Message::FLAG_EPHEMERAL);
}

return $this->respond([
Expand Down

0 comments on commit 35ee22c

Please sign in to comment.