Class StoreChannelUpdateEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.channel.ChannelEvent
discord4j.core.event.domain.channel.StoreChannelUpdateEvent
Dispatched when a
StoreChannel
is 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:
-
Constructor Summary
ConstructorDescriptionStoreChannelUpdateEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, StoreChannel current, StoreChannel old) -
Method Summary
Modifier and TypeMethodDescriptionGets the current, new version of theStoreChannel
that was updated in this event.getOld()
Gets the old version of theStoreChannel
that was updated in this event, if present.toString()
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
StoreChannelUpdateEvent
public StoreChannelUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, StoreChannel current, @Nullable StoreChannel old)
-
-
Method Details
-
getCurrent
Gets the current, new version of theStoreChannel
that was updated in this event.- Returns:
- The current version of the updated
StoreChannel
.
-
getOld
Gets the old version of theStoreChannel
that was updated in this event, if present. This may not be available ifStoreChannels
are not stored.- Returns:
- The old version of the updated
StoreChannel
, if present.
-
toString
-