code: private String getThreadType(DispatchQueueSelector queueSelector) {
          String threadType;
          if (queueSelector instanceof DiscordApi) {
              threadType = "a global listener thread";
          } else if (queueSelector == null) {
              threadType = "a connection listener thread";
          } else {
              threadType = String.format("a listener thread for %s", queueSelector);
          }
          return threadType;
      }
docs: Gets the thread type used in log message for the given queue selector.
  
  @param queueSelector The queue selector.
  @return The name of the thread type.