def METHOD_NAME(evt: Event, var: GameState, player: User, old_role: Optional[str]):
    if old_role == "bodyguard" and evt.data["role"] != "bodyguard":
        if player in GUARDED:
            guarded = GUARDED.pop(player)
            guarded.send(messages["protector_disappeared"])