Table of Contents

Interface ISubscriptionCreateShardedGatewayHandler

Namespace
NetCord.Hosting.Gateway
Assembly
NetCord.Hosting.dll

Sent when a Subscription for a Premium App is created. Inner payload is a Subscription object.

public interface ISubscriptionCreateShardedGatewayHandler : IShardedGatewayHandler

Remarks

Status can be either Inactive or Inactive when this event is received. You will receive subsequent SubscriptionUpdate events if the status is updated to active. As a best practice, you should not grant any perks to users until the entitlements are created.
Required Intents: None
Optional Intents: None

Methods

HandleAsync(GatewayClient, Subscription)

Handles the gateway event.

ValueTask HandleAsync(GatewayClient client, Subscription arg)

Parameters

client GatewayClient

The gateway client that represents the shard that received the event.

arg Subscription

The event argument.

Returns

ValueTask