Skip to content

Commit

Permalink
Link them better
Browse files Browse the repository at this point in the history
  • Loading branch information
key2peace authored Oct 20, 2023
1 parent d265ea6 commit a856129
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Discord/WebSockets/Events/EntitlementCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a856129

Please sign in to comment.