fix: add missing option names/descriptions
This commit is contained in:
parent
a34b5479c0
commit
c28f987240
2 changed files with 13 additions and 4 deletions
|
|
@ -47,7 +47,10 @@ public class WatchlistCommands(
|
|||
{
|
||||
[Command("add")]
|
||||
[Description("Add a user to the watchlist.")]
|
||||
public async Task<IResult> AddAsync(IUser user, string reason)
|
||||
public async Task<IResult> AddAsync(
|
||||
[Description("The user to add")] IUser user,
|
||||
[Description("The reason for adding this user to the watchlist")] string reason
|
||||
)
|
||||
{
|
||||
var (userId, guildId) = contextInjectionService.GetUserAndGuild();
|
||||
|
||||
|
|
@ -59,7 +62,7 @@ public class WatchlistCommands(
|
|||
|
||||
[Command("remove")]
|
||||
[Description("Remove a user from the watchlist.")]
|
||||
public async Task<IResult> RemoveAsync(IUser user)
|
||||
public async Task<IResult> RemoveAsync([Description("The user to remove")] IUser user)
|
||||
{
|
||||
var (userId, guildId) = contextInjectionService.GetUserAndGuild();
|
||||
if (!await watchlistRepository.RemoveEntryAsync(guildId, user.ID))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue