Package net.dv8tion.jda.api.managers
Interface ApplicationEmojiManager
- All Superinterfaces:
AuditableRestAction<Void>
,Manager<ApplicationEmojiManager>
,RestAction<Void>
Manager providing functionality to update the name field for an
ApplicationEmoji
.
Example
manager.setName("minn")
.queue();
- See Also:
-
Field Summary
Fields inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
MAX_REASON_LENGTH
-
Method Summary
Modifier and TypeMethodDescriptiongetEmoji()
The targetApplicationEmoji
that will be modified by 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 selectedApplicationEmoji
.Methods inherited from interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction
reason
Methods inherited from interface net.dv8tion.jda.api.managers.Manager
deadline, reset, setCheck, timeout
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
-
Field Details
-
NAME
static final long NAMEUsed to reset the name field- See Also:
-
-
Method Details
-
reset
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.Flag Constants:
- Specified by:
reset
in interfaceManager<ApplicationEmojiManager>
- Parameters:
fields
- Integer value containing the flags to reset.- Returns:
- ApplicationEmojiManager for chaining convenience.
-
reset
Resets the fields specified by the provided bit-flag patterns.Flag Constants:
- Specified by:
reset
in interfaceManager<ApplicationEmojiManager>
- Parameters:
fields
- Integer values containing the flags to reset.- Returns:
- ApplicationEmojiManager for chaining convenience.
-
getEmoji
The targetApplicationEmoji
that will be modified by this Manager- Returns:
- The target emoji
-
setName
Sets the name of the selectedApplicationEmoji
.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
- Parameters:
name
- The new name for the selectedApplicationEmoji
- Returns:
- ApplicationEmojiManager for chaining convenience.
- Throws:
IllegalArgumentException
- If the provided name is null, not alphanumeric, or not between 2 and 32 characters long
-