Class KnownCustomEmojiChangeNameEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.server.ServerEventImpl
-
- org.javacord.core.event.server.emoji.KnownCustomEmojiEventImpl
-
- org.javacord.core.event.server.emoji.KnownCustomEmojiChangeNameEventImpl
-
- All Implemented Interfaces:
Event
,KnownCustomEmojiChangeNameEvent
,KnownCustomEmojiEvent
,ServerEvent
public class KnownCustomEmojiChangeNameEventImpl extends KnownCustomEmojiEventImpl implements KnownCustomEmojiChangeNameEvent
The implementation ofKnownCustomEmojiChangeNameEvent
.
-
-
Constructor Summary
Constructors Constructor Description KnownCustomEmojiChangeNameEventImpl(KnownCustomEmoji emoji, String newName, String oldName)
Creates a new custom emoji change name event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNewName()
String
getOldName()
-
Methods inherited from interface org.javacord.api.event.server.emoji.KnownCustomEmojiEvent
getEmoji
-
Methods inherited from class org.javacord.core.event.server.emoji.KnownCustomEmojiEventImpl
getEmoji
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.javacord.api.event.server.ServerEvent
getServer
-
Methods inherited from class org.javacord.core.event.server.ServerEventImpl
getServer
-
-
-
-
Constructor Detail
-
KnownCustomEmojiChangeNameEventImpl
public KnownCustomEmojiChangeNameEventImpl(KnownCustomEmoji emoji, String newName, String oldName)
Creates a new custom emoji change name event.- Parameters:
emoji
- The updated emoji.newName
- The new name of the custom emoji.oldName
- The old name of the custom emoji.
-
-
Method Detail
-
getOldName
public String getOldName()
- Specified by:
getOldName
in interfaceKnownCustomEmojiChangeNameEvent
-
getNewName
public String getNewName()
- Specified by:
getNewName
in interfaceKnownCustomEmojiChangeNameEvent
-
-