Skip to content

Commit

Permalink
Merge branch 'master' into promise-v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Exanlv authored Dec 19, 2024
2 parents 5824a41 + 0592bd3 commit 2dbf68a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Discord.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ class Discord
public function __construct(
private string $token,
private LoggerInterface $logger = new NullLogger(),
?LoopInterface $loop = null
?LoopInterface $loop = null,
?DataMapper $dataMapper = null,
) {
$this->logger->info('Fenrir initialized. Discriminators > usernames');

$this->loop = $loop ?? Loop::get();

$this->mapper = new DataMapper($this->logger);
$this->mapper = $dataMapper ?? new DataMapper(new NullLogger());
}

/**
Expand Down

0 comments on commit 2dbf68a

Please sign in to comment.