Skip to content

Commit 6de062a

Browse files
authored
Update rkcodingmusicbotloop.py
1 parent 7556839 commit 6de062a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rkcodingmusicbotloop.py

+2
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,14 @@ async def play(ctx):
154154

155155
@client.command(name='pause', help='This command pauses the song')
156156
async def pause(ctx):
157+
server = ctx.message.guild
157158
voice_channel = server.voice_client
158159

159160
voice_channel.pause()
160161

161162
@client.command(name='resume', help='This command resumes the song!')
162163
async def resume(ctx):
164+
server = ctx.message.guild
163165
voice_channel = server.voice_client
164166

165167
voice_channel.resume()

0 commit comments

Comments
 (0)