Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @commands.command()
- async def pause(self):
- """Pauses the song."""
- if self.music_player.is_playing():
- self.music_player.pause()
- @commands.command()
- async def resume(self):
- """Resumes the song."""
- if not self.music_player.is_playing():
- self.music_player.resume()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement