MCPcopy Create free account
hub / github.com/Botloader/botloader / get_script_by_id

Method get_script_by_id

components/stores/src/config.rs:269–285  ·  view source on GitHub ↗
(
        &self,
        guild_id: Id<GuildMarker>,
        script_id: u64,
    )

Source from the content-addressed store, hash-verified

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,

Callers 4

update_guild_scriptFunction · 0.80
validate_script_settingsFunction · 0.80
delete_guild_scriptFunction · 0.80
update_script_pluginFunction · 0.80

Calls 1

get_db_script_by_idMethod · 0.80

Tested by

no test coverage detected