Skip to content

Commit

Permalink
Bump version (3.0.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
srnyx committed Apr 2, 2024
1 parent 2c17dc9 commit fde636c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ subprojects {
apply(plugin = "xyz.srnyx.gradle-galaxy")
apply(plugin = "com.github.johnrengelman.shadow")

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.freya02.botcommands.api.application.ApplicationCommand;
import com.freya02.botcommands.api.application.CommandScope;
import com.freya02.botcommands.api.application.slash.GlobalSlashEvent;
import com.freya02.botcommands.api.application.slash.GuildSlashEvent;
import com.freya02.botcommands.api.application.slash.annotations.JDASlashCommand;

import net.dv8tion.jda.api.JDA;
Expand All @@ -32,7 +31,9 @@ public class ServersCmd extends ApplicationCommand {
/**
* A constructor is not necessary
*/
public ServersCmd() {}
public ServersCmd() {
// Only exists to provide a Javadoc
}

/**
* A command that lists all servers the bot is in
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/xyz/srnyx/lazylibrary/LazyEmbed.java
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ public LazyEmbed setTitle(@Nullable String text, @Nullable String url) {
*/
@NotNull
public LazyEmbed setDescription(@Nullable String description) {
if (description != null && description.length() == 0) description = null;
if (description != null && description.isEmpty()) description = null;
builder.setDescription(description);
this.description = description;
return this;
Expand Down

0 comments on commit fde636c

Please sign in to comment.