public class TextChannelUpdateEvent extends ChannelEvent
TextChannel
is updated in a guild.
The old text channel may not be present if text channels are not stored.
This event is dispatched by Discord.
Constructor and Description |
---|
TextChannelUpdateEvent(DiscordClient client,
TextChannel current,
TextChannel old) |
Modifier and Type | Method and Description |
---|---|
TextChannel |
getCurrent()
Gets the current, new version of the
TextChannel that was updated in this event. |
Optional<TextChannel> |
getOld()
Gets the old version of the
TextChannel that was updated in this event, if present. |
String |
toString() |
public TextChannelUpdateEvent(DiscordClient client, TextChannel current, @Nullable TextChannel old)
public TextChannel getCurrent()
TextChannel
that was updated in this event.TextChannel
.public Optional<TextChannel> getOld()
TextChannel
that was updated in this event, if present.
This may not be available if TextChannels
are not stored.TextChannel
, if present.