DiscordPHP Documentation

CooldownManager
in package

Table of Contents

Properties

$cooldowns  : array<string, int>

Methods

enforce()  : string|null
Enforce and update cooldowns for a message author.

Properties

Methods

enforce()

Enforce and update cooldowns for a message author.

public enforce(Message $message, int $currentTime, int $cooldownMs, string $cooldownMessage) : string|null
Parameters
$message : Message
$currentTime : int
$cooldownMs : int
$cooldownMessage : string
Return values
string|null
On this page

Search results