• Randomly produces an error. Error chance is dictated by 'chancePercentage' parameter.

    Parameters

    • chancePercentage: number

      chance in percentage for error to happen. 0 - error will not happen, 100 or higher - error will happen 100%

    Returns OnMessageMiddleware<unknown>

Generated using TypeDoc