Class DefaultRouter

java.lang.Object
discord4j.rest.request.DefaultRouter
All Implemented Interfaces:
Router

public class DefaultRouter extends Object implements Router
Facilitates the routing of DiscordWebRequest instances to the proper RequestStream according to the bucket in which the request falls.
  • Constructor Details

    • DefaultRouter

      public DefaultRouter(RouterOptions routerOptions)
      Create a Discord API bucket-aware Router configured with the given options.
      Parameters:
      routerOptions - the options that configure this Router
  • Method Details