Protocol Reference#

The protocol to implement to fit the needs of a Bucket

class cooldowns.protocols.bucket.CooldownBucketProtocol(*args, **kwargs)#

CooldownBucketProtocol implementation Protocol.

process(*args, **kwargs) Any#
Returns:

The values returned from this method will be used to represent a bucket.

Return type:

Any

class cooldowns.protocols.bucket.AsyncCooldownBucketProtocol(*args, **kwargs)#

AsyncCooldownBucketProtocol implementation Protocol.

async process(*args, **kwargs) Any#
Returns:

The values returned from this method will be used to represent a bucket.

Return type:

Any