From 171b4a0ec6bacc9e53eb3d0f3fdebef8f54533b5 Mon Sep 17 00:00:00 2001 From: aymm Date: Thu, 11 Mar 2021 16:49:27 +0000 Subject: [PATCH] Fiyed user constructor --- src/Entities/Poll.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entities/Poll.php b/src/Entities/Poll.php index 4a66246..64712ca 100644 --- a/src/Entities/Poll.php +++ b/src/Entities/Poll.php @@ -75,7 +75,7 @@ class Poll } $this->prompt = $data['prompt']; if (!empty($data['user'])) { - $this->user = new User($data['user']); + $this->user = new User($data['user'], $this->api); } if (!empty($data['source'])) { $this->source = new Source($data['source']);