Closed Slontia closed 3 years ago
😂This is a mistake, I've fixed it.
bool GroupMessage::AtMe() const
{
auto at = MessageChain.GetAll<AtMessage>();
auto it = std::find_if(at.begin(), at.end(), [&](const AtMessage& a) { return a.Target() == bot_->GetBotQQ(); });
return it != at.end();
}
My code is using
AtMe
to check whether the bot is at by other qq users. But when I updated the mirai-cpp code to the latest version, my code compiled failed because the return type has been changed tovoid
.How can I achieve the above propose with the latest code?