#[non_exhaustive]
pub enum ModerationActionCommand {
Show 30 variants Delete, Timeout, Untimeout, Mod, Unmod, ModifiedAutomodProperties, Ban, Unban, AutomodRejected, ApproveAutomodMessage, DeniedAutomodMessage, Raid, Unraid, Slow, SlowOff, Followers, FollowersOff, Subscribers, SubscribersOff, EmoteOnly, EmoteOnlyOff, Clear, R9KBeta, R9KBetaOff, Unvip, Host, Unhost, ApproveUnbanRequest, DenyUnbanRequest, DeleteNotification,
}
Available on crate feature pubsub only.
Expand description

A command

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

Delete

Delete

Given when a message is deleted with /delete <msg-id>

Timeout

Timeout

Given when a user is timed-out with /timeout <user> <time> <reason>

Untimeout

Untimeout

Given when a user is unbanned while under a timeout /untimeout <user> or /unban <user>

Mod

Mod

Given when a user is added as a moderator. /mod <user>.

See ChatModeratorActionsReply::ModeratorAdded where this is given

Unmod

Unmod

Given when a user is removed as a moderator, /unmod <user>

ModifiedAutomodProperties

Modified automod properties

Given when automod config is changed. I.e filtering changed etc

Ban

Ban

Given when a user is banned with /timeout <user> <reason>

Unban

Unban

Given when a user is unbanned with /unban <user> or /untimeout <user>

AutomodRejected

Automod message rejected

ApproveAutomodMessage

Automod message approved

DeniedAutomodMessage

Automod message denied

Raid

Raid

Given when editor/broadcaster does /raid <channel>

Unraid

Unraid

Given when editor/broadcaster does /unraid

Slow

Slow-mode chat enabled

SlowOff

Slow-mode chat disabled

Followers

Followers-only chat enabled

FollowersOff

Followers-only chat disabled

Subscribers

Subscriber-only chat enabled

SubscribersOff

Subscriber-only chat disabled

EmoteOnly

Emote-only chat enabled

EmoteOnlyOff

Emote-only chat disabled

Clear

Chat cleared for all viewers

R9KBeta

Unique chat enabled

R9KBetaOff

Unique chat disabled

Unvip

User removed as VIP

Host

Channel host started

Unhost

Channel host removed

ApproveUnbanRequest

Unban Request Approved

DenyUnbanRequest

Unban Request Denied

DeleteNotification

Users own message was deleted.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more