Type alias RatelimitInfos

RatelimitInfos: {
    endsAt: Date;
    endsIn: number;
    hasPenalty: boolean;
    hits: number;
    maxHits: number;
    penalty: number;
    timeWindow: number;
}

Type declaration

  • endsAt: Date

    The Date when the time Window (+ penalty) is over

    Since

    8.6.0

  • endsIn: number

    The Number of milliseconds until the time Window (+ penalty) is over

    Since

    8.6.0

  • hasPenalty: boolean

    Whether the client has recieved the penalty

    Since

    8.6.0

  • hits: number

    The Number of hits the client made in the current time window

    Since

    8.6.0

  • maxHits: number

    The Maximum number of hits the client is allowed to make in the specified time window

    Since

    8.6.0

  • penalty: number

    The Number of milliseconds penalty the client recieves

    Since

    8.6.0

  • timeWindow: number

    The Number of milliseconds a time window is long

    Since

    8.6.0