Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create undocumented message bot events #1424

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package com.slack.api.model.event;

import lombok.Data;

/**
* https://api.slack.com/events/message/bot_add
* (undocumented)
*/
@Data
public class MessageBotAddEvent implements Event {

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

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

private String botId;
private String user;

private String channel;

private String text;
private String botLink;

private String ts;

private String eventTs;
private String channelType;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package com.slack.api.model.event;

import lombok.Data;

/**
* https://api.slack.com/events/message/bot_remove
* (undocumented)
*/
@Data
public class MessageBotRemoveEvent implements Event {

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

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

private String botId;
private String user;

private String channel;

private String text;
private String botLink;

private String ts;

private String eventTs;
private String channelType;
}