[V3 Audio] Fix for not saving via playlist create (#1889)

This commit is contained in:
aikaterna 2018-06-25 04:20:28 -07:00 committed by Toby Harradine
parent 1f1a85de18
commit 3ece3a1f2b

View File

@ -709,6 +709,7 @@ class Audio:
ctx, "Playlist name already exists, try again with a different name." ctx, "Playlist name already exists, try again with a different name."
) )
playlist_list = self._to_json(ctx, None, None) playlist_list = self._to_json(ctx, None, None)
async with self.config.guild(ctx.guild).playlists() as playlists:
playlists[playlist_name] = playlist_list playlists[playlist_name] = playlist_list
await self._embed_msg(ctx, "Empty playlist {} created.".format(playlist_name)) await self._embed_msg(ctx, "Empty playlist {} created.".format(playlist_name))