(
&self,
guild_id: Id<GuildMarker>,
script_id: u64,
)
| 267 | } |
| 268 | |
| 269 | pub async fn get_script_by_id( |
| 270 | &self, |
| 271 | guild_id: Id<GuildMarker>, |
| 272 | script_id: u64, |
| 273 | ) -> ConfigStoreResult<Script> { |
| 274 | let mut script: Script = self |
| 275 | .get_db_script_by_id(guild_id, script_id as i64) |
| 276 | .await? |
| 277 | .into(); |
| 278 | Self::attach_script_derived( |
| 279 | &mut *self.pool.acquire().await?, |
| 280 | guild_id, |
| 281 | std::slice::from_mut(&mut script), |
| 282 | ) |
| 283 | .await?; |
| 284 | Ok(script) |
| 285 | } |
| 286 | |
| 287 | pub async fn create_script( |
| 288 | &self, |
no test coverage detected