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