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