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

Method process_item

components/scheduler/src/command_manager.rs:159–165  ·  view source on GitHub ↗
(&mut self, item: &PendingCheckGroup)

Source from the content-addressed store, hash-verified

157 }
158
159 async fn process_item(&mut self, item: &PendingCheckGroup) -> Result<(), ()> {
160 // TODO: only do this when they have actually changed
161 // this will be more important when we need to scale it
162 // but needs to be done before before we go beyond the 100 server mark
163 self.update_guild_commands(item.guild_id).await?;
164 Ok(())
165 }
166
167 async fn update_guild_commands(&mut self, guild_id: Id<GuildMarker>) -> Result<(), ()> {
168 let script_commands = self

Callers 1

handle_tickMethod · 0.80

Calls 1

update_guild_commandsMethod · 0.80

Tested by

no test coverage detected