diff --git a/src/main/java/minevalley/core/api/discord/EmbeddedMessage.java b/src/main/java/minevalley/core/api/discord/EmbeddedMessage.java index da21c4d..ae6ec80 100644 --- a/src/main/java/minevalley/core/api/discord/EmbeddedMessage.java +++ b/src/main/java/minevalley/core/api/discord/EmbeddedMessage.java @@ -5,6 +5,7 @@ import javax.annotation.Nonnull; import java.awt.*; +@SuppressWarnings("unused") public interface EmbeddedMessage { /** diff --git a/src/main/java/minevalley/core/api/discord/Webhook.java b/src/main/java/minevalley/core/api/discord/Webhook.java index 9a58ba9..7698433 100644 --- a/src/main/java/minevalley/core/api/discord/Webhook.java +++ b/src/main/java/minevalley/core/api/discord/Webhook.java @@ -9,6 +9,7 @@ * This Webhook-builder is meant to help you to create discord-webhooks. * You can find helpful information here. */ +@SuppressWarnings("unused") public interface Webhook { /** @@ -20,7 +21,7 @@ public interface Webhook { */ @Nonnull @Contract("_ -> this") - Webhook setUsername(@Nonnull String username); + Webhook setUsername(@Nonnull String username) throws IllegalArgumentException; /** * Sets the avatar of the webhook.