bot.py 文件源码

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

项目:PomodoroBot 作者: VicenteRD 项目源码 文件源码
def mark_active(self, channel: discord.Channel, author: discord.Member,
                    time: datetime):
        """ Marks a user as active within a channel, giving them a
            last-active-at timestamp.

            :param channel: The channel in which to mark the user as active at.
            :type channel: discord.Channel

            :param author: The user to mark as active.
            :type author: discord.Member

            :param time: The last-active-at time.
            :type time: datetime
        """

        interface = self.get_interface(channel, generate=False)
        if interface is not None and author in interface.subbed:
            interface.subbed[author]['last'] = time
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号