Class GuildUpdateCommunityUpdatesChannelEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent<TextChannel>
net.dv8tion.jda.api.events.guild.update.GuildUpdateCommunityUpdatesChannelEvent
- All Implemented Interfaces:
GenericEvent, UpdateEvent<Guild, TextChannel>
Indicates that the community updates channel of a
Guild changed.
Can be used to detect when a guild community updates channel changes and retrieve the old one
Identifier: community_updates_channel
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuildUpdateCommunityUpdatesChannelEvent(JDA api, long responseNumber, Guild guild, TextChannel oldCommunityUpdatesChannel) -
Method Summary
Modifier and TypeMethodDescriptionThe new community updates channel.The previous community updates channel.Methods inherited from class GenericGuildUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifierMethods inherited from class GenericGuildEvent
getGuildMethods inherited from class Event
getJDA, getRawData, getResponseNumber, toStringMethods inherited from interface GenericEvent
getJDA, getRawData, getResponseNumberMethods inherited from interface UpdateEvent
getEntityType
-
Field Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
GuildUpdateCommunityUpdatesChannelEvent
public GuildUpdateCommunityUpdatesChannelEvent(@Nonnull JDA api, long responseNumber, @Nonnull Guild guild, @Nullable TextChannel oldCommunityUpdatesChannel)
-
-
Method Details
-
getOldCommunityUpdatesChannel
The previous community updates channel.- Returns:
- The previous community updates channel
-
getNewCommunityUpdatesChannel
The new community updates channel.- Returns:
- The new community updates channel
-