Add more counters

This commit is contained in:
claude Bot committed 2023-10-22 09:55:36 +01:00
1 parent 605bc37db6
commit 48b50f783d
3 files changed
+16 -4

No files matched your search

+3 -3
View File
@@ -25,13 +25,13 @@ pub async fn play(
#[channel_types("Voice")]
channel: Option<GuildChannel>,
) -> Result<(), Error> {
#[cfg(feature = "metrics")]
PLAY_COUNTER.inc();
ctx.defer().await?;
let guild = ctx.guild().unwrap();
#[cfg(feature = "metrics")]
PLAY_COUNTER.inc();
ctx.say(
play_from_query(
&ctx.serenity_context(),