From 93653f33ec9b63f6c3c6468e276712b65877bfcb Mon Sep 17 00:00:00 2001 From: Clxud <71564480+cloudwithax@users.noreply.github.com> Date: Sun, 31 Oct 2021 13:22:01 -0400 Subject: [PATCH] forgot to await some funcs --- examples/basic.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/basic.py b/examples/basic.py index 9bd4b46..14dad37 100644 --- a/examples/basic.py +++ b/examples/basic.py @@ -56,7 +56,7 @@ class Music(commands.Cog): player: pomice.Player = ctx.voice_client - player.destroy() + await player.destroy() await ctx.send("Player has left the channel.") @@ -96,7 +96,7 @@ class Music(commands.Cog): if player.is_paused: await ctx.send("Player is already paused!") - player.set_pause(pause=True) + await player.set_pause(pause=True) await ctx.send("Player has been paused") @@ -111,7 +111,7 @@ class Music(commands.Cog): if not player.is_paused: await ctx.send("Player is already playing!") - player.set_pause(pause=False) + await player.set_pause(pause=False) await ctx.send("Player has been resumed") @@ -126,10 +126,10 @@ class Music(commands.Cog): if not player.is_playing: await ctx.send("Player is already stopped!") - player.stop() + await player.stop() await ctx.send("Player has been stopped") bot = MyBot() -bot.run("token here") \ No newline at end of file +bot.run("token here")