Class KnownCustomEmojiChangeWhitelistedRolesEventImpl
- 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.KnownCustomEmojiChangeWhitelistedRolesEventImpl
-
- All Implemented Interfaces:
Event
,KnownCustomEmojiChangeWhitelistedRolesEvent
,KnownCustomEmojiEvent
,ServerEvent
public class KnownCustomEmojiChangeWhitelistedRolesEventImpl extends KnownCustomEmojiEventImpl implements KnownCustomEmojiChangeWhitelistedRolesEvent
The implementation ofKnownCustomEmojiChangeWhitelistedRolesEvent
.
-
-
Constructor Summary
Constructors Constructor Description KnownCustomEmojiChangeWhitelistedRolesEventImpl(KnownCustomEmoji emoji, Collection<Role> newWhitelist, Collection<Role> oldWhitelist)
Creates a new custom emoji change whitelisted roles event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Collection<Role>>
getNewWhitelistedRoles()
Optional<Collection<Role>>
getOldWhitelistedRoles()
-
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
-
KnownCustomEmojiChangeWhitelistedRolesEventImpl
public KnownCustomEmojiChangeWhitelistedRolesEventImpl(KnownCustomEmoji emoji, Collection<Role> newWhitelist, Collection<Role> oldWhitelist)
Creates a new custom emoji change whitelisted roles event.- Parameters:
emoji
- The updated emoji.newWhitelist
- The new whitelist of the custom emoji.oldWhitelist
- The old whitelist of the custom emoji.
-
-
Method Detail
-
getOldWhitelistedRoles
public Optional<Collection<Role>> getOldWhitelistedRoles()
- Specified by:
getOldWhitelistedRoles
in interfaceKnownCustomEmojiChangeWhitelistedRolesEvent
-
getNewWhitelistedRoles
public Optional<Collection<Role>> getNewWhitelistedRoles()
- Specified by:
getNewWhitelistedRoles
in interfaceKnownCustomEmojiChangeWhitelistedRolesEvent
-
-