public class EmoteManager
extends net.dv8tion.jda.core.managers.impl.ManagerBase
Emote
.
Example
manager.setName("minn")
.setRoles(null)
.queue();
manager.reset(EmoteManager.NAME | EmoteManager.ROLES)
.setName("dv8")
.setRoles(roles)
.queue();
Emote.getManager()
AuditableRestAction.EmptyRestAction<T>
Modifier and Type | Field | Description |
---|---|---|
static long |
NAME |
Used to reset the name field
|
static long |
ROLES |
Used to reset the roles field
|
DEFAULT_FAILURE, DEFAULT_SUCCESS, LOG
Constructor | Description |
---|---|
EmoteManager(net.dv8tion.jda.core.entities.impl.EmoteImpl emote) |
Creates a new EmoteManager instance
|
Modifier and Type | Method | Description |
---|---|---|
Emote |
getEmote() |
The target
Emote
that will be modified by this Manager |
Guild |
getGuild() |
|
JDA |
getJDA() |
The
JDA instance of this Manager |
EmoteManager |
reset(long fields) |
Resets the fields specified by the provided bit-flag pattern.
|
EmoteManager |
reset(long... fields) |
Resets the fields specified by the provided bit-flag patterns.
|
EmoteManager |
setName(java.lang.String name) |
Sets the name of the selected
Emote . |
EmoteManager |
setRoles(java.util.Set<Role> roles) |
Sets the restriction roles of the selected
Emote . |
reason, setCheck
complete, isPermissionChecksEnabled, queue, setPermissionChecksEnabled
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
complete, completeAfter, isPassContext, queue, queue, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, queueAfter, setPassContext, submit, submit, submitAfter, submitAfter
public static final long NAME
public static final long ROLES
public JDA getJDA()
JDA
instance of this ManagergetJDA
in class RestAction<java.lang.Void>
public Emote getEmote()
Emote
that will be modified by this Manager@CheckReturnValue public EmoteManager reset(long fields)
manager.reset(EmoteManager.NAME | EmoteManager.ROLES);
Flag Constants:
reset
in class net.dv8tion.jda.core.managers.impl.ManagerBase
fields
- Integer value containing the flags to reset.@CheckReturnValue public EmoteManager reset(long... fields)
manager.reset(EmoteManager.NAME, EmoteManager.ROLES);
Flag Constants:
reset
in class net.dv8tion.jda.core.managers.impl.ManagerBase
fields
- Integer values containing the flags to reset.@CheckReturnValue public EmoteManager setName(java.lang.String name)
Emote
.
An emote name must be between 2-32 characters long!
Emote names may only be populated with alphanumeric (with underscore and dash).
Example: tatDab
or fmgSUP
name
- The new name for the selected Emote
java.lang.IllegalArgumentException
- If the provided name is null
or not between 2-32 characters long@CheckReturnValue public EmoteManager setRoles(java.util.Set<Role> roles)
Emote
.
An emote's restriction roles must not contain null
!