cn.blankcat.dto.message.Message Maven / Gradle / Ivy
package cn.blankcat.dto.message;
import cn.blankcat.dto.member.Member;
import cn.blankcat.dto.member.User;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
// Message 消息结构体定义
public class Message {
// 消息ID
private String id;
// 子频道ID
@JsonProperty("channel_id")
private String channelId;
// 频道ID
@JsonProperty("guild_id")
private String guildId;
// 内容
private String content;
// 发送时间
private String timestamp;
// 消息编辑时间
@JsonProperty("edited_timestamp")
private String editedTimestamp;
// 是否@all
@JsonProperty("mention_everyone")
private String mentionEveryone;
// 消息发送方
private User author;
// 消息发送方Author的member属性,只是部分属性
private Member member;
// 附件
private MessageAttachment attachments;
// 结构化消息-embeds
private List