Class TestEntitlementCreateActionImpl
java.lang.Object
net.dv8tion.jda.internal.requests.RestActionImpl<Entitlement>
net.dv8tion.jda.internal.requests.restaction.TestEntitlementCreateActionImpl
- All Implemented Interfaces:
RestAction<Entitlement>
,TestEntitlementCreateAction
public class TestEntitlementCreateActionImpl
extends RestActionImpl<Entitlement>
implements TestEntitlementCreateAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.requests.restaction.TestEntitlementCreateAction
TestEntitlementCreateAction.OwnerType
-
Field Summary
Fields inherited from class net.dv8tion.jda.internal.requests.RestActionImpl
LOG
-
Constructor Summary
ConstructorsConstructorDescriptionTestEntitlementCreateActionImpl
(JDA api, long skuId, long ownerId, TestEntitlementCreateAction.OwnerType type) -
Method Summary
Modifier and TypeMethodDescriptionsetOwnerId
(long ownerId) Set the owner's id to create the entitlement forSet the owner type to create the entitlement forsetSkuId
(long skuId) Set the SKU's id to create the entitlement inMethods inherited from class net.dv8tion.jda.internal.requests.RestActionImpl
complete, deadline, getCheck, getDefaultFailure, getDefaultSuccess, getDefaultTimeout, getJDA, handleResponse, isPassContext, priority, queue, setCheck, setDefaultFailure, setDefaultSuccess, setDefaultTimeout, setErrorMapper, setPassContext, submit
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.dv8tion.jda.api.requests.RestAction
addCheck, and, and, complete, complete, completeAfter, deadline, delay, delay, delay, delay, flatMap, flatMap, getCheck, getJDA, map, mapToResult, onErrorFlatMap, onErrorFlatMap, onErrorMap, onErrorMap, onSuccess, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, setCheck, submit, submit, submitAfter, submitAfter, timeout, zip
Methods inherited from interface net.dv8tion.jda.api.requests.restaction.TestEntitlementCreateAction
setOwnerId, setSkuId
-
Constructor Details
-
TestEntitlementCreateActionImpl
public TestEntitlementCreateActionImpl(JDA api, long skuId, long ownerId, TestEntitlementCreateAction.OwnerType type)
-
-
Method Details
-
setSkuId
Description copied from interface:TestEntitlementCreateAction
Set the SKU's id to create the entitlement in- Specified by:
setSkuId
in interfaceTestEntitlementCreateAction
- Parameters:
skuId
- The id of the SKU- Returns:
- The current
TestEntitlementCreateAction
for chaining convenience
-
setOwnerId
Description copied from interface:TestEntitlementCreateAction
Set the owner's id to create the entitlement for- Specified by:
setOwnerId
in interfaceTestEntitlementCreateAction
- Parameters:
ownerId
- The id of the owner - either guild id or user id- Returns:
- The current
TestEntitlementCreateAction
for chaining convenience
-
setOwnerType
@Nonnull public TestEntitlementCreateAction setOwnerType(@Nonnull TestEntitlementCreateAction.OwnerType type) Description copied from interface:TestEntitlementCreateAction
Set the owner type to create the entitlement for- Specified by:
setOwnerType
in interfaceTestEntitlementCreateAction
- Parameters:
type
- The type of the owner- Returns:
- The current
TestEntitlementCreateAction
for chaining convenience
-