Skip to content

Commit

Permalink
Fix events broken by #2232 (#2802)
Browse files Browse the repository at this point in the history
That PR broke many events, and there have been a couple PRs to fix
specific events but this sorts out the rest of them.
  • Loading branch information
GnomedDev authored Mar 17, 2024
1 parent ade0b2b commit 18f762c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/model/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1122,27 +1122,31 @@ pub enum Event {
///
/// [`Command`]: crate::model::application::Command
/// [`EventHandler::command_permissions_update`]: crate::client::EventHandler::command_permissions_update
#[serde(rename = "APPLICATION_COMMAND_PERMISSIONS_UPDATE")]
CommandPermissionsUpdate(CommandPermissionsUpdateEvent),
/// A [`Rule`] was created.
///
/// Fires the [`EventHandler::auto_moderation_rule_create`] event.
///
/// [`EventHandler::auto_moderation_rule_create`]:
/// crate::client::EventHandler::auto_moderation_rule_create
#[serde(rename = "AUTO_MODERATION_RULE_CREATE")]
AutoModRuleCreate(AutoModRuleCreateEvent),
/// A [`Rule`] has been updated.
///
/// Fires the [`EventHandler::auto_moderation_rule_update`] event.
///
/// [`EventHandler::auto_moderation_rule_update`]:
/// crate::client::EventHandler::auto_moderation_rule_update
#[serde(rename = "AUTO_MODERATION_RULE_UPDATE")]
AutoModRuleUpdate(AutoModRuleUpdateEvent),
/// A [`Rule`] was deleted.
///
/// Fires the [`EventHandler::auto_moderation_rule_delete`] event.
///
/// [`EventHandler::auto_moderation_rule_delete`]:
/// crate::client::EventHandler::auto_moderation_rule_delete
#[serde(rename = "AUTO_MODERATION_RULE_DELETE")]
AutoModRuleDelete(AutoModRuleDeleteEvent),
/// A [`Rule`] was triggered and an action was executed.
///
Expand Down

0 comments on commit 18f762c

Please sign in to comment.