public class EmoteManager
extends java.lang.Object
This is a client only function!
Constructor and Description |
---|
EmoteManager(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 |
RestAction<java.lang.Void> |
setName(java.lang.String name)
Sets the name of this Emote.
|
RestAction<java.lang.Void> |
setRoles(java.util.Set<Role> roles)
Set roles this emote is active for.
|
public EmoteManager(net.dv8tion.jda.core.entities.impl.EmoteImpl emote)
public Guild getGuild()
Guild
this emote is inpublic RestAction<java.lang.Void> setName(java.lang.String name)
This is a client only function!
name
- The name to set for this Emote (null to keep current name)RestAction
- Void
AccountTypeException
- if the current AccountType is not ClientPermissionException
- if either the Emote trying to update is fake or we do not have the required Permissions to update this emotejava.lang.IllegalArgumentException
- if the specified name has less than 2 chars or more than 32 chars.public RestAction<java.lang.Void> setRoles(java.util.Set<Role> roles)
This is a client only function!
roles
- A set of roles (all within the same guild the emote is in) / null to keep current rolesRestAction
- Void
AccountTypeException
- if the current AccountType is not ClientPermissionException
- if either the Emote trying to update is fake or we do not have the required Permissions to update this emote