Skip to content

Commit

Permalink
Update EntitlementDelete.php
Browse files Browse the repository at this point in the history
  • Loading branch information
key2peace authored Oct 22, 2023
1 parent a927566 commit 5cab513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord/WebSockets/Events/EntitlementDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class EntitlementDelete extends Event
*/
public function handle($data)
{
if ($entitlementPart = $this->discord->application->entitlements->cachePull($data->id)) {
if ($entitlementPart = yield $this->discord->application->entitlements->cachePull($data->id)) {
$entitlementPart->fill((array) $data);
$entitlementPart->created = false;
}
Expand Down

0 comments on commit 5cab513

Please sign in to comment.