Class ServerTextChannelChangeDefaultAutoArchiveDurationEventImpl
- 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.ServerTextChannelChangeDefaultAutoArchiveDurationEventImpl
-
- All Implemented Interfaces:
ChannelEvent
,ServerChannelEvent
,ServerTextChannelChangeDefaultAutoArchiveDurationEvent
,ServerTextChannelEvent
,TextChannelEvent
,Event
,ServerEvent
public class ServerTextChannelChangeDefaultAutoArchiveDurationEventImpl extends ServerTextChannelEventImpl implements ServerTextChannelChangeDefaultAutoArchiveDurationEvent
The implementation for the ServerTextChannelChangeDefaultAutoArchiveDurationEvent.
-
-
Constructor Summary
Constructors Constructor Description ServerTextChannelChangeDefaultAutoArchiveDurationEventImpl(ServerTextChannel channel, int oldDefaultAutoArchiveDuration, int newDefaultAutoArchiveDuration)
Creates a new server text channel change default auto archive duration event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAutoArchiveDuration()
int
getOldDefaultAutoArchiveDuration()
-
Methods inherited from class org.javacord.core.event.channel.server.text.ServerTextChannelEventImpl
getChannel
-
Methods inherited from class org.javacord.core.event.server.ServerEventImpl
getServer
-
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.server.ServerChannelEvent
getServer
-
Methods inherited from interface org.javacord.api.event.channel.server.text.ServerTextChannelEvent
getChannel
-
Methods inherited from interface org.javacord.api.event.channel.TextChannelEvent
getPrivateChannel, getServerTextChannel, getServerThreadChannel, getServerVoiceChannel
-
-
-
-
Constructor Detail
-
ServerTextChannelChangeDefaultAutoArchiveDurationEventImpl
public ServerTextChannelChangeDefaultAutoArchiveDurationEventImpl(ServerTextChannel channel, int oldDefaultAutoArchiveDuration, int newDefaultAutoArchiveDuration)
Creates a new server text channel change default auto archive duration event.- Parameters:
channel
- The channel of the event.oldDefaultAutoArchiveDuration
- The old default auto archive duration of the channel.newDefaultAutoArchiveDuration
- The new default auto archive duration of the channel.
-
-
Method Detail
-
getOldDefaultAutoArchiveDuration
public int getOldDefaultAutoArchiveDuration()
- Specified by:
getOldDefaultAutoArchiveDuration
in interfaceServerTextChannelChangeDefaultAutoArchiveDurationEvent
-
getAutoArchiveDuration
public int getAutoArchiveDuration()
- Specified by:
getAutoArchiveDuration
in interfaceServerTextChannelChangeDefaultAutoArchiveDurationEvent
-
-