Class GuildUpdateSystemChannelEvent
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.GuildUpdateSystemChannelEvent
- All Implemented Interfaces:
GenericEvent, UpdateEvent<Guild, TextChannel>
Indicates that the system channel of a
This is used for welcome messages
Guild changed.
This is used for welcome messages
Can be used to detect when a guild system channel changes and retrieve the old one
Identifier: system_channel
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuildUpdateSystemChannelEvent(JDA api, long responseNumber, Guild guild, TextChannel oldSystemChannel) -
Method Summary
Modifier and TypeMethodDescriptionThe new system channel.The previous system 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
-
GuildUpdateSystemChannelEvent
public GuildUpdateSystemChannelEvent(@Nonnull JDA api, long responseNumber, @Nonnull Guild guild, @Nullable TextChannel oldSystemChannel)
-
-
Method Details
-
getOldSystemChannel
The previous system channel.- Returns:
- The previous system channel
-
getNewSystemChannel
The new system channel.- Returns:
- The new system channel
-