Skip to content

Commit b56f585

Browse files
committed
Improve command descriptions a bit
1 parent e9cd6c8 commit b56f585

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/commands/banner.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pub async fn start(
2828
#[rename = "channel"]
2929
channel_id: GenericChannelId,
3030
#[description = "After how many minutes the image should change. Default is 30, minimum 15."]
31+
#[min = 15]
3132
interval: Option<u64>,
3233
#[description = "When to start the schedule. Default is instantly."] start_at: Option<DateTime<Utc>>,
3334
#[description = "How many messages to look back for images."]
@@ -55,6 +56,7 @@ pub async fn start_for_guild(
5556
#[rename = "channel"]
5657
channel_id: GenericChannelId,
5758
#[description = "After how many minutes the image should change. Default is 30, minimum 15."]
59+
#[min = 15]
5860
interval: Option<u64>,
5961
#[description = "When to start the schedule. Default is instantly."] start_at: Option<DateTime<Utc>>,
6062
#[description = "How many messages to look back for images."]
@@ -70,7 +72,7 @@ pub async fn start_for_guild(
7072
start_banner(ctx, options).await
7173
}
7274

73-
/// Stops picking random images
75+
/// Stops the schedule
7476
#[poise::command(
7577
prefix_command,
7678
slash_command,
@@ -84,7 +86,7 @@ pub async fn stop(ctx: Context<'_>) -> Result<(), Error> {
8486
stop_banner(ctx, guild_id).await
8587
}
8688

87-
/// Stops picking random images in that server
89+
/// Stops the schedule in that server
8890
#[poise::command(prefix_command, slash_command, hide_in_help, owners_only)]
8991
#[instrument(skip_all)]
9092
pub async fn stop_for_guild(
@@ -96,7 +98,7 @@ pub async fn stop_for_guild(
9698
stop_banner(ctx, guild_id).await
9799
}
98100

99-
/// Tells you the channel that is being used right now
101+
/// Provides information on the currently running schedule
100102
#[poise::command(
101103
prefix_command,
102104
slash_command,

0 commit comments

Comments
 (0)