Skip to content

Commit

Permalink
Socket mode example update
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolence committed Oct 24, 2023
1 parent 0b44ac6 commit 3c74562
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/socket_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ async fn test_command_events_function(
.users_info(&SlackApiUsersInfoRequest::new(event.user_id.clone()))
.await?;

println!("{:#?}", user_info_resp);

Ok(SlackCommandEventResponse::new(
SlackMessageContent::new()
.with_text(format!("Working on it: {:?}", user_info_resp.user.team_id).into())
.with_blocks(slack_blocks![
some_into(SlackSectionBlock::new().with_text(md!(
"Working section for {}. Team ID: {:?}",
event.user_id.to_slack_format(),
user_info_resp.user.teams
user_info_resp.user.team_id
))),
some_into(SlackActionsBlock::new(slack_blocks![
some_into(SlackBlockButtonElement::new(
Expand Down

0 comments on commit 3c74562

Please sign in to comment.