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

Method get_script

components/vm/src/lib.rs:160–162  ·  view source on GitHub ↗
(&self, script_id: u64)

Source from the content-addressed store, hash-verified

158 }
159
160 pub fn get_script(&self, script_id: u64) -> Option<&ScriptState> {
161 self.scripts.iter().find(|v| v.script.id == script_id)
162 }
163
164 pub fn get_script_mut(&mut self, script_id: u64) -> Option<&mut ScriptState> {
165 self.scripts.iter_mut().find(|v| v.script.id == script_id)

Callers 2

create_guild_scriptFunction · 0.45
run_scriptMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected