_musicplayer.py 文件源码

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

项目:modis 作者: Infraxion 项目源码 文件源码
def msetup(self, text_channel):
        """Creates the gui

        Args:
            text_channel (discord.Channel): The channel for the embed ui to run in
        """

        if self.mready:
            logger.warning("Attempt to init music when already initialised")
            return

        if self.state != 'starting':
            logger.error("Attempt to init from wrong state ('{}'), must be 'starting'.".format(self.state))
            return

        self.logger.debug("Setting up gui")

        # Create gui
        self.mchannel = text_channel
        self.new_embed_ui()
        await self.embed.send()
        await self.embed.usend()
        await self.add_reactions()

        self.mready = True
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号