music.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:TnyBot-Discord 作者: 00firestar00 项目源码 文件源码
def join(self, ctx, *, channel: discord.Channel):
        """Joins a voice channel."""
        try:
            await self.create_voice_client(channel)
        except discord.InvalidArgument:
            await self.bot.say("This is not a voice channel...")
        except discord.ClientException:
            await self.bot.say("Already in a voice channel...")
        else:
            await self.bot.say("Ready to play audio in " + channel.name)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号