Class ServerTextChannelChangeTopicEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.server.ServerEventImpl
-
- org.javacord.core.event.channel.server.ServerChannelEventImpl
-
- org.javacord.core.event.channel.server.text.ServerTextChannelEventImpl
-
- org.javacord.core.event.channel.server.text.ServerTextChannelChangeTopicEventImpl
-
- All Implemented Interfaces:
ChannelEvent
,ServerChannelEvent
,ServerTextChannelChangeTopicEvent
,ServerTextChannelEvent
,TextChannelEvent
,Event
,ServerEvent
public class ServerTextChannelChangeTopicEventImpl extends ServerTextChannelEventImpl implements ServerTextChannelChangeTopicEvent
The implementation ofServerTextChannelChangeTopicEvent
.
-
-
Constructor Summary
Constructors Constructor Description ServerTextChannelChangeTopicEventImpl(ServerTextChannel channel, String newTopic, String oldTopic)
Creates a new server text channel change topic event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNewTopic()
String
getOldTopic()
-
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
-
Methods inherited from interface org.javacord.api.event.channel.server.text.ServerTextChannelEvent
getChannel
-
Methods inherited from class org.javacord.core.event.channel.server.text.ServerTextChannelEventImpl
getChannel
-
Methods inherited from interface org.javacord.api.event.channel.TextChannelEvent
getGroupChannel, getPrivateChannel, getServerTextChannel
-
-
-
-
Constructor Detail
-
ServerTextChannelChangeTopicEventImpl
public ServerTextChannelChangeTopicEventImpl(ServerTextChannel channel, String newTopic, String oldTopic)
Creates a new server text channel change topic event.- Parameters:
channel
- The channel of the event.newTopic
- The new topic of the channel.oldTopic
- The old topic of the channel.
-
-
Method Detail
-
getNewTopic
public String getNewTopic()
- Specified by:
getNewTopic
in interfaceServerTextChannelChangeTopicEvent
-
getOldTopic
public String getOldTopic()
- Specified by:
getOldTopic
in interfaceServerTextChannelChangeTopicEvent
-
-