Donald Trump|Gage Skidmore|CC BY-SA 2.0

Former President Donald Trump will not testify in the defamation lawsuit brought by writer E. Jean Carroll, who accused him of raping her in the mid-1990s.

In a court filing on Friday, Trump's attorneys argued that his statements denying the allegations were made in his official capacity and should be protected from a lawsuit.

Meanwhile, in a separate case involving hush-money payments to adult film star Stormy Daniels, a judge has placed limits on Trump's social media posts about the case to avoid potential jury bias.

The ruling comes after Trump previously tweeted about the case, drawing attention to himself and potentially influencing the outcome.