twilight_http::request

Trait AuditLogReason

source
pub trait AuditLogReason<'a>: Sealed {
    // Required method
    fn reason(self, reason: &'a str) -> Self
       where Self: Sized;
}
Expand description

Attach a reason for a request.

Reasons are associated with the audit log entries that are automatically created for certain requests.

Required Methods§

source

fn reason(self, reason: &'a str) -> Self
where Self: Sized,

Attach an audit log reason to the request.

§Errors

Returns an error of type AuditReason if the length is invalid.

Implementors§

source§

impl<'a> AuditLogReason<'a> for CreateInvite<'a>

source§

impl<'a> AuditLogReason<'a> for DeleteInvite<'a>

source§

impl<'a> AuditLogReason<'a> for DeleteMessage<'a>

source§

impl<'a> AuditLogReason<'a> for DeleteMessages<'a>

source§

impl<'a> AuditLogReason<'a> for CreatePin<'a>

source§

impl<'a> AuditLogReason<'a> for DeleteChannel<'a>

source§

impl<'a> AuditLogReason<'a> for DeleteChannelPermissionConfigured<'a>

source§

impl<'a> AuditLogReason<'a> for DeletePin<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateChannel<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateChannelPermission<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateThread<'a>

source§

impl<'a> AuditLogReason<'a> for CreateWebhook<'a>

source§

impl<'a> AuditLogReason<'a> for DeleteWebhook<'a>

source§

impl<'a> AuditLogReason<'a> for DeleteWebhookMessage<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateWebhook<'a>

source§

impl<'a> AuditLogReason<'a> for CreateAutoModerationRule<'a>

source§

impl<'a> AuditLogReason<'a> for DeleteAutoModerationRule<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateAutoModerationRule<'a>

source§

impl<'a> AuditLogReason<'a> for CreateBan<'a>

source§

impl<'a> AuditLogReason<'a> for DeleteBan<'a>

source§

impl<'a> AuditLogReason<'a> for CreateEmoji<'a>

source§

impl<'a> AuditLogReason<'a> for DeleteEmoji<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateEmoji<'a>

source§

impl<'a> AuditLogReason<'a> for DeleteGuildIntegration<'a>

source§

impl<'a> AuditLogReason<'a> for AddRoleToMember<'a>

source§

impl<'a> AuditLogReason<'a> for RemoveMember<'a>

source§

impl<'a> AuditLogReason<'a> for RemoveRoleFromMember<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateGuildMember<'a>

source§

impl<'a> AuditLogReason<'a> for CreateRole<'a>

source§

impl<'a> AuditLogReason<'a> for DeleteRole<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateRole<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateRolePositions<'a>

source§

impl<'a> AuditLogReason<'a> for CreateGuildSticker<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateGuildSticker<'a>

source§

impl<'a> AuditLogReason<'a> for CreateGuildChannel<'a>

source§

impl<'a> AuditLogReason<'a> for CreateGuildPrune<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateCurrentMember<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateGuild<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateGuildMfa<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateGuildWidgetSettings<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateGuildOnboarding<'a>

source§

impl<'a> AuditLogReason<'a> for CreateGuildExternalScheduledEvent<'a>

source§

impl<'a> AuditLogReason<'a> for CreateGuildScheduledEvent<'a>

source§

impl<'a> AuditLogReason<'a> for CreateGuildStageInstanceScheduledEvent<'a>

source§

impl<'a> AuditLogReason<'a> for CreateGuildVoiceScheduledEvent<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateGuildScheduledEvent<'a>

source§

impl<'a> AuditLogReason<'a> for UpdateCurrentUser<'a>