Search Results for

    Show / Hide Table of Contents

    Class InteractionContextExtensions

    Contains all the extensions methods for IInteractionContext.

    Inheritance
    Object
    InteractionContextExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Object.ToString()
    Namespace: Color_Chan.Discord.Commands.Extensions
    Assembly: Color-Chan.Discord.Commands.dll
    Syntax
    public static class InteractionContextExtensions

    Methods

    | Improve this Doc View Source

    HasActiveEntitlement(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 skuId.

    System.UInt64 skuId

    The ID of the SKU used in the Entitlements.

    Returns
    Type Description
    Boolean

    A Boolean indicating if the skuId is active.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX