moo.sdk.moderation.suspend
- moo.sdk.moderation.suspend(account, duration=None, hours=None, reason='')
Suspend an account, blocking login until the deadline elapses.
- Parameters:
account – the Player account to suspend
duration – a
datetime.timedelta, orNonefor open-endedhours – convenience for verb authors (who cannot import
datetimein the sandbox); converted to aduration. Ignored ifdurationis given.reason – optional free-text reason (recorded in the audit log)
- Raises:
PermissionError – if the caller is not staff
UserError – if the target is missing or is a staff account