From c9e6b2e681088687f5a714c3324d4d0731b8393e Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 16 Aug 2024 02:53:45 -0400 Subject: better unrecognized handling, more expressive react/unreact indicators --- src/commands/meme/invoke.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/commands/meme/invoke.rs') diff --git a/src/commands/meme/invoke.rs b/src/commands/meme/invoke.rs index 31b0085..1d9040d 100644 --- a/src/commands/meme/invoke.rs +++ b/src/commands/meme/invoke.rs @@ -60,14 +60,15 @@ pub async fn silent_meme(ctx: PoiseContext<'_>) -> anyhow::Result<()> { _meme(ctx, "", AudioPlayback::Prohibited).await } -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] -enum AudioPlayback { +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Default)] +pub(crate) enum AudioPlayback { Required, + #[default] Optional, Prohibited, } -async fn _meme( +pub(crate) async fn _meme( ctx: PoiseContext<'_>, args: impl AsRef, audio_playback: AudioPlayback, -- cgit v1.3.1