Remove unnecessary setSuppressEmbeds

This commit is contained in:
Vankka 2023-10-24 18:25:47 +03:00
parent 65d1241dd9
commit 639507e9db
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -97,9 +97,7 @@ public abstract class AbstractDiscordGuildMessageChannel<T extends GuildMessageC
.setAvatarUrl(message.getWebhookAvatarUrl())
);
} else {
MessageCreateAction action = channel.sendMessage(createData)
// JDA doesn't properly grab this from MessageCreateData
.setSuppressEmbeds(createData.isSuppressEmbeds());
MessageCreateAction action = channel.sendMessage(createData);
Long referencedMessageId = message.getMessageIdToReplyTo();
if (referencedMessageId != null) {