Add unit tests

This commit is contained in:
claude Bot committed 2024-02-24 15:02:34 +00:00
1 parent dd7e681285
commit 53e13844f9
6 files changed
+177

No files matched your search

+1
View File
@@ -5,6 +5,7 @@ use crate::{Context, Error};
/// Configure whether other users can set reminders to your direct messages
#[poise::command(slash_command, rename = "dm")]
#[cfg(not(test))]
pub async fn allowed_dm(_ctx: Context<'_>) -> Result<(), Error> {
Ok(())
}
+1
View File
@@ -33,6 +33,7 @@ impl Recordable for Options {
/// Allow other users to set reminders in your direct messages
#[poise::command(slash_command, rename = "allow", identifying_name = "set_allowed_dm")]
#[cfg(not(test))]
pub async fn set(ctx: Context<'_>) -> Result<(), Error> {
(Options {}).run(ctx).await
}