Skip to content

Commit 744b02b

Browse files
authored
Updated plugin to JDA 4 (#1)
Update SuggestCommand.java
2 parents f3d72af + 2cd9e44 commit 744b02b

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ plugins {
66
apply plugin: 'java'
77

88
group 'com.avairebot'
9-
version '1.2'
9+
version '1.3'
1010
description 'A simple plugin for AvaIre that adds suggestion features'
1111

1212
sourceCompatibility = 1.8
1313
targetCompatibility = 1.8
1414

1515
repositories {
16-
teamcityServer{
16+
teamcityServer {
1717
url = 'http://ci.avairebot.com'
1818
}
1919
}
@@ -22,6 +22,6 @@ dependencies {
2222
// This is nice for local development if you want to use a custom build of Ava.
2323
// compileOnly files('./AvaIre.jar')
2424

25-
// Version 0.9.165
26-
compileOnly tc(buildTypeId: 'Avaire_Build', version: '1', artifactPath: 'AvaIre.jar')
25+
// Version 0.10.15
26+
compileOnly tc(buildTypeId: 'Avaire_Build', version: '60', artifactPath: 'AvaIre.jar')
2727
}

src/main/java/com/avairebot/plugin/utility/SuggestCommand.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
import com.avairebot.contracts.commands.Command;
55
import com.avairebot.contracts.commands.CommandSource;
66
import com.avairebot.plugin.Suggestion;
7-
import net.dv8tion.jda.core.EmbedBuilder;
8-
import net.dv8tion.jda.core.entities.Emote;
9-
import net.dv8tion.jda.core.entities.Message;
10-
import net.dv8tion.jda.core.entities.TextChannel;
7+
import net.dv8tion.jda.api.EmbedBuilder;
8+
import net.dv8tion.jda.api.entities.Emote;
9+
import net.dv8tion.jda.api.entities.Message;
10+
import net.dv8tion.jda.api.entities.TextChannel;
1111

1212
import java.time.Instant;
1313
import java.util.Arrays;

src/main/resources/plugin.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 'Suggestions'
22
main: 'com.avairebot.plugin.Suggestion'
3-
version: '1.2'
3+
version: '1.3'
44
author: 'Alexis Tan <Senither#0001>'
55
description: 'Suggestion is a simple plugin that adds a `!suggest` command that sends suggestions users make to a custom channel, all of this is done easily through the config.yml file that is generated by the plugin, you can seen an example of the file [here](https://github.com/avaire/suggestion-plugin/blob/master/src/main/resources/config.yml).'
6-
requires: '0.6.32'
6+
requires: '0.10.15'

0 commit comments

Comments
 (0)