From 816cd42d099a6585b9a49ac879abe75c6f9114f3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 4 Nov 2019 09:32:28 +0100 Subject: [PATCH] Fix !playmode bug --- royalnet/packs/royal/commands/playmode.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/royalnet/packs/royal/commands/playmode.py b/royalnet/packs/royal/commands/playmode.py index 251a353a..f99a5616 100644 --- a/royalnet/packs/royal/commands/playmode.py +++ b/royalnet/packs/royal/commands/playmode.py @@ -29,14 +29,14 @@ class PlaymodeCommand(Command): guild = list(bot.client.guilds)[0] # Delete the previous PlayMode, if it exists if bot.music_data[guild] is not None: - bot.music_data[guild].delete() + bot.music_data[guild].playmode.delete() # Create the new PlayMode if mode_name == "playlist": - bot.music_data[guild] = Playlist() + bot.music_data[guild].playmode = Playlist() elif mode_name == "pool": - bot.music_data[guild] = Pool() + bot.music_data[guild].playmode = Pool() elif mode_name == "layers": - bot.music_data[guild] = Layers() + bot.music_data[guild].playmode = Layers() else: raise CommandError("Unknown PlayMode specified.") return {}