Class CustomEmojiManagerImpl
java.lang.Object
net.dv8tion.jda.internal.requests.RestActionImpl<Void>
net.dv8tion.jda.internal.requests.restaction.AuditableRestActionImpl<Void>
net.dv8tion.jda.internal.managers.ManagerBase<CustomEmojiManager>
net.dv8tion.jda.internal.managers.CustomEmojiManagerImpl
- All Implemented Interfaces:
CustomEmojiManager
,Manager<CustomEmojiManager>
,RestAction<Void>
,AuditableRestAction<Void>
public class CustomEmojiManagerImpl
extends ManagerBase<CustomEmojiManager>
implements CustomEmojiManager
-
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.CustomEmojiManager
NAME, ROLES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEmoji()
The targetRichCustomEmoji
that will be modified by this Managerreset()
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.Sets the name of the selectedRichCustomEmoji
.Sets the restriction roles of the selectedRichCustomEmoji
.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.managers.CustomEmojiManager
getGuild
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
-
CustomEmojiManagerImpl
-
-
Method Details
-
getEmoji
Description copied from interface:CustomEmojiManager
The targetRichCustomEmoji
that will be modified by this Manager- Specified by:
getEmoji
in interfaceCustomEmojiManager
- Returns:
- The target emoji
-
reset
Description copied from interface:CustomEmojiManager
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(CustomEmojiManager.NAME | CustomEmojiManager.ROLES);
Flag Constants:
- Specified by:
reset
in interfaceCustomEmojiManager
- Specified by:
reset
in interfaceManager<CustomEmojiManager>
- Overrides:
reset
in classManagerBase<CustomEmojiManager>
- Parameters:
fields
- Integer value containing the flags to reset.- Returns:
- CustomEmojiManager for chaining convenience
-
reset
Description copied from interface:CustomEmojiManager
Resets the fields specified by the provided bit-flag patterns.
Example:manager.reset(CustomEmojiManager.NAME, CustomEmojiManager.ROLES);
Flag Constants:
- Specified by:
reset
in interfaceCustomEmojiManager
- Specified by:
reset
in interfaceManager<CustomEmojiManager>
- Overrides:
reset
in classManagerBase<CustomEmojiManager>
- Parameters:
fields
- Integer values containing the flags to reset.- Returns:
- CustomEmojiManager for chaining convenience
-
reset
Description copied from interface:Manager
Resets all fields for this Manager- Specified by:
reset
in interfaceManager<CustomEmojiManager>
- Overrides:
reset
in classManagerBase<CustomEmojiManager>
- Returns:
- The current Manager with all settings reset to default
-
setName
Description copied from interface:CustomEmojiManager
Sets the name of the selectedRichCustomEmoji
.An emoji name must be between 2-32 characters long!
Emoji names may only be populated with alphanumeric (with underscore and dash).Example:
tatDab
orfmgSUP
- Specified by:
setName
in interfaceCustomEmojiManager
- Parameters:
name
- The new name for the selectedRichCustomEmoji
- Returns:
- CustomEmojiManager for chaining convenience
-
setRoles
Description copied from interface:CustomEmojiManager
Sets the restriction roles of the selectedRichCustomEmoji
.
If these are empty the emoji will be available to everyone otherwise only available to the specified roles.An emoji's restriction roles must not contain
null
!- Specified by:
setRoles
in interfaceCustomEmojiManager
- Parameters:
roles
- The new set ofRoles
for the selectedRichCustomEmoji
to be restricted to, ornull
to clear the roles- Returns:
- CustomEmojiManager for chaining convenience
-