You can now use .warnlog on yourself
This commit is contained in:
parent
b08ad7cb77
commit
5fc9c18d98
@ -131,24 +131,27 @@ namespace NadekoBot.Modules.Administration
|
|||||||
[NadekoCommand, Usage, Description, Aliases]
|
[NadekoCommand, Usage, Description, Aliases]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
[RequireUserPermission(GuildPermission.BanMembers)]
|
[RequireUserPermission(GuildPermission.BanMembers)]
|
||||||
|
[Priority(1)]
|
||||||
public Task Warnlog(int page, IGuildUser user)
|
public Task Warnlog(int page, IGuildUser user)
|
||||||
=> Warnlog(page, user.Id);
|
=> Warnlog(page, user.Id);
|
||||||
|
|
||||||
[NadekoCommand, Usage, Description, Aliases]
|
[NadekoCommand, Usage, Description, Aliases]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
[RequireUserPermission(GuildPermission.BanMembers)]
|
[Priority(0)]
|
||||||
public Task Warnlog(IGuildUser user)
|
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]
|
[NadekoCommand, Usage, Description, Aliases]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
[RequireUserPermission(GuildPermission.BanMembers)]
|
[RequireUserPermission(GuildPermission.BanMembers)]
|
||||||
|
[Priority(3)]
|
||||||
public Task Warnlog(int page, ulong userId)
|
public Task Warnlog(int page, ulong userId)
|
||||||
=> InternalWarnlog(userId, page - 1);
|
=> InternalWarnlog(userId, page - 1);
|
||||||
|
|
||||||
[NadekoCommand, Usage, Description, Aliases]
|
[NadekoCommand, Usage, Description, Aliases]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
[RequireUserPermission(GuildPermission.BanMembers)]
|
[RequireUserPermission(GuildPermission.BanMembers)]
|
||||||
|
[Priority(2)]
|
||||||
public Task Warnlog(ulong userId)
|
public Task Warnlog(ulong userId)
|
||||||
=> InternalWarnlog(userId, 0);
|
=> InternalWarnlog(userId, 0);
|
||||||
|
|
||||||
|
@ -735,7 +735,7 @@
|
|||||||
"administration_warned_on_by": "On {0} at {1} by {2}",
|
"administration_warned_on_by": "On {0} at {1} by {2}",
|
||||||
"administration_warnings_cleared": "All warnings have been cleared for {0}.",
|
"administration_warnings_cleared": "All warnings have been cleared for {0}.",
|
||||||
"administration_warnings_none": "No warning on this page.",
|
"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_warnlog_for": "Warnlog for {0}",
|
||||||
"administration_warnpl_none": "No punishments set.",
|
"administration_warnpl_none": "No punishments set.",
|
||||||
"administration_warn_cleared_by": "cleared by {0}",
|
"administration_warn_cleared_by": "cleared by {0}",
|
||||||
|
Loading…
Reference in New Issue
Block a user