Class TemplateManagerImpl
java.lang.Object
net.dv8tion.jda.internal.requests.RestActionImpl<Void>
net.dv8tion.jda.internal.requests.restaction.AuditableRestActionImpl<Void>
net.dv8tion.jda.internal.managers.ManagerBase<TemplateManager>
net.dv8tion.jda.internal.managers.TemplateManagerImpl
- All Implemented Interfaces:
Manager<TemplateManager>
,TemplateManager
,RestAction<Void>
,AuditableRestAction<Void>
-
Field Summary
Fields inherited from class net.dv8tion.jda.internal.requests.RestActionImpl
LOG
Fields inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
MAX_REASON_LENGTH
Fields inherited from interface net.dv8tion.jda.api.managers.TemplateManager
DESCRIPTION, NAME
-
Constructor Summary
ConstructorsConstructorDescriptionTemplateManagerImpl
(Template template) Creates a new TemplateManager instance -
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.setDescription
(String description) Sets the description of thisTemplate
.Sets the name of thisTemplate
.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
-
TemplateManagerImpl
Creates a new TemplateManager instance- Parameters:
template
-Template
that should be modified
-
-
Method Details
-
reset
Description copied from interface:TemplateManager
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(TemplateManager.NAME | TemplateManager.DESCRIPTION);
Flag Constants:
- Specified by:
reset
in interfaceManager<TemplateManager>
- Specified by:
reset
in interfaceTemplateManager
- Overrides:
reset
in classManagerBase<TemplateManager>
- Parameters:
fields
- Integer value containing the flags to reset.- Returns:
- TemplateManager for chaining convenience
-
reset
Description copied from interface:TemplateManager
Resets the fields specified by the provided bit-flag patterns.
Example:manager.reset(TemplateManager.NAME, TemplateManager.DESCRIPTION);
Flag Constants:
- Specified by:
reset
in interfaceManager<TemplateManager>
- Specified by:
reset
in interfaceTemplateManager
- Overrides:
reset
in classManagerBase<TemplateManager>
- Parameters:
fields
- Integer values containing the flags to reset.- Returns:
- TemplateManager for chaining convenience
-
reset
Description copied from interface:Manager
Resets all fields for this Manager- Specified by:
reset
in interfaceManager<TemplateManager>
- Overrides:
reset
in classManagerBase<TemplateManager>
- Returns:
- The current Manager with all settings reset to default
-
setName
Description copied from interface:TemplateManager
Sets the name of thisTemplate
.- Specified by:
setName
in interfaceTemplateManager
- Parameters:
name
- The new name for thisTemplate
- Returns:
- TemplateManager for chaining convenience
-
setDescription
Description copied from interface:TemplateManager
Sets the description of thisTemplate
.- Specified by:
setDescription
in interfaceTemplateManager
- Parameters:
description
- The new description for thisTemplate
- Returns:
- TemplateManager for chaining convenience
-