Discord.py 如何在正常函数中获取ctx-discordpy
我想让ctx处于正常功能中Discord.py 如何在正常函数中获取ctx-discordpy,discord.py,Discord.py,我想让ctx处于正常功能中 def check_queue(ctx): server = ctx.message.guild voice_channel = server.voice_client queue.pop(0) voice_channel.play(queue[0], after=lambda e: print('Player error: %s' % e) if e else None)```
def check_queue(ctx):
server = ctx.message.guild
voice_channel = server.voice_client
queue.pop(0)
voice_channel.play(queue[0], after=lambda e: print('Player error: %s' % e) if e else None)```