Skip to content

Commit fde636c

Browse files
committed
Bump version (3.0.1)
1 parent 2c17dc9 commit fde636c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ subprojects {
1616
apply(plugin = "xyz.srnyx.gradle-galaxy")
1717
apply(plugin = "com.github.johnrengelman.shadow")
1818

19-
setupJava("xyz.srnyx", "3.0.0", "A simple library for JDA Discord bots", JavaVersion.VERSION_19)
19+
setupJava("xyz.srnyx", "3.0.1", "A simple library for JDA Discord bots", JavaVersion.VERSION_19)
2020
addCompilerArgs("-parameters")
2121
repository(Repository.MAVEN_CENTRAL, Repository.JITPACK)
2222

example-bot/src/main/java/xyz/srnyx/lazyexample/commands/ServersCmd.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import com.freya02.botcommands.api.application.ApplicationCommand;
66
import com.freya02.botcommands.api.application.CommandScope;
77
import com.freya02.botcommands.api.application.slash.GlobalSlashEvent;
8-
import com.freya02.botcommands.api.application.slash.GuildSlashEvent;
98
import com.freya02.botcommands.api.application.slash.annotations.JDASlashCommand;
109

1110
import net.dv8tion.jda.api.JDA;
@@ -32,7 +31,9 @@ public class ServersCmd extends ApplicationCommand {
3231
/**
3332
* A constructor is not necessary
3433
*/
35-
public ServersCmd() {}
34+
public ServersCmd() {
35+
// Only exists to provide a Javadoc
36+
}
3637

3738
/**
3839
* A command that lists all servers the bot is in

library/src/main/java/xyz/srnyx/lazylibrary/LazyEmbed.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ public LazyEmbed setTitle(@Nullable String text, @Nullable String url) {
546546
*/
547547
@NotNull
548548
public LazyEmbed setDescription(@Nullable String description) {
549-
if (description != null && description.length() == 0) description = null;
549+
if (description != null && description.isEmpty()) description = null;
550550
builder.setDescription(description);
551551
this.description = description;
552552
return this;

0 commit comments

Comments
 (0)