Skip to content

Commit

Permalink
Update EntitlementUpdate.php
Browse files Browse the repository at this point in the history
use get instead of cacheget
  • Loading branch information
key2peace authored Oct 20, 2023
1 parent ee253f6 commit 426940e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord/WebSockets/Events/EntitlementUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function handle($data)
/** @var Entitlement */
$entitlementPart = $this->factory->part(Entitlement::class, (array) $data, true);

if ($oldEntitlement = yield $this->discord->application->entitlements->cacheGet($data->id)) {
if ($oldEntitlement = $this->discord->application->entitlements->get('id', $data->id)) {
// Swap
$entitlementPart = $oldEntitlement;
$oldEntitlement = clone $oldEntitlement;
Expand Down

0 comments on commit 426940e

Please sign in to comment.