Skip to content

Commit

Permalink
workaround fix react/event-loop 1.2+ compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
SQKo committed Nov 9, 2022
1 parent 93ed28c commit 6d76ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord/Discord.php
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ protected function resolveOptions(array $options = []): array
'dnsConfig',
])
->setDefaults([
'loop' => LoopFactory::create(),
'loop' => class_exists('\React\EventLoop\Loop') ? \React\EventLoop\Loop::get() : LoopFactory::create(),
'logger' => null,
'loadAllMembers' => false,
'disabledEvents' => [],
Expand Down

0 comments on commit 6d76ad8

Please sign in to comment.