Table of Contents

Method RespondRatelimitHitAsync

Namespace
DisCatSharp.ApplicationCommands.Attributes
Assembly
DisCatSharp.ApplicationCommands.dll

RespondRatelimitHitAsync(BaseContext, bool, CooldownBucket)

Responds to a ratelimit hit.

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

Parameters

ctx BaseContext

The command context.

noHit bool

Whether the ratelimit wasn't hit.

bucket CooldownBucket

The cooldown bucket.

Returns

Task<bool>