Skip to content

Commit

Permalink
Add missing properties in app_mention event payload
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Jul 10, 2024
1 parent 56dab57 commit daf16fd
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.slack.api.model.event;

import com.google.gson.annotations.SerializedName;
import com.slack.api.model.Attachment;
import com.slack.api.model.BotProfile;
import com.slack.api.model.File;
Expand Down Expand Up @@ -47,14 +48,35 @@ public class AppMentionEvent implements Event {
private Boolean displayAsBot;
private String ts;
private String team;
private String channel;

// user_team, source_team, and user_profile
// can exist when the user who mentioned this bot is in a different workspace/org
private String userTeam;
private String sourceTeam;
private String channel;
private UserProfile userProfile;

private Edited edited;
private String eventTs;

private String threadTs;

@Data
public static class UserProfile {
private String name;
private String firstName;
private String realName;
private String displayName;
private String team;
@SerializedName("is_restricted")
private boolean restricted;
@SerializedName("is_ultra_restricted")
private boolean ultraRestricted;
private String avatarHash;
@SerializedName("image_72")
private String image72;
}

@Data
public static class Edited {
private String user;
Expand Down

0 comments on commit daf16fd

Please sign in to comment.