Class InteractionContextExtensions
Contains all the extensions methods for IInteractionContext.
Inheritance
System.Object
InteractionContextExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|
System.Boolean | A System.Boolean indicating if the |