Class ForumChannelUpdateEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.channel.ChannelEvent
discord4j.core.event.domain.channel.ForumChannelUpdateEvent
Dispatched when a
ForumChannel
is updated in a guild.
The old news channel may not be present if news channels are not stored.
This event is dispatched by Discord.
- See Also:
-
Constructor Summary
ConstructorDescriptionForumChannelUpdateEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, ForumChannel current, ForumChannel old) -
Method Summary
Modifier and TypeMethodDescriptionGets the current, new version of theForumChannel
that was updated in this event.getOld()
Gets the old version of theForumChannel
that was updated in this event, if present.toString()
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
ForumChannelUpdateEvent
public ForumChannelUpdateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, ForumChannel current, @Nullable ForumChannel old)
-
-
Method Details
-
getCurrent
Gets the current, new version of theForumChannel
that was updated in this event.- Returns:
- The current version of the updated
ForumChannel
.
-
getOld
Gets the old version of theForumChannel
that was updated in this event, if present.- Returns:
- The old version of the updated
ForumChannel
, if present.
-
toString
-