Skip to content

Commit 30327db

Browse files
committed
remove unused method
1 parent d47e3cf commit 30327db

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

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

Lines changed: 1 addition & 11 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.receive.ReadonlyMessage;
66
import club.minnced.discord.webhook.send.AllowedMentions;
7-
import club.minnced.discord.webhook.send.WebhookEmbed.EmbedField;
87
import club.minnced.discord.webhook.send.WebhookEmbedBuilder;
98
import club.minnced.discord.webhook.send.WebhookMessageBuilder;
109
import club.minnced.discord.webhook.send.component.LayoutComponent;
@@ -124,16 +123,7 @@ private static <T, R> R transformOrNull(T toTransform, Function<T, R> transforme
124123
return toTransform == null ? null : transformer.apply(toTransform);
125124
}
126125

127-
private static List<EmbedField> transformFields(MessageEmbed embed) {
128-
return embed
129-
.getFields()
130-
.stream()
131-
.map(field -> new EmbedField(field.isInline(), field.getName(), field.getValue()))
132-
.toList();
133-
}
134-
135-
private static @NotNull CompletableFuture<ReadonlyMessage> sendMessage(JDAWebhookClient client,
136-
WebhookMessageBuilder message) {
126+
private static @NotNull CompletableFuture<ReadonlyMessage> sendMessage(JDAWebhookClient client, WebhookMessageBuilder message) {
137127
if(message.isEmpty()) {
138128
message.setContent("<empty message>");
139129
}

0 commit comments

Comments
 (0)