From 6fbb669643942f7e836fb450b695f326616c85f3 Mon Sep 17 00:00:00 2001 From: Valithor Obsidion Date: Fri, 1 Nov 2024 14:12:36 -0400 Subject: [PATCH] Fix misnamed repository call --- src/Discord/WebSockets/Events/GuildSoundboardSoundDelete.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord/WebSockets/Events/GuildSoundboardSoundDelete.php b/src/Discord/WebSockets/Events/GuildSoundboardSoundDelete.php index 3926065da..7c9c30535 100644 --- a/src/Discord/WebSockets/Events/GuildSoundboardSoundDelete.php +++ b/src/Discord/WebSockets/Events/GuildSoundboardSoundDelete.php @@ -32,7 +32,7 @@ public function handle($data) /** @var ?Guild */ if ($guild = yield $this->discord->guilds->cacheGet($data->guild_id)) { /** @var ?Sound */ - $part = yield $guild->soundboard_sounds->cachePull($data->sound_id); + $part = yield $guild->sounds->cachePull($data->sound_id); if ($part instanceof Sound) { $part->fill((array) $data); $part->created = false;