Add a MessageResponse class for mixed-type content
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-12-20 23:03:07 +01:00
parent 0bd63e76bd
commit 58c4412f75
3 changed files with 84 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
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;
}
@Nullable
public String getContent()
{
return content;
}
@Nullable
public MessageEmbed getEmbed()
{
return embed;
}
}