Class GuildUpdateFeaturesEvent

  • All Implemented Interfaces:
    GenericEvent, UpdateEvent<Guild,​java.util.Set<java.lang.String>>

    public class GuildUpdateFeaturesEvent
    extends GenericGuildUpdateEvent<java.util.Set<java.lang.String>>
    Indicates that the features of a Guild changed.

    Can be used to detect when the features change and retrieve the old ones

    Identifier: features

    • Constructor Detail

      • GuildUpdateFeaturesEvent

        public GuildUpdateFeaturesEvent​(@Nonnull
                                        JDA api,
                                        long responseNumber,
                                        @Nonnull
                                        Guild guild,
                                        @Nonnull
                                        java.util.Set<java.lang.String> oldFeatures)
    • Method Detail

      • getOldFeatures

        @Nonnull
        public java.util.Set<java.lang.String> getOldFeatures()
        The old Set of features before the Guild update.
        Returns:
        Never-null, unmodifiable Set of the old features
      • getNewFeatures

        @Nonnull
        public java.util.Set<java.lang.String> getNewFeatures()
        The new Set of features after the Guild update.
        Returns:
        Never-null, unmodifiable Set of the new features