(&self)
| 372 | |
| 373 | impl SuspensionReason { |
| 374 | fn duration(&self) -> Duration { |
| 375 | match self { |
| 376 | Self::ExcessCpu => Duration::from_secs(15), |
| 377 | Self::ExcessInvalidDiscordRequests => Duration::from_secs(60 * 10), |
| 378 | } |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | struct GuildSuspension { |