diff --git a/src/main/java/wtf/beatrice/hidekobot/objects/MessageResponse.java b/src/main/java/wtf/beatrice/hidekobot/objects/MessageResponse.java index 9188cd9..4a590c1 100644 --- a/src/main/java/wtf/beatrice/hidekobot/objects/MessageResponse.java +++ b/src/main/java/wtf/beatrice/hidekobot/objects/MessageResponse.java @@ -3,26 +3,15 @@ package wtf.beatrice.hidekobot.objects; import net.dv8tion.jda.api.entities.MessageEmbed; import org.jetbrains.annotations.Nullable; -public class MessageResponse -{ - private final String content; - private final MessageEmbed embed; - - public MessageResponse(String content, MessageEmbed embed) - { - this.content = content; - this.embed = embed; - } +public record MessageResponse(String content, MessageEmbed embed) { @Nullable - public String getContent() - { + public String getContent() { return content; } @Nullable - public MessageEmbed getEmbed() - { + public MessageEmbed getEmbed() { return embed; } }