Skip to content

Commit

Permalink
fix: Make user_id attribute on SlackBotInfo (#253)
Browse files Browse the repository at this point in the history
According to the [Slack documentation](https://api.slack.com/methods/bots.info), `user_id` is optional:

> If the bot corresponds directly to a bot user account, the bot will also have a `user_id`
  • Loading branch information
dax authored Mar 23, 2024
1 parent 8fcca12 commit 3fca16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/common/bot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub struct SlackBotInfo {
pub name: String,
pub updated: Option<SlackDateTime>,
pub app_id: String,
pub user_id: String,
pub user_id: Option<String>,
#[serde(flatten)]
pub icons: Option<SlackIconImages>,
}

0 comments on commit 3fca16d

Please sign in to comment.