Skip to content

Commit

Permalink
Fix compilation from wrong macro syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
arqunis committed Dec 14, 2023
1 parent a8cd2f1 commit f9abdad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client/event_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,22 +456,22 @@ event_handler! {
/// Dispatched when a user subscribes to a SKU.
///
/// Provides data about the subscription.
async fn entitlement_create(&self, ctx: Context, | EntitlementCreate { entitlement: Entitlement });
EntitlementCreate { entitlement: Entitlement } => async fn entitlement_create(&self, ctx: Context);

/// Dispatched when a user's entitlement has been updated, such as when a subscription is
/// renewed for the next billing period.
///
/// Provides data abut the updated subscription. If the entitlement is renewed, the
/// [`Entitlement::ends_at`] field will have changed.
async fn entitlement_update(&self, ctx: Context, | EntitlementUpdate { entitlement: Entitlement });
EntitlementUpdate { entitlement: Entitlement } => async fn entitlement_update(&self, ctx: Context);

/// Dispatched when a user's entitlement has been deleted. This happens rarely, but can occur
/// if a subscription is refunded or otherwise deleted by Discord. Entitlements are not deleted
/// when they expire.
///
/// Provides data about the subscription. Specifically, the [`Entitlement::deleted`] field will
/// be set.
async fn entitlement_delete(&self, ctx: Context, | EntitlementDelete { entitlement: Entitlement });
EntitlementDelete { entitlement: Entitlement } => async fn entitlement_delete(&self, ctx: Context);

/// Dispatched when an HTTP rate limit is hit
Ratelimit { data: RatelimitInfo } => async fn ratelimit(&self);
Expand Down

0 comments on commit f9abdad

Please sign in to comment.