Class StoreChannelUpdateEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.channel.ChannelEvent
-
- discord4j.core.event.domain.channel.StoreChannelUpdateEvent
-
public class StoreChannelUpdateEvent extends ChannelEvent
Dispatched when aStoreChannelis updated in a guild.The old store channel may not be present if channels are not stored.
This event is dispatched by Discord.
- See Also:
- Channel Update
-
-
Constructor Summary
Constructors Constructor Description StoreChannelUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, StoreChannel current, StoreChannel old)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StoreChannelgetCurrent()Gets the current, new version of theStoreChannelthat was updated in this event.Optional<StoreChannel>getOld()Gets the old version of theStoreChannelthat was updated in this event, if present.StringtoString()-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Constructor Detail
-
StoreChannelUpdateEvent
public StoreChannelUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, StoreChannel current, @Nullable StoreChannel old)
-
-
Method Detail
-
getCurrent
public StoreChannel getCurrent()
Gets the current, new version of theStoreChannelthat was updated in this event.- Returns:
- The current version of the updated
StoreChannel.
-
getOld
public Optional<StoreChannel> getOld()
Gets the old version of theStoreChannelthat was updated in this event, if present. This may not be available ifStoreChannelsare not stored.- Returns:
- The old version of the updated
StoreChannel, if present.
-
-