public bool CanBeDestroyed() { if (this.m_messageInfo.destroyed) { return(false); } ClubPrivilegeInfo clubPrivileges = Club.GetClubPrivileges(this.CommunityID); return(this.m_messageInfo.author.isSelf || clubPrivileges.canDestroyOtherMessage); }
public bool IsKickable() { ClubPrivilegeInfo clubPrivileges = Club.GetClubPrivileges(this.m_clubId); return(clubPrivileges.kickableRoleIds.Exists((int id) => id == (int)this.Role)); }