diff --git a/src/Discord/WebSockets/Events/GuildCreate.php b/src/Discord/WebSockets/Events/GuildCreate.php index dad84b4f7..3778c36f2 100644 --- a/src/Discord/WebSockets/Events/GuildCreate.php +++ b/src/Discord/WebSockets/Events/GuildCreate.php @@ -34,6 +34,7 @@ public function handle(Deferred &$deferred, $data) return $deferred->promise(); } + /** @var Guild */ $guildPart = $this->factory->create(Guild::class, $data, true); foreach ($data->roles as $role) { $role = (array) $role; @@ -81,7 +82,7 @@ public function handle(Deferred &$deferred, $data) } $resolve = function () use (&$guildPart, $deferred) { - if ($guildPart->large) { + if ($guildPart->large || $guildPart->member_count > $guildPart->members->count()) { $this->discord->addLargeGuild($guildPart); }