Class InteractionContextExtensions
Contains all the extensions methods for IInteractionContext.
Inherited Members
System.Object.Equals(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Color_Chan.Discord.Commands.Extensions
Assembly: Color-Chan.Discord.Commands.dll
Syntax
public static class InteractionContextExtensions
Methods
| Improve this Doc View SourceHasActiveEntitlement(IInteractionContext, UInt64)
Check if the interaction has an active Entitlements for the given skuId
.
Declaration
public static bool HasActiveEntitlement(this IInteractionContext context, ulong skuId)
Parameters
Type | Name | Description |
---|---|---|
IInteractionContext | context | The IInteractionContext that will be used to look for the |
System.UInt64 | skuId | The ID of the SKU used in the Entitlements. |
Returns
Type | Description |
---|---|
Boolean | A Boolean indicating if the |