Closed KaizerZen closed 6 years ago
We have been discussing ways to implement a light datasystem for doing such a thing.
However, at this moment in time implementation is not scheduled.
Okay.
Anyway there's a function on CCB I can use to set a custom implementantion of MessageReceivedEvent to detect a Guild custom prefix?
There's not but you could either fork the repo and add it, or make a class that extends CommandClientImpl and use that
Fine.
Just to update this guild specific configurations and data management will be a supported feature in 2.0
You can see these changes in the version-major/2.0
, and even check out the branch using the following build-scripts:
Gradle
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'com.github.JDA-Applications:JDA-Utilities:version-major~2.0-SNAPSHOT'
}
Maven
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.JDA-Applications</groupId>
<artifactId>JDA-Utilities</artifactId>
<version>version-major~2.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
As a final note, this gist shows a detailed compilation of all the changes in 2.0, and I highly recommend you read it, as there are breaking changes that occur.
Addressed in #51
So... My users recently asked for a way to change the default bot's prefix per guild, and since commands are managed by JDA-Utils it should have a way of setting a custom guild prefix.