mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-30 11:09:54 +03:00
Add time format example to the description of commands that use TimeSpan. (#267)
This PR was made to help users who are trying /remind for the first time by showing an example of the correct time format in the description. --------- Signed-off-by: Macintxsh <95250141+mctaylors@users.noreply.github.com> Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
8eed295fcd
commit
62709d927b
8 changed files with 24 additions and 3 deletions
|
@ -76,7 +76,8 @@ public class BanCommandGroup : CommandGroup
|
|||
[Description("User to ban")] IUser target,
|
||||
[Description("Ban reason")] [MaxLength(256)]
|
||||
string reason,
|
||||
[Description("Ban duration")] string? duration = null)
|
||||
[Description("Ban duration (e.g. 1h30m)")]
|
||||
string? duration = null)
|
||||
{
|
||||
if (!_context.TryGetContextIDs(out var guildId, out var channelId, out var executorId))
|
||||
{
|
||||
|
@ -116,6 +117,7 @@ public class BanCommandGroup : CommandGroup
|
|||
{
|
||||
var failedEmbed = new EmbedBuilder()
|
||||
.WithSmallTitle(Messages.InvalidTimeSpan, bot)
|
||||
.WithDescription(Messages.TimeSpanExample)
|
||||
.WithColour(ColorsList.Red)
|
||||
.Build();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue