ModerationAction.timeout constructor

ModerationAction.timeout(
  1. Duration duration
)

Implementation

factory ModerationAction.timeout (Duration duration) {
  return ModerationAction(
    ModerationActionType.timeout,
    ModerationActionMetadata(null, duration.inMilliseconds)
  );
}