stars.py 文件源码

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

项目:PyMiki 作者: TheGrammarJew 项目源码 文件源码
def on_raw_bulk_message_delete(self, message_ids, channel_id):
        if message_ids <= self._about_to_be_deleted:
            # see comment above
            self._about_to_be_deleted.difference_update(message_ids)
            return

        channel = self.bot.get_channel(channel_id)
        if channel is None or not isinstance(channel, discord.TextChannel):
            return

        starboard = await self.get_starboard(channel.guild.id)
        if starboard.channel is None or starboard.channel.id != channel_id:
            return

        async with self.bot.pool.acquire() as con:
            query = "DELETE FROM starboard_entries WHERE bot_message_id=ANY($1::bigint[]);"
            await con.execute(query, list(message_ids))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号