public class EmoteManagerUpdatable
extends java.lang.Object
This is a client only function!
Modifier and Type | Field and Description |
---|---|
static java.util.regex.Pattern |
NAME_PATTERN |
Constructor and Description |
---|
EmoteManagerUpdatable(net.dv8tion.jda.core.entities.impl.EmoteImpl emote) |
Modifier and Type | Method and Description |
---|---|
Emote |
getEmote()
The
Emote represented by this Manager. |
Guild |
getGuild()
The
Guild this emote is in |
JDA |
getJDA()
The
JDA instance of this Emote |
EmoteField<java.lang.String> |
getNameField()
Sets the name of this Emote
|
EmoteField<java.util.Collection<Role>> |
getRolesField()
Set roles this emote is active for.
|
void |
reset()
Resets this Manager to default values.
|
RestAction<java.lang.Void> |
update()
Updates the Emote of this Manager with the values set with the intermediate Methods.
|
public EmoteManagerUpdatable(net.dv8tion.jda.core.entities.impl.EmoteImpl emote)
public Guild getGuild()
Guild
this emote is inpublic EmoteField<java.lang.String> getNameField()
Must call update()
to finalize changes.
name
- The name to set for this Emote (null to keep current name)public EmoteField<java.util.Collection<Role>> getRolesField()
Must call update()
to finalize changes.
roles
- A set of roles (all within the same guild the emote is in) / null to keep current rolespublic void reset()
public RestAction<java.lang.Void> update()
This is a client only function!
RestAction
- Void
PermissionException
- if we do not have the required Permissions to update this emote (Permission.MANAGE_EMOTES
)