some random changes, and fixed ,cw help, thx infy

This commit is contained in:
Kwoth
2017-02-26 22:05:17 +01:00
parent a413184a43
commit 1f09ad67e3
2 changed files with 16 additions and 20 deletions

View File

@@ -82,11 +82,9 @@ namespace NadekoBot.Modules.ClashOfClans
[NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)]
[RequireUserPermission(GuildPermission.ManageMessages)]
public async Task CreateWar(int size, [Remainder] string enemyClan = null)
{
if (!(Context.User as IGuildUser).GuildPermissions.ManageChannels)
return;
if (string.IsNullOrWhiteSpace(enemyClan))
return;