Add a MessageResponse class for mixed-type content

This commit is contained in:
2022-12-20 23:03:07 +01:00
parent 161c91b45d
commit bc0463dd38
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;
}
}