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>
public class GuildUpdateCommunityUpdatesChannelEvent extends GenericGuildUpdateEvent<TextChannel>
Indicates that the community updates channel of aGuild
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 Modifier and Type Field Description static java.lang.String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description GuildUpdateCommunityUpdatesChannelEvent(JDA api, long responseNumber, Guild guild, TextChannel oldCommunityUpdatesChannel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextChannel
getNewCommunityUpdatesChannel()
The new community updates channel.TextChannel
getOldCommunityUpdatesChannel()
The previous community updates channel.-
Methods inherited from class net.dv8tion.jda.api.events.guild.update.GenericGuildUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifier, toString
-
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
-
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getResponseNumber
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getResponseNumber
-
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GuildUpdateCommunityUpdatesChannelEvent
public GuildUpdateCommunityUpdatesChannelEvent(@Nonnull JDA api, long responseNumber, @Nonnull Guild guild, @Nullable TextChannel oldCommunityUpdatesChannel)
-
-
Method Detail
-
getOldCommunityUpdatesChannel
@Nullable public TextChannel getOldCommunityUpdatesChannel()
The previous community updates channel.- Returns:
- The previous community updates channel
-
getNewCommunityUpdatesChannel
@Nullable public TextChannel getNewCommunityUpdatesChannel()
The new community updates channel.- Returns:
- The new community updates channel
-
-