def remove_all(self, message: discord.Message, config: dict=None):
"""Remove all stars from a message.
Parameters
----------
message: `discord.Message`
Message that is going to have all stars removed.
"""
lock = self._locks[message.guild.id]
await lock
try:
if not config:
config = await self._get_starconfig(message.guild.id)
star = await self.raw_remove_all(config, message)
await self.update_star(config, star, delete=True)
finally:
lock.release()
评论列表
文章目录