Trait twilight_http::request::AuditLogReason
source · pub trait AuditLogReason<'a>: Sealed {
fn reason(self, reason: &'a str) -> Result<Self, ValidationError>
where
Self: Sized;
}Required Methods§
sourcefn reason(self, reason: &'a str) -> Result<Self, ValidationError>where
Self: Sized,
fn reason(self, reason: &'a str) -> Result<Self, ValidationError>where
Self: Sized,
Attach an audit log reason to the request.
Errors
Returns an error of type AuditReason if the length is invalid.