Although in the legal sense, beating the king's whip has such a role. However, in real life, no minister dared to really whip the king at that time. In the final analysis, this weapon is the right of the previous generation of kings, and the previous generation of emperors can't manage this generation's affairs. Ministers still fear the king from the bottom of their hearts. No one dares to show off such weapons in public. This is blasphemy against the monarch and disrespect for the king.
In the novel Romance of Sui and Tang Dynasties, Li Shimin, Emperor Taizong, gave Weichi Gong a Shuang Bian for saving his life. In this novel, the then king Li Zhi was really whipped. Li Zhi put Xue in prison for his own selfish interests. Xue was the star of hope in the Tang Dynasty at that time, and Weichi Gong was also very angry and punished Li Zhi for his fatuous behavior.
However, such a bold scene can only appear in literary works. In real life, no minister dares to do so. The king was the most powerful man at that time. The minister can kill him with a whip, and the king can also find any reason to accuse him of committing a big crime.