Table of Contents

Method RespondRatelimitHitAsync

Namespace
DisCatSharp.CommandsNext.Attributes
Assembly
DisCatSharp.CommandsNext.dll

RespondRatelimitHitAsync(CommandContext, bool, CooldownBucket)

Responds to a ratelimit hit.

public Task<bool> RespondRatelimitHitAsync(CommandContext ctx, bool noHit, CooldownBucket bucket)

Parameters

ctx CommandContext

The command context.

noHit bool

Whether the ratelimit wasn't hit.

bucket CooldownBucket

The cooldown bucket.

Returns

Task<bool>