Class CommandDispatcherARS<T>

  • All Implemented Interfaces:
    net.dv8tion.jda.api.requests.RestAction<T>, net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T>

    @Deprecated
    public final class CommandDispatcherARS<T>
    extends java.lang.Object
    implements net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T>
    Deprecated.
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandDispatcherARS​(net.dv8tion.jda.api.JDA jda, java.util.concurrent.ScheduledExecutorService executor)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      T complete()
      Deprecated.
       
      T complete​(boolean shouldQueue)
      Deprecated.
       
      T completeAfter​(long delay, java.util.concurrent.TimeUnit unit)
      Deprecated.
       
      net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T> deadline​(long timestamp)
      Deprecated.
       
      net.dv8tion.jda.api.JDA getJDA()
      Deprecated.
       
      void queue()
      Deprecated.
       
      void queue​(java.util.function.Consumer<? super T> success)
      Deprecated.
       
      void queue​(java.util.function.Consumer<? super T> success, java.util.function.Consumer<? super java.lang.Throwable> failure)
      Deprecated.
       
      java.util.concurrent.ScheduledFuture<?> queueAfter​(long delay, java.util.concurrent.TimeUnit unit)
      Deprecated.
       
      java.util.concurrent.ScheduledFuture<?> queueAfter​(long delay, java.util.concurrent.TimeUnit unit, java.util.concurrent.ScheduledExecutorService executor)
      Deprecated.
       
      java.util.concurrent.ScheduledFuture<?> queueAfter​(long delay, java.util.concurrent.TimeUnit unit, java.util.function.Consumer<? super T> success)
      Deprecated.
       
      java.util.concurrent.ScheduledFuture<?> queueAfter​(long delay, java.util.concurrent.TimeUnit unit, java.util.function.Consumer<? super T> success, java.util.concurrent.ScheduledExecutorService executor)
      Deprecated.
       
      java.util.concurrent.ScheduledFuture<?> queueAfter​(long delay, java.util.concurrent.TimeUnit unit, java.util.function.Consumer<? super T> success, java.util.function.Consumer<? super java.lang.Throwable> failure)
      Deprecated.
       
      java.util.concurrent.ScheduledFuture<?> queueAfter​(long delay, java.util.concurrent.TimeUnit unit, java.util.function.Consumer<? super T> success, java.util.function.Consumer<? super java.lang.Throwable> failure, java.util.concurrent.ScheduledExecutorService executor)
      Deprecated.
       
      net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T> reason​(java.lang.String reason)
      Deprecated.
       
      net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T> setCheck​(java.util.function.BooleanSupplier checks)
      Deprecated.
       
      java.util.concurrent.CompletableFuture<T> submit()
      Deprecated.
       
      java.util.concurrent.CompletableFuture<T> submit​(boolean shouldQueue)
      Deprecated.
       
      net.dv8tion.jda.api.utils.concurrent.DelayedCompletableFuture<T> submitAfter​(long delay, java.util.concurrent.TimeUnit unit)
      Deprecated.
       
      net.dv8tion.jda.api.utils.concurrent.DelayedCompletableFuture<T> submitAfter​(long delay, java.util.concurrent.TimeUnit unit, java.util.concurrent.ScheduledExecutorService executor)
      Deprecated.
       
      net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T> timeout​(long timeout, java.util.concurrent.TimeUnit unit)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface net.dv8tion.jda.api.requests.RestAction

        delay, delay, delay, delay, flatMap, flatMap, map
    • Constructor Detail

      • CommandDispatcherARS

        public CommandDispatcherARS​(net.dv8tion.jda.api.JDA jda,
                                    java.util.concurrent.ScheduledExecutorService executor)
        Deprecated.
    • Method Detail

      • reason

        @Nonnull
        public net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T> reason​(@Nullable
                                                                                     java.lang.String reason)
        Deprecated.
        Specified by:
        reason in interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T>
      • getJDA

        @Nonnull
        public net.dv8tion.jda.api.JDA getJDA()
        Deprecated.
        Specified by:
        getJDA in interface net.dv8tion.jda.api.requests.RestAction<T>
      • setCheck

        @Nonnull
        public net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T> setCheck​(@Nullable
                                                                                       java.util.function.BooleanSupplier checks)
        Deprecated.
        Specified by:
        setCheck in interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T>
        Specified by:
        setCheck in interface net.dv8tion.jda.api.requests.RestAction<T>
      • timeout

        @Nonnull
        public net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T> timeout​(long timeout,
                                                                                      @Nonnull
                                                                                      java.util.concurrent.TimeUnit unit)
        Deprecated.
        Specified by:
        timeout in interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T>
        Specified by:
        timeout in interface net.dv8tion.jda.api.requests.RestAction<T>
      • deadline

        @Nonnull
        public net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T> deadline​(long timestamp)
        Deprecated.
        Specified by:
        deadline in interface net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T>
        Specified by:
        deadline in interface net.dv8tion.jda.api.requests.RestAction<T>
      • queue

        public void queue()
        Deprecated.
        Specified by:
        queue in interface net.dv8tion.jda.api.requests.RestAction<T>
      • queue

        public void queue​(@Nullable
                          java.util.function.Consumer<? super T> success)
        Deprecated.
        Specified by:
        queue in interface net.dv8tion.jda.api.requests.RestAction<T>
      • queue

        public void queue​(@Nullable
                          java.util.function.Consumer<? super T> success,
                          @Nullable
                          java.util.function.Consumer<? super java.lang.Throwable> failure)
        Deprecated.
        Specified by:
        queue in interface net.dv8tion.jda.api.requests.RestAction<T>
      • complete

        public T complete()
        Deprecated.
        Specified by:
        complete in interface net.dv8tion.jda.api.requests.RestAction<T>
      • complete

        public T complete​(boolean shouldQueue)
                   throws net.dv8tion.jda.api.exceptions.RateLimitedException
        Deprecated.
        Specified by:
        complete in interface net.dv8tion.jda.api.requests.RestAction<T>
        Throws:
        net.dv8tion.jda.api.exceptions.RateLimitedException
      • submit

        @Nonnull
        public java.util.concurrent.CompletableFuture<T> submit()
        Deprecated.
        Specified by:
        submit in interface net.dv8tion.jda.api.requests.RestAction<T>
      • submit

        @Nonnull
        public java.util.concurrent.CompletableFuture<T> submit​(boolean shouldQueue)
        Deprecated.
        Specified by:
        submit in interface net.dv8tion.jda.api.requests.RestAction<T>
      • submitAfter

        @Nonnull
        public net.dv8tion.jda.api.utils.concurrent.DelayedCompletableFuture<T> submitAfter​(long delay,
                                                                                            @Nonnull
                                                                                            java.util.concurrent.TimeUnit unit)
        Deprecated.
        Specified by:
        submitAfter in interface net.dv8tion.jda.api.requests.RestAction<T>
      • submitAfter

        @Nonnull
        public net.dv8tion.jda.api.utils.concurrent.DelayedCompletableFuture<T> submitAfter​(long delay,
                                                                                            @Nonnull
                                                                                            java.util.concurrent.TimeUnit unit,
                                                                                            @Nullable
                                                                                            java.util.concurrent.ScheduledExecutorService executor)
        Deprecated.
        Specified by:
        submitAfter in interface net.dv8tion.jda.api.requests.RestAction<T>
      • completeAfter

        public T completeAfter​(long delay,
                               @Nonnull
                               java.util.concurrent.TimeUnit unit)
        Deprecated.
        Specified by:
        completeAfter in interface net.dv8tion.jda.api.requests.RestAction<T>
      • queueAfter

        @Nonnull
        public java.util.concurrent.ScheduledFuture<?> queueAfter​(long delay,
                                                                  @Nonnull
                                                                  java.util.concurrent.TimeUnit unit)
        Deprecated.
        Specified by:
        queueAfter in interface net.dv8tion.jda.api.requests.RestAction<T>
      • queueAfter

        @Nonnull
        public java.util.concurrent.ScheduledFuture<?> queueAfter​(long delay,
                                                                  @Nonnull
                                                                  java.util.concurrent.TimeUnit unit,
                                                                  @Nullable
                                                                  java.util.function.Consumer<? super T> success)
        Deprecated.
        Specified by:
        queueAfter in interface net.dv8tion.jda.api.requests.RestAction<T>
      • queueAfter

        @Nonnull
        public java.util.concurrent.ScheduledFuture<?> queueAfter​(long delay,
                                                                  @Nonnull
                                                                  java.util.concurrent.TimeUnit unit,
                                                                  @Nullable
                                                                  java.util.function.Consumer<? super T> success,
                                                                  @Nullable
                                                                  java.util.function.Consumer<? super java.lang.Throwable> failure)
        Deprecated.
        Specified by:
        queueAfter in interface net.dv8tion.jda.api.requests.RestAction<T>
      • queueAfter

        @Nonnull
        public java.util.concurrent.ScheduledFuture<?> queueAfter​(long delay,
                                                                  @Nonnull
                                                                  java.util.concurrent.TimeUnit unit,
                                                                  @Nullable
                                                                  java.util.concurrent.ScheduledExecutorService executor)
        Deprecated.
        Specified by:
        queueAfter in interface net.dv8tion.jda.api.requests.RestAction<T>
      • queueAfter

        @Nonnull
        public java.util.concurrent.ScheduledFuture<?> queueAfter​(long delay,
                                                                  @Nonnull
                                                                  java.util.concurrent.TimeUnit unit,
                                                                  @Nullable
                                                                  java.util.function.Consumer<? super T> success,
                                                                  @Nullable
                                                                  java.util.concurrent.ScheduledExecutorService executor)
        Deprecated.
        Specified by:
        queueAfter in interface net.dv8tion.jda.api.requests.RestAction<T>
      • queueAfter

        @Nonnull
        public java.util.concurrent.ScheduledFuture<?> queueAfter​(long delay,
                                                                  @Nonnull
                                                                  java.util.concurrent.TimeUnit unit,
                                                                  @Nullable
                                                                  java.util.function.Consumer<? super T> success,
                                                                  @Nullable
                                                                  java.util.function.Consumer<? super java.lang.Throwable> failure,
                                                                  @Nullable
                                                                  java.util.concurrent.ScheduledExecutorService executor)
        Deprecated.
        Specified by:
        queueAfter in interface net.dv8tion.jda.api.requests.RestAction<T>