Skip to content

Commit

Permalink
Fix indexed operator on GlobalSoundManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexedia committed Oct 12, 2024
1 parent 825fbe8 commit d6d15ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/http/managers/soundboard_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<SoundboardSound> fetch(Snowflake id) async {
Expand Down

0 comments on commit d6d15ad

Please sign in to comment.