Package dev.mlnr.blh.jda
Class BLHJDAUpdater
- java.lang.Object
-
- dev.mlnr.blh.jda.BLHJDAUpdater
-
- All Implemented Interfaces:
dev.mlnr.blh.core.api.IBLHUpdater
public class BLHJDAUpdater extends java.lang.Object implements dev.mlnr.blh.core.api.IBLHUpdaterAn updater class for JDA used for automatic stats posting.
-
-
Constructor Summary
Constructors Constructor Description BLHJDAUpdater(net.dv8tion.jda.api.JDA jda)Creates a new updater for JDA.BLHJDAUpdater(net.dv8tion.jda.api.sharding.ShardManager shardManager)Creates a new updater for JDA.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBotId()longgetServerCount()
-
-
-
Constructor Detail
-
BLHJDAUpdater
public BLHJDAUpdater(@Nonnull net.dv8tion.jda.api.JDA jda)Creates a new updater for JDA.- Parameters:
jda- The JDA object to get the bot id and the guild amount from- Throws:
java.lang.IllegalArgumentException- If the provided JDA object isnull
-
BLHJDAUpdater
public BLHJDAUpdater(@Nonnull net.dv8tion.jda.api.sharding.ShardManager shardManager)Creates a new updater for JDA.- Parameters:
shardManager- The ShardManager object to get the bot id and the guild amount from- Throws:
java.lang.IllegalArgumentException- If the provided ShardManager object isnulljava.lang.IllegalStateException- If the shard 0 of the ShardManager is null
-
-