def at(self, user: User) -> str: """Create a mention of the provided user Create a mention of the provided user in the form of ``<@[user_id]>``. This method is convenient when you want to include mentions in your message. This method does not send a message, but should be used together with methods like :py:meth:`~machine.plugins.base.MachineBasePlugin.say` :param user: user your want to mention :return: user mention """ return user.fmt_mention()
def _register_user(self, user_response): user = User.from_api_response(user_response) self._users[user.id] = user return user