From a856129cb1f6db953088c6c7c423a5e805a004e1 Mon Sep 17 00:00:00 2001 From: Alexander Maassen Date: Fri, 20 Oct 2023 20:43:53 +0200 Subject: [PATCH] Link them better --- src/Discord/WebSockets/Events/EntitlementCreate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Discord/WebSockets/Events/EntitlementCreate.php b/src/Discord/WebSockets/Events/EntitlementCreate.php index 6b9d9337b..cbbb950f2 100644 --- a/src/Discord/WebSockets/Events/EntitlementCreate.php +++ b/src/Discord/WebSockets/Events/EntitlementCreate.php @@ -30,6 +30,7 @@ public function handle($data) $entitlementPart = $this->factory->part(Entitlement::class, (array) $data, true); $this->discord->application->entitlements->set($data->id, $entitlementPart); + $entitlementPart = $this->discord->application->entitlements->get('id', $data->id); if (isset($data->guild_id) && $guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { $guild->entitlements->set($data->id, $entitlementPart);