Package com.mrivanplays.jdcf.util
Class CommandDispatcherARS<T>
- java.lang.Object
-
- com.mrivanplays.jdcf.util.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.
-
-
-
Method Detail
-
reason
@Nonnull public net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T> reason(@Nullable java.lang.String reason)
Deprecated.- Specified by:
reason
in interfacenet.dv8tion.jda.api.requests.restaction.AuditableRestAction<T>
-
getJDA
@Nonnull public net.dv8tion.jda.api.JDA getJDA()
Deprecated.- Specified by:
getJDA
in interfacenet.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.
-
timeout
@Nonnull public net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T> timeout(long timeout, @Nonnull java.util.concurrent.TimeUnit unit)
Deprecated.
-
deadline
@Nonnull public net.dv8tion.jda.api.requests.restaction.AuditableRestAction<T> deadline(long timestamp)
Deprecated.
-
queue
public void queue()
Deprecated.- Specified by:
queue
in interfacenet.dv8tion.jda.api.requests.RestAction<T>
-
queue
public void queue(@Nullable java.util.function.Consumer<? super T> success)
Deprecated.- Specified by:
queue
in interfacenet.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 interfacenet.dv8tion.jda.api.requests.RestAction<T>
-
complete
public T complete()
Deprecated.- Specified by:
complete
in interfacenet.dv8tion.jda.api.requests.RestAction<T>
-
complete
public T complete(boolean shouldQueue) throws net.dv8tion.jda.api.exceptions.RateLimitedException
Deprecated.- Specified by:
complete
in interfacenet.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 interfacenet.dv8tion.jda.api.requests.RestAction<T>
-
submit
@Nonnull public java.util.concurrent.CompletableFuture<T> submit(boolean shouldQueue)
Deprecated.- Specified by:
submit
in interfacenet.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 interfacenet.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 interfacenet.dv8tion.jda.api.requests.RestAction<T>
-
completeAfter
public T completeAfter(long delay, @Nonnull java.util.concurrent.TimeUnit unit)
Deprecated.- Specified by:
completeAfter
in interfacenet.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 interfacenet.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 interfacenet.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 interfacenet.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 interfacenet.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 interfacenet.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 interfacenet.dv8tion.jda.api.requests.RestAction<T>
-
-