Package org.javacord.core.event.message
Class ChannelPinsUpdateEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.message.ChannelPinsUpdateEventImpl
-
- All Implemented Interfaces:
ChannelEvent
,TextChannelEvent
,Event
,ChannelPinsUpdateEvent
public class ChannelPinsUpdateEventImpl extends EventImpl implements ChannelPinsUpdateEvent
The implementation ofChannelPinsUpdateEvent
.
-
-
Constructor Summary
Constructors Constructor Description ChannelPinsUpdateEventImpl(TextChannel channel, Instant lastPinTimestamp)
Creates a new channel pins update event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextChannel
getChannel()
Optional<Instant>
getLastPinTimestamp()
-
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.channel.TextChannelEvent
getGroupChannel, getPrivateChannel, getServerTextChannel
-
-
-
-
Constructor Detail
-
ChannelPinsUpdateEventImpl
public ChannelPinsUpdateEventImpl(TextChannel channel, Instant lastPinTimestamp)
Creates a new channel pins update event.- Parameters:
channel
- The channel of the event.lastPinTimestamp
- The time at which the most recent pinned message was pinned.
-
-
Method Detail
-
getChannel
public TextChannel getChannel()
- Specified by:
getChannel
in interfaceChannelEvent
- Specified by:
getChannel
in interfaceTextChannelEvent
-
getLastPinTimestamp
public Optional<Instant> getLastPinTimestamp()
- Specified by:
getLastPinTimestamp
in interfaceChannelPinsUpdateEvent
-
-