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
-
Constructor Summary
ConstructorDescriptionGuildUpdateSystemChannelEvent
(JDA api, long responseNumber, Guild guild, TextChannel oldSystemChannel) -
Method Summary
Modifier and TypeMethodDescriptionThe new system channel.The previous system 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 Details
-
IDENTIFIER
- See Also:
-
-
Constructor Details
-
GuildUpdateSystemChannelEvent
-
-
Method Details
-
getOldSystemChannel
The previous system channel.- Returns:
- The previous system channel
-
getNewSystemChannel
The new system channel.- Returns:
- The new system channel
-