1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-01-31 00:19:00 +03:00

Add description to /clear's author to clarify its functionality (#315)

Closes #314

What? The title speaks for itself.
This commit is contained in:
Macintxsh 2024-05-31 21:46:12 +05:00 committed by GitHub
parent daef4f1d48
commit 29a1eb9869
Signed by: GitHub
GPG key ID: B5690EEEBB952194

View file

@ -64,6 +64,7 @@ public sealed class ClearCommandGroup : CommandGroup
public async Task<Result> ExecuteClear( public async Task<Result> ExecuteClear(
[Description("Number of messages to remove (2-100)")] [MinValue(2)] [MaxValue(100)] [Description("Number of messages to remove (2-100)")] [MinValue(2)] [MaxValue(100)]
int amount, int amount,
[Description("Ignore messages except from the specified author")]
IUser? author = null) IUser? author = null)
{ {
if (!_context.TryGetContextIDs(out var guildId, out var channelId, out var executorId)) if (!_context.TryGetContextIDs(out var guildId, out var channelId, out var executorId))