Class ApplicationManagerImpl
java.lang.Object
net.dv8tion.jda.internal.requests.RestActionImpl<Void>
net.dv8tion.jda.internal.requests.restaction.AuditableRestActionImpl<Void>
net.dv8tion.jda.internal.managers.ManagerBase<ApplicationManager>
net.dv8tion.jda.internal.managers.ApplicationManagerImpl
- All Implemented Interfaces:
ApplicationManager
,Manager<ApplicationManager>
,RestAction<Void>
,AuditableRestAction<Void>
public class ApplicationManagerImpl
extends ManagerBase<ApplicationManager>
implements ApplicationManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.managers.ApplicationManager
ApplicationManager.IntegrationTypeConfig
-
Field Summary
Fields inherited from class net.dv8tion.jda.internal.requests.RestActionImpl
LOG
Fields inherited from interface net.dv8tion.jda.api.managers.ApplicationManager
COVER_IMAGE, CUSTOM_INSTALL_URL, DESCRIPTION, ICON, INSTALL_PARAMS, INTEGRATION_TYPES_CONFIG, INTERACTIONS_ENDPOINT_URL, TAGS
Fields inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
MAX_REASON_LENGTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreset()
Resets all fields for this Managerreset
(long fields) Resets the fields specified by the provided bit-flag pattern.reset
(long... fields) Resets the fields specified by the provided bit-flag patterns.setCoverImage
(Icon coverImage) Sets the cover image of the application.setCustomInstallUrl
(String customInstallUrl) Sets the custom install url for this application.setDescription
(String description) Sets the description of the application.Sets the icon of the application.setInstallParams
(ApplicationManager.IntegrationTypeConfig installParams) Sets the default installation parameters of this application.Sets the integration type config of this application.setInteractionsEndpointUrl
(String interactionsEndpointUrl) Sets the interactions endpoint URL for this application.setTags
(Collection<String> tags) Sets up to 5 unique tags for this application.Methods inherited from class net.dv8tion.jda.internal.managers.ManagerBase
complete, deadline, isPermissionChecksEnabled, queue, setCheck, setPermissionChecksEnabled, timeout
Methods inherited from class net.dv8tion.jda.internal.requests.restaction.AuditableRestActionImpl
reason
Methods inherited from class net.dv8tion.jda.internal.requests.RestActionImpl
getCheck, getDefaultFailure, getDefaultSuccess, getDefaultTimeout, getJDA, handleResponse, isPassContext, priority, 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.AuditableRestAction
reason
Methods inherited from interface net.dv8tion.jda.api.requests.RestAction
addCheck, and, and, complete, complete, completeAfter, delay, delay, delay, delay, flatMap, flatMap, getCheck, getJDA, map, mapToResult, onErrorFlatMap, onErrorFlatMap, onErrorMap, onErrorMap, onSuccess, queue, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, submit, submit, submitAfter, submitAfter, zip
-
Constructor Details
-
ApplicationManagerImpl
-
-
Method Details
-
reset
Description copied from interface:ApplicationManager
Resets the fields specified by the provided bit-flag pattern. You can specify a combination by using a bitwise OR concat of the flag constants.
Example:manager.reset(ApplicationManager.ICON | ApplicationManager.COVER_IMAGE);
Flag Constants:
- Specified by:
reset
in interfaceApplicationManager
- Specified by:
reset
in interfaceManager<ApplicationManager>
- Overrides:
reset
in classManagerBase<ApplicationManager>
- Parameters:
fields
- Integer value containing the flags to reset.- Returns:
- ApplicationManager for chaining convenience
-
reset
Description copied from interface:ApplicationManager
Resets the fields specified by the provided bit-flag patterns.
Example:manager.reset(ApplicationManager.ICON, ApplicationManager.COVER_IMAGE);
Flag Constants:
- Specified by:
reset
in interfaceApplicationManager
- Specified by:
reset
in interfaceManager<ApplicationManager>
- Overrides:
reset
in classManagerBase<ApplicationManager>
- Parameters:
fields
- Integer values containing the flags to reset.- Returns:
- ApplicationManager for chaining convenience
-
reset
Description copied from interface:Manager
Resets all fields for this Manager- Specified by:
reset
in interfaceManager<ApplicationManager>
- Overrides:
reset
in classManagerBase<ApplicationManager>
- Returns:
- The current Manager with all settings reset to default
-
setDescription
Description copied from interface:ApplicationManager
Sets the description of the application.- Specified by:
setDescription
in interfaceApplicationManager
- Parameters:
description
- The new description (max 400 characters)- Returns:
- ApplicationManager for chaining convenience
-
setIcon
Description copied from interface:ApplicationManager
Sets the icon of the application.- Specified by:
setIcon
in interfaceApplicationManager
- Parameters:
icon
- The new icon- Returns:
- ApplicationManager for chaining convenience
-
setCoverImage
Description copied from interface:ApplicationManager
Sets the cover image of the application.
This is used for rich presence.- Specified by:
setCoverImage
in interfaceApplicationManager
- Parameters:
coverImage
- The new coverImage- Returns:
- ApplicationManager for chaining convenience
-
setTags
Description copied from interface:ApplicationManager
Sets up to 5 unique tags for this application.- Specified by:
setTags
in interfaceApplicationManager
- Parameters:
tags
- Up to 5 tags (each max 20 characters)- Returns:
- ApplicationManager for chaining convenience
-
setInteractionsEndpointUrl
@Nonnull public ApplicationManager setInteractionsEndpointUrl(@Nullable String interactionsEndpointUrl) Description copied from interface:ApplicationManager
Sets the interactions endpoint URL for this application.CAUTION:This will cause JDA to no longer receive interactions through gateway events.
- Specified by:
setInteractionsEndpointUrl
in interfaceApplicationManager
- Parameters:
interactionsEndpointUrl
- The interactions endpoint URL (max 2048 characters)- Returns:
- ApplicationManager for chaining convenience
-
setCustomInstallUrl
Description copied from interface:ApplicationManager
Sets the custom install url for this application.- Specified by:
setCustomInstallUrl
in interfaceApplicationManager
- Parameters:
customInstallUrl
- The custom install URL (max 2048 characters)- Returns:
- ApplicationManager for chaining convenience
-
setInstallParams
@Nonnull public ApplicationManager setInstallParams(@Nullable ApplicationManager.IntegrationTypeConfig installParams) Description copied from interface:ApplicationManager
Sets the default installation parameters of this application.This is used if the application does not use a
custom install URL
. Configures which scopes and permissions should be applied to invite URLs of this application.- Specified by:
setInstallParams
in interfaceApplicationManager
- Parameters:
installParams
- The default install parameters- Returns:
- ApplicationManager for chaining convenience
- See Also:
-
setIntegrationTypeConfig
@Nonnull public ApplicationManager setIntegrationTypeConfig(@Nullable Map<IntegrationType, ApplicationManager.IntegrationTypeConfig> config) Description copied from interface:ApplicationManager
Sets the integration type config of this application.This method accepts a map of the supported integration type to an
ApplicationManager.IntegrationTypeConfig
describing the installation parameters.- Specified by:
setIntegrationTypeConfig
in interfaceApplicationManager
- Parameters:
config
- The config used for installing this application as integration.- Returns:
- ApplicationManager for chaining convenience
- See Also:
-