Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Botloader/botloader
/ should_suspend_guild
Method
should_suspend_guild
components/runtime/src/extensions/discord.rs:170–176 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
168
}
169
170
fn should_suspend_guild(&self) -> bool {
171
if self.recent_bad_requests.len() < 29 {
172
return false;
173
}
174
175
self.recent_bad_requests[0].elapsed() < Duration::from_secs(60)
176
}
177
}
178
179
#[pin_project]
Callers
1
check_bad_request
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected