Class SKUConfiguration
java.lang.Object
de.chojo.jdautil.interactions.premium.SKUConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommandSkus(String fullCommandName) The SKUs required for a slash command.booleanisCommandEntitled(CommandInteractionPayload interaction, String fullCommandName) Checks the entitlement of a slash command or its autocompletion under a given full command name.booleanisEntitled(CommandAutoCompleteInteractionEvent interaction) booleanisEntitled(MessageContextInteractionEvent interaction) booleanisEntitled(SlashCommandInteractionEvent interaction) booleanisEntitled(UserContextInteractionEvent interaction) messageSkus(String name) The SKUs required for a message command.The SKUs required for a user command.
-
Constructor Details
-
SKUConfiguration
public SKUConfiguration()
-
-
Method Details
-
isEntitled
-
isEntitled
-
isEntitled
-
isEntitled
-
isCommandEntitled
Checks the entitlement of a slash command or its autocompletion under a given full command name. Used when the command was invoked under an alias, since the payload only knows the alias.- Parameters:
interaction- interaction payloadfullCommandName- full command name with the name of the command instead of the alias- Returns:
- true if the user is entitled to use the command
-
commandSkus
-
messageSkus
-
userSkus
-
commands
-
messages
-
users
-