refactor: remove effect badges and clear active effects on player reset

This commit is contained in:
mmacierzanka committed 2026-09-13 15:51:14 +02:00
1 parent a1ae8dbc4a
commit 2513aa2b28
14 files changed
+31 -42

No files matched your search

+5
View File
@@ -256,6 +256,11 @@ class MusicPlayerQueueTest(unittest.IsolatedAsyncioTestCase):
player.set_effect(GUILD, "fourth_density", True)
self.assertEqual(player.state(GUILD).active_effects, {"distortion", "fourth_density"})
# Stopping/clearing the player disables all active effects
player.clear(GUILD)
self.assertEqual(player.state(GUILD).active_effects, set())
self.assertFalse(player.is_effect_active(GUILD, "distortion"))
self.assertFalse(player.is_effect_active(GUILD, "fourth_density"))
async def test_default_plays_are_applied_per_guild(self):
player, _ = build_player()