Skip to content

Commit 0db7958

Browse files
fix checkstyle
1 parent 39c29df commit 0db7958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/javadiscord/javabot/util/WebhookUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import club.minnced.discord.webhook.external.JDAWebhookClient;
55
import club.minnced.discord.webhook.send.AllowedMentions;
66
import club.minnced.discord.webhook.send.WebhookMessageBuilder;
7-
import club.minnced.discord.webhook.send.component.Button;
87
import club.minnced.discord.webhook.send.component.LayoutComponent;
98
import net.dv8tion.jda.api.entities.Message;
109
import net.dv8tion.jda.api.entities.Message.Attachment;
@@ -69,10 +68,11 @@ public static void ensureWebhookExists(@NotNull TextChannel channel, Consumer<?
6968
* @param newMessageContent the new (custom) content
7069
* @param threadId the thread to send the message in or {@code 0} if the
7170
* message should be sent directly
71+
* @param components An optional array of {@link LayoutComponent}s.
7272
* @return a {@link CompletableFuture} representing the action of sending
7373
* the message
7474
*/
75-
public static CompletableFuture<Void> mirrorMessageToWebhook(@NotNull Webhook webhook, @NotNull Message originalMessage, String newMessageContent, long threadId, LayoutComponent... components) {
75+
public static CompletableFuture<Void> mirrorMessageToWebhook(@NotNull Webhook webhook, @NotNull Message originalMessage, String newMessageContent, long threadId, LayoutComponent @NotNull ... components) {
7676
JDAWebhookClient client = new WebhookClientBuilder(webhook.getIdLong(), webhook.getToken())
7777
.setThreadId(threadId).buildJDA();
7878
WebhookMessageBuilder message = new WebhookMessageBuilder().setContent(newMessageContent)

0 commit comments

Comments
 (0)