Skip to content

Commit

Permalink
fix group active ignore no-platform option
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXiaoM committed Oct 9, 2024
1 parent f8d867b commit d7a3c1f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ internal class GroupActiveWrapper(
}

override suspend fun refresh() {
val info = group.bot.getRawMemberLevelInfo(groupCode = group.id).check()
refreshRank()
if (!group.bot.noPlatform) return
val info = group.bot.getRawMemberLevelInfo(groupCode = group.id).check()
_isHonorVisible = info.honourFlag == 1
_isTitleVisible = info.levelFlag == 1
_isRankVisible = info.levelName.mapKeys { (level, _) -> level.removePrefix("lvln").toInt() }
Expand Down

0 comments on commit d7a3c1f

Please sign in to comment.