Interface StoreLayout

  • All Known Implementing Classes:
    LegacyStoreLayout, LocalStoreLayout, SelectiveStoreLayout

    public interface StoreLayout
    A StoreLayout defines how store actions should be handled according to their type. It enforces an implementation for a minimal set of actions required by Discord4J, and enables the declaration of custom action types.
    • Method Detail

      • getCustomActionMapper

        default ActionMapper getCustomActionMapper()
        Defines a mapping for custom action types. By default, returns an empty ActionMapper, implementations may override this method to supply custom mappings.
        Returns:
        an ActionMapper
      • getEnabledFlags

        default EnumSet<StoreFlag> getEnabledFlags()
        Return a set of StoreFlag values to selectively enable store actions. By default, it returns all values, meaning this layout will enable all available store actions.
        Returns:
        a set of flags to partially enable store actions
        Since:
        3.2.5