public class StoreChannelUpdateEvent extends ChannelEvent
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.
Constructor and Description |
---|
StoreChannelUpdateEvent(DiscordClient client,
StoreChannel current,
StoreChannel old) |
Modifier and Type | Method and Description |
---|---|
StoreChannel |
getCurrent()
Gets the current, new version of the
StoreChannel that was updated in this event. |
Optional<StoreChannel> |
getOld()
Gets the old version of the
StoreChannel that was updated in this event, if present. |
String |
toString() |
public StoreChannelUpdateEvent(DiscordClient client, StoreChannel current, @Nullable StoreChannel old)
public StoreChannel getCurrent()
StoreChannel
that was updated in this event.StoreChannel
.public Optional<StoreChannel> getOld()
StoreChannel
that was updated in this event, if present.
This may not be available if StoreChannels
are not stored.StoreChannel
, if present.