Class JDAContext
java.lang.Object
com.github.kaktushose.jda.commands.JDAContext
Wrapper class for
JDA
and ShardManager
. Use performTask(Consumer)
when you need to do work with an JDA
object.-
Method Summary
Modifier and TypeMethodDescription@NotNull SnowflakeCacheView
<Guild> SnowflakeCacheView
of all cachedGuild
s.void
performTask
(@NotNull Consumer<JDA> consumer) Performs an operation on either theJDA
object or on all shards.
-
Method Details
-
performTask
-
getGuildCache
SnowflakeCacheView
of all cachedGuild
s.- Returns:
SnowflakeCacheView
-