From 750303b4ed035bdb710597fac66fdb4722a650d4 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Fri, 18 Mar 2016 16:29:46 +0100 Subject: [PATCH] fix permissions --- NadekoBot/Commands/RatelimitCommand.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NadekoBot/Commands/RatelimitCommand.cs b/NadekoBot/Commands/RatelimitCommand.cs index 92bce07f..a24a8332 100644 --- a/NadekoBot/Commands/RatelimitCommand.cs +++ b/NadekoBot/Commands/RatelimitCommand.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Concurrent; using Discord.Commands; +using NadekoBot.Classes.Permissions; using NadekoBot.Modules; namespace NadekoBot.Commands { @@ -33,6 +34,7 @@ namespace NadekoBot.Commands { cgb.CreateCommand(Module.Prefix + "slowmode") .Description("Toggles slow mode. When ON, users will be able to send only 1 message every 5 seconds.") .Parameter("minutes", ParameterType.Optional) + .AddCheck(SimpleCheckers.ManageMessages()) .Do(async e => { //var minutesStr = e.GetArg("minutes"); //if (string.IsNullOrWhiteSpace(minutesStr)) {