You can now use .warnlog on yourself

This commit is contained in:
Master Kwoth 2017-06-28 07:05:08 +02:00
parent b08ad7cb77
commit 5fc9c18d98
2 changed files with 6 additions and 3 deletions

View File

@ -131,24 +131,27 @@ namespace NadekoBot.Modules.Administration
[NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)]
[RequireUserPermission(GuildPermission.BanMembers)]
[Priority(1)]
public Task Warnlog(int page, IGuildUser user)
=> Warnlog(page, user.Id);
[NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)]
[RequireUserPermission(GuildPermission.BanMembers)]
[Priority(0)]
public Task Warnlog(IGuildUser user)
=> Warnlog(user.Id);
=> Context.User.Id == user.Id || ((IGuildUser)Context.User).GuildPermissions.BanMembers ? Warnlog(user.Id) : Task.CompletedTask;
[NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)]
[RequireUserPermission(GuildPermission.BanMembers)]
[Priority(3)]
public Task Warnlog(int page, ulong userId)
=> InternalWarnlog(userId, page - 1);
[NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)]
[RequireUserPermission(GuildPermission.BanMembers)]
[Priority(2)]
public Task Warnlog(ulong userId)
=> InternalWarnlog(userId, 0);

View File

@ -735,7 +735,7 @@
"administration_warned_on_by": "On {0} at {1} by {2}",
"administration_warnings_cleared": "All warnings have been cleared for {0}.",
"administration_warnings_none": "No warning on this page.",
"administration_warnings_list": "List of all warned users on the server.",
"administration_warnings_list": "List of all warned users on the server",
"administration_warnlog_for": "Warnlog for {0}",
"administration_warnpl_none": "No punishments set.",
"administration_warn_cleared_by": "cleared by {0}",