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)))
评论列表
文章目录