Class GuildUpdateRulesChannelEvent
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.GuildUpdateRulesChannelEvent
- All Implemented Interfaces:
GenericEvent, UpdateEvent<Guild, TextChannel>
Indicates that the rules channel of a
Guild changed.
Can be used to detect when a guild rule channel changes and retrieve the old one
Identifier: rules_channel
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuildUpdateRulesChannelEvent(JDA api, long responseNumber, Guild guild, TextChannel oldRulesChannel) -
Method Summary
Modifier and TypeMethodDescriptionThe new rules channel.The previous rules 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
-
GuildUpdateRulesChannelEvent
public GuildUpdateRulesChannelEvent(@Nonnull JDA api, long responseNumber, @Nonnull Guild guild, @Nullable TextChannel oldRulesChannel)
-
-
Method Details
-
getOldRulesChannel
The previous rules channel.- Returns:
- The previous rules channel
-
getNewRulesChannel
The new rules channel.- Returns:
- The new rules channel
-