(
&self,
(channel_id_raw, user_id_raw): (String, String),
)
| 860 | } |
| 861 | |
| 862 | async fn discord_add_thread_member( |
| 863 | &self, |
| 864 | (channel_id_raw, user_id_raw): (String, String), |
| 865 | ) -> Result<(), anyhow::Error> { |
| 866 | let rt_ctx = get_rt_ctx(&self.state); |
| 867 | |
| 868 | let channel = parse_get_guild_channel(&self.state, &rt_ctx, &channel_id_raw).await?; |
| 869 | let user_id: Id<UserMarker> = parse_discord_id(&user_id_raw)?; |
| 870 | |
| 871 | discord_request(&self.state, async move { |
| 872 | rt_ctx |
| 873 | .discord_config |
| 874 | .client |
| 875 | .add_thread_member(channel.id, user_id) |
| 876 | .await |
| 877 | }) |
| 878 | .await?; |
| 879 | |
| 880 | Ok(()) |
| 881 | } |
| 882 | |
| 883 | async fn discord_remove_thread_member( |
| 884 | &self, |
nothing calls this directly
no test coverage detected