mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat(bot): add support for Discord message context commands (#513)
This commit is contained in:
parent
13c055dc0f
commit
83af1f04a7
23 changed files with 515 additions and 30 deletions
|
|
@ -53,6 +53,23 @@ public static class BotMetrics
|
|||
Context = "Bot"
|
||||
};
|
||||
|
||||
public static MeterOptions ApplicationCommandsRun => new()
|
||||
{
|
||||
Name = "Application commands run",
|
||||
MeasurementUnit = Unit.Commands,
|
||||
RateUnit = TimeUnit.Seconds,
|
||||
Context = "Bot"
|
||||
};
|
||||
|
||||
public static TimerOptions ApplicationCommandTime => new()
|
||||
{
|
||||
Name = "Application command run time",
|
||||
MeasurementUnit = Unit.Commands,
|
||||
RateUnit = TimeUnit.Seconds,
|
||||
DurationUnit = TimeUnit.Seconds,
|
||||
Context = "Bot"
|
||||
};
|
||||
|
||||
public static MeterOptions WebhookCacheMisses => new()
|
||||
{
|
||||
Name = "Webhook cache misses",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue