From d6d15adb7d459d2ff5c2596b21c5553dca5dd67d Mon Sep 17 00:00:00 2001 From: Lexedia Date: Sun, 13 Oct 2024 01:18:19 +0200 Subject: [PATCH] Fix indexed operator on `GlobalSoundManager` --- lib/src/http/managers/soundboard_manager.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/http/managers/soundboard_manager.dart b/lib/src/http/managers/soundboard_manager.dart index 990beffa1..d4cc96877 100644 --- a/lib/src/http/managers/soundboard_manager.dart +++ b/lib/src/http/managers/soundboard_manager.dart @@ -150,7 +150,7 @@ class GlobalSoundboardManager extends SoundboardManager implements ReadOnlyManag GlobalSoundboardManager(super.config, super.client) : super(identifier: 'soundboard'); @override - PartialSoundboardSound operator [](Snowflake id) => throw UnsupportedError('Cannot index a global soundboard sound'); + PartialSoundboardSound operator [](Snowflake id) => PartialSoundboardSound(id: id, manager: this); @override Future fetch(Snowflake id) async {