All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.seratch.jslack.api.model.event.MessageDeletedEvent Maven / Gradle / Ivy

The newest version!
package com.github.seratch.jslack.api.model.event;

import com.github.seratch.jslack.api.model.Attachment;
import com.github.seratch.jslack.api.model.Reaction;
import com.github.seratch.jslack.api.model.block.LayoutBlock;
import com.google.gson.annotations.SerializedName;
import lombok.Data;

import java.util.List;

/**
 * https://api.slack.com/events/message/message_deleted
 */
@Data
public class MessageDeletedEvent implements Event {

    public static final String TYPE_NAME = "message";
    public static final String SUBTYPE_NAME = "message_deleted";

    private final String type = TYPE_NAME;
    private final String subtype = SUBTYPE_NAME;
    private String channel;

    private boolean hidden;
    private String deletedTs;

    private Message previousMessage;

    private String eventTs;
    private String ts;
    private String channelType; // app_home, channel, group, im, mpim

    @Data
    public static class Message {
        private String clientMsgId;

        private final String type = TYPE_NAME;
        private String subtype;
        private String user;
        private String team;

        private MessageEvent.Edited edited;

        private String text;
        private List blocks;
        private List attachments;

        @SerializedName("is_starred")
        private boolean starred;
        private List pinnedTo;
        private List reactions;

        private String ts;
    }

    @Data
    public static class Edited {
        private String user;
        private String ts;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy