Class CategoryUpdateEvent


  • public class CategoryUpdateEvent
    extends ChannelEvent
    Dispatched when a Category is updated in a guild.

    The old category may not be present if categories are not stored.

    This event is dispatched by Discord.

    See Also:
    Channel Update
    • Method Detail

      • getCurrent

        public Category getCurrent()
        Get the current, new, version of the Category that has been updated in this event.
        Returns:
        The current version of the updated Category.
      • getOld

        public Optional<Category> getOld()
        Gets the old version of the Category that has been updated in this event, if present. This may not be available if Categories are not stored.
        Returns:
        The old version of the updated Category, if present.