moo.sdk.ratelimit.broadcast_allowed
- moo.sdk.ratelimit.broadcast_allowed(account_id)
Charge one broadcast line to
account_idand report whether it is allowed.Returns
True(and does not charge) when the limit is disabled or no account is known. Otherwise increments the account’s fixed-window counter and returnsFalseonce the budget is exceeded.- Parameters:
account_id – the initiating Player account id
- Return type:
bool- Returns:
True if the line may be sent, False if the account is over budget