public class EmoteImpl extends java.lang.Object implements Emote
Constructor and Description |
---|
EmoteImpl(java.lang.String id,
Guild guild) |
EmoteImpl(java.lang.String id,
JDA api) |
Modifier and Type | Method and Description |
---|---|
RestAction<java.lang.Void> |
delete()
Deletes this Emote.
|
boolean |
equals(java.lang.Object obj) |
Guild |
getGuild()
Guild this emote is attached to. |
java.lang.String |
getId()
The Snowflake id of this entity.
|
JDA |
getJDA()
The
JDA instance of this Emote |
EmoteManager |
getManager()
The
Manager for this emote |
EmoteManagerUpdatable |
getManagerUpdatable()
An updatable manager for this Emote.
|
java.lang.String |
getName()
The name of this emote
|
java.util.List<Role> |
getRoles()
Roles this emote is active for (source)
|
java.util.HashSet<Role> |
getRoleSet() |
int |
hashCode() |
boolean |
isFake()
Describes whether an entity is fake or not.
|
boolean |
isManaged()
Whether this emote is managed (source)
|
EmoteImpl |
setManaged(boolean val) |
EmoteImpl |
setName(java.lang.String name) |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canInteract, canInteract, getAsMention, getImageUrl
getCreationTime
public EmoteImpl(java.lang.String id, Guild guild)
public EmoteImpl(java.lang.String id, JDA api)
public Guild getGuild()
Emote
Guild
this emote is attached to.This is null if the emote is fake (retrieved from a Message)
public java.util.List<Role> getRoles()
Emote
public java.lang.String getName()
Emote
public boolean isManaged()
Emote
public boolean isFake()
IFakeable
public java.lang.String getId()
ISnowflake
getId
in interface ISnowflake
public EmoteManager getManager()
Emote
Manager
for this emote
This will only work for the client account type.
With the EmoteManager returned you can modify this Emote's properties or delete it.
getManager
in interface Emote
public EmoteManagerUpdatable getManagerUpdatable()
Emote
This will only work for the client account type.
With the EmoteManager returned you can modify this Emote's properties or delete it.
This specific Manager is used to modify multiple properties at once by setting the property and calling EmoteManagerUpdatable.update()
getManagerUpdatable
in interface Emote
public RestAction<java.lang.Void> delete()
Emote
delete
in interface Emote
RestAction
- Void
public EmoteImpl setName(java.lang.String name)
public EmoteImpl setManaged(boolean val)
public java.util.HashSet<Role> getRoleSet()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object