v0.1.2 - Updated CacheFlags
This commit is contained in:
13
pom.xml
13
pom.xml
@@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.bensherriff</groupId>
|
<groupId>com.bensherriff</groupId>
|
||||||
<artifactId>siren</artifactId>
|
<artifactId>siren</artifactId>
|
||||||
<version>0.1.1</version>
|
<version>0.1.2</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
@@ -43,6 +43,13 @@
|
|||||||
<url>https://repo.local.bensherriff.com/artifactory/libs-snapshot</url>
|
<url>https://repo.local.bensherriff.com/artifactory/libs-snapshot</url>
|
||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>central</id>
|
||||||
|
<name>ffc58a58b429-releases</name>
|
||||||
|
<url>http://repo.local.bensherriff.com/artifactory/libs-release</url>
|
||||||
|
</repository>
|
||||||
|
</distributionManagement>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<jda.version>4.4.0_350</jda.version>
|
<jda.version>4.4.0_350</jda.version>
|
||||||
@@ -120,8 +127,8 @@
|
|||||||
<goal>shade</goal>
|
<goal>shade</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<shadedArtifactAttached>true</shadedArtifactAttached>
|
<!-- <shadedArtifactAttached>true</shadedArtifactAttached>-->
|
||||||
<shadedClassifierName>All</shadedClassifierName>
|
<!-- <shadedClassifierName>All</shadedClassifierName>-->
|
||||||
<artifactSet>
|
<artifactSet>
|
||||||
<includes>
|
<includes>
|
||||||
<include>*:*</include>
|
<include>*:*</include>
|
||||||
|
|||||||
@@ -33,6 +33,12 @@ public class MusicBot extends ListenerAdapter {
|
|||||||
GatewayIntent.DIRECT_MESSAGES, GatewayIntent.GUILD_MESSAGES, GatewayIntent.GUILD_MESSAGE_REACTIONS,
|
GatewayIntent.DIRECT_MESSAGES, GatewayIntent.GUILD_MESSAGES, GatewayIntent.GUILD_MESSAGE_REACTIONS,
|
||||||
GatewayIntent.GUILD_VOICE_STATES
|
GatewayIntent.GUILD_VOICE_STATES
|
||||||
};
|
};
|
||||||
|
private final static CacheFlag[] ENABLED_FLAGS = {
|
||||||
|
CacheFlag.MEMBER_OVERRIDES, CacheFlag.VOICE_STATE
|
||||||
|
};
|
||||||
|
private final static CacheFlag[] DISABLED_FLAGS = {
|
||||||
|
CacheFlag.ACTIVITY, CacheFlag.CLIENT_STATUS, CacheFlag.EMOTE, CacheFlag.ONLINE_STATUS
|
||||||
|
};
|
||||||
private final PlayerManager playerManager;
|
private final PlayerManager playerManager;
|
||||||
private final Map<Long, AudioHandler> musicManagers;
|
private final Map<Long, AudioHandler> musicManagers;
|
||||||
private final Settings settings;
|
private final Settings settings;
|
||||||
@@ -49,8 +55,8 @@ public class MusicBot extends ListenerAdapter {
|
|||||||
MusicBot musicBot = new MusicBot(settings);
|
MusicBot musicBot = new MusicBot(settings);
|
||||||
|
|
||||||
JDA jda = JDABuilder.create(settings.getToken(), Arrays.asList(INTENTS))
|
JDA jda = JDABuilder.create(settings.getToken(), Arrays.asList(INTENTS))
|
||||||
.enableCache(CacheFlag.MEMBER_OVERRIDES, CacheFlag.VOICE_STATE)
|
.enableCache(Arrays.asList(ENABLED_FLAGS))
|
||||||
.disableCache(CacheFlag.ACTIVITY, CacheFlag.CLIENT_STATUS, CacheFlag.EMOTE)
|
.disableCache(Arrays.asList(DISABLED_FLAGS))
|
||||||
.addEventListeners(musicBot)
|
.addEventListeners(musicBot)
|
||||||
.setBulkDeleteSplittingEnabled(true)
|
.setBulkDeleteSplittingEnabled(true)
|
||||||
.build();
|
.build();
|
||||||
|
|||||||
Reference in New Issue
Block a user