diff --git a/discord/jda/slash/src/main/java/dev/triumphteam/cmd/jda/sender/SlashSender.java b/discord/jda/slash/src/main/java/dev/triumphteam/cmd/jda/sender/SlashSender.java index cff68ecc..b881e76e 100644 --- a/discord/jda/slash/src/main/java/dev/triumphteam/cmd/jda/sender/SlashSender.java +++ b/discord/jda/slash/src/main/java/dev/triumphteam/cmd/jda/sender/SlashSender.java @@ -30,6 +30,7 @@ import net.dv8tion.jda.api.entities.channel.unions.MessageChannelUnion; import net.dv8tion.jda.api.requests.restaction.interactions.ReplyCallbackAction; import net.dv8tion.jda.api.utils.messages.MessageCreateData; +import org.jetbrains.annotations.CheckReturnValue; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -74,6 +75,7 @@ public interface SlashSender { * @param message The message to reply with. * @return The reply action. */ + @CheckReturnValue @NotNull ReplyCallbackAction reply(final @NotNull String message); /** @@ -82,6 +84,7 @@ public interface SlashSender { * @param message The message to reply with. * @return The reply action. */ + @CheckReturnValue @NotNull ReplyCallbackAction reply(final @NotNull MessageCreateData message); /** @@ -91,6 +94,7 @@ public interface SlashSender { * @param embeds The additional embeds. * @return The reply action. */ + @CheckReturnValue @NotNull ReplyCallbackAction reply(final @NotNull MessageEmbed embed, final @NotNull MessageEmbed @NotNull ... embeds); /** @@ -99,6 +103,7 @@ public interface SlashSender { * @param embeds The embeds to reply with. * @return The reply action. */ + @CheckReturnValue @NotNull ReplyCallbackAction reply(final @NotNull Collection embeds); /** @@ -106,6 +111,7 @@ public interface SlashSender { * * @return The reply action. */ + @CheckReturnValue @NotNull ReplyCallbackAction deferReply(); /** @@ -114,5 +120,6 @@ public interface SlashSender { * @param ephemeral Whether the message should be ephemeral. * @return The reply action. */ + @CheckReturnValue @NotNull ReplyCallbackAction deferReply(final boolean ephemeral); } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 60d22828..91cd5bee 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -7,7 +7,7 @@ license = "0.16.1" # Core guava = "31.1-jre" -annotations = "23.0.0" +annotations = "24.1.0" # Testing junit = "5.9.1"