Enum twilight_model::guild::audit_log::AuditLogEventType
source · [−]pub enum AuditLogEventType {
Show 53 variants
GuildUpdate,
ChannelCreate,
ChannelUpdate,
ChannelDelete,
ChannelOverwriteCreate,
ChannelOverwriteUpdate,
ChannelOverwriteDelete,
MemberKick,
MemberPrune,
MemberBanAdd,
MemberBanRemove,
MemberUpdate,
MemberRoleUpdate,
MemberMove,
MemberDisconnect,
BotAdd,
RoleCreate,
RoleUpdate,
RoleDelete,
InviteCreate,
InviteUpdate,
InviteDelete,
WebhookCreate,
WebhookUpdate,
WebhookDelete,
EmojiCreate,
EmojiUpdate,
EmojiDelete,
MessageDelete,
MessageBulkDelete,
MessagePin,
MessageUnpin,
IntegrationCreate,
IntegrationUpdate,
IntegrationDelete,
StageInstanceCreate,
StageInstanceUpdate,
StageInstanceDelete,
StickerCreate,
StickerUpdate,
StickerDelete,
GuildScheduledEventCreate,
GuildScheduledEventUpdate,
GuildScheduledEventDelete,
ThreadCreate,
ThreadUpdate,
ThreadDelete,
ApplicationCommandPermissionUpdate,
AutoModerationRuleCreate,
AutoModerationRuleUpdate,
AutoModerationRuleDelete,
AutoModerationBlockMessage,
Unknown(u16),
}Expand description
Action to cause an AuditLogEntry.
Variants
GuildUpdate
Guild was updated.
ChannelCreate
Channel was created.
ChannelUpdate
Channel was updated.
ChannelDelete
Channel was deleted.
ChannelOverwriteCreate
Permission overwrite for a channel was created.
ChannelOverwriteUpdate
Permission overwrite for a channel was updated.
ChannelOverwriteDelete
Permission overwrite for a channel was deleted.
MemberKick
Member was kicked.
MemberPrune
Member prune began.
MemberBanAdd
Member was banned.
MemberBanRemove
MemberUpdate
Member was updated.
MemberRoleUpdate
MemberMove
MemberDisconnect
BotAdd
RoleCreate
Role was created.
RoleUpdate
Role was updated.
RoleDelete
Role was deleted.
InviteCreate
Invite was created.
InviteUpdate
Invite was updated.
InviteDelete
Invite was deleted.
WebhookCreate
Webhook was created.
WebhookUpdate
Webhook was updated.
WebhookDelete
Webhook was deleted.
EmojiCreate
Emoji was created.
EmojiUpdate
Emoji was updated.
EmojiDelete
Emoji was deleted.
MessageDelete
Message was deleted.
MessageBulkDelete
Multiple messages were deleted.
MessagePin
MessageUnpin
IntegrationCreate
Integration was created.
IntegrationUpdate
Integration was updated.
IntegrationDelete
Integration was deleted.
StageInstanceCreate
Stage instance was created.
StageInstanceUpdate
Stage instance was updated.
StageInstanceDelete
Stage instance was deleted.
StickerCreate
Sticker was created.
StickerUpdate
Sticker was updated.
StickerDelete
Sticker was deleted.
GuildScheduledEventCreate
GuildScheduledEvent was created.
GuildScheduledEventUpdate
GuildScheduledEvent was updated.
GuildScheduledEventDelete
GuildScheduledEvent was deleted.
ThreadCreate
Thread channel was created.
ThreadUpdate
Thread channel was updated.
ThreadDelete
Thread channel was deleted.
ApplicationCommandPermissionUpdate
A GuildCommandPermissions was updated.
AutoModerationRuleCreate
AutoModerationRule has been created.
AutoModerationRuleUpdate
AutoModerationRule has been updated.
AutoModerationRuleDelete
AutoModerationRule has been deleted.
AutoModerationBlockMessage
Message has been blocked by AutoMod according to a rule.
Unknown(u16)
Variant value is unknown to the library.
Trait Implementations
sourceimpl Clone for AuditLogEventType
impl Clone for AuditLogEventType
sourcefn clone(&self) -> AuditLogEventType
fn clone(&self) -> AuditLogEventType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AuditLogEventType
impl Debug for AuditLogEventType
sourceimpl<'de> Deserialize<'de> for AuditLogEventType
impl<'de> Deserialize<'de> for AuditLogEventType
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<AuditLogEventType> for u16
impl From<AuditLogEventType> for u16
sourcefn from(value: AuditLogEventType) -> Self
fn from(value: AuditLogEventType) -> Self
Converts to this type from the input type.
sourceimpl From<u16> for AuditLogEventType
impl From<u16> for AuditLogEventType
sourceimpl Hash for AuditLogEventType
impl Hash for AuditLogEventType
sourceimpl PartialEq<AuditLogEventType> for AuditLogEventType
impl PartialEq<AuditLogEventType> for AuditLogEventType
sourcefn eq(&self, other: &AuditLogEventType) -> bool
fn eq(&self, other: &AuditLogEventType) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Serialize for AuditLogEventType
impl Serialize for AuditLogEventType
impl Copy for AuditLogEventType
impl Eq for AuditLogEventType
impl StructuralEq for AuditLogEventType
impl StructuralPartialEq for AuditLogEventType
Auto Trait Implementations
impl RefUnwindSafe for AuditLogEventType
impl Send for AuditLogEventType
impl Sync for AuditLogEventType
impl Unpin for AuditLogEventType
impl UnwindSafe for AuditLogEventType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more