user.py 文件源码

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

项目:ddmbot 作者: Budovi 项目源码 文件源码
def move(self, user: discord.User, position: int):
        if self._bot.player.streaming or self._bot.player.stopped:
            raise dec.UserInputError('Player is not in the DJ mode')

        inserted, position = await self._bot.users.move_listener(int(user.id), position)
        if inserted:
            await self._bot.message('User {} was added to the DJ queue to the {} position'
                                    .format(user, self._ordinal(position)))
        else:
            await self._bot.message('User {} was moved to the {} position in the DJ queue'
                                    .format(user, self._ordinal(position)))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号