From 3fca16d346ad9c6ab2b8465be28cc03237e2b663 Mon Sep 17 00:00:00 2001 From: David Rousselie Date: Sat, 23 Mar 2024 23:33:25 +0100 Subject: [PATCH] fix: Make `user_id` attribute on `SlackBotInfo` (#253) 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` --- src/models/common/bot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/common/bot.rs b/src/models/common/bot.rs index f7f54f05..2a110846 100644 --- a/src/models/common/bot.rs +++ b/src/models/common/bot.rs @@ -11,7 +11,7 @@ pub struct SlackBotInfo { pub name: String, pub updated: Option, pub app_id: String, - pub user_id: String, + pub user_id: Option, #[serde(flatten)] pub icons: Option, }