public class EmoteManager
extends java.lang.Object
EmoteManagerUpdatable instance.
This decoration allows to modify a single field by automatically building an update RestAction
| Constructor and Description |
|---|
EmoteManager(net.dv8tion.jda.core.entities.impl.EmoteImpl emote)
Creates a new EmoteManager instance
|
| Modifier and Type | Method and Description |
|---|---|
Emote |
getEmote()
The target
Emote
that will be modified by this Manager |
Guild |
getGuild()
|
JDA |
getJDA()
The
JDA instance of this Manager |
AuditableRestAction<java.lang.Void> |
setName(java.lang.String name)
Sets the name of the selected
Emote. |
AuditableRestAction<java.lang.Void> |
setRoles(java.util.Set<Role> roles)
Deprecated.
This setting is only available to whitelisted accounts and may be removed in successive builds.
|
public EmoteManager(net.dv8tion.jda.core.entities.impl.EmoteImpl emote)
emote - The target EmoteImpl to modifyAccountTypeException - If the currently logged in account is not from AccountType.CLIENTjava.lang.IllegalStateException - If the specified Emote is fake or managed.public Emote getEmote()
Emote
that will be modified by this Manager@CheckReturnValue public AuditableRestAction<java.lang.Void> 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 EmoteAuditableRestAction
#update()InsufficientPermissionException - If the currently logged in account does not have the Permission MANAGE_EMOTESjava.lang.IllegalArgumentException - If the provided name is null or not between 2-32 characters longEmoteManagerUpdatable.getNameField(),
EmoteManagerUpdatable.update()@Deprecated @CheckReturnValue public AuditableRestAction<java.lang.Void> setRoles(java.util.Set<Role> roles)
Emote.
An emote's restriction roles must not contain null!
roles - The new not-null set of Roles for the selected Emote
to be restricted toAuditableRestAction
#update()InsufficientPermissionException - If the currently logged in account does not have the Permission MANAGE_EMOTESjava.lang.IllegalArgumentException - If any of the provided values is nullEmoteManagerUpdatable.getRolesField(),
EmoteManagerUpdatable.update()