fix permissions
This commit is contained in:
parent
976e93df86
commit
750303b4ed
@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
using Discord.Commands;
|
using Discord.Commands;
|
||||||
|
using NadekoBot.Classes.Permissions;
|
||||||
using NadekoBot.Modules;
|
using NadekoBot.Modules;
|
||||||
|
|
||||||
namespace NadekoBot.Commands {
|
namespace NadekoBot.Commands {
|
||||||
@ -33,6 +34,7 @@ namespace NadekoBot.Commands {
|
|||||||
cgb.CreateCommand(Module.Prefix + "slowmode")
|
cgb.CreateCommand(Module.Prefix + "slowmode")
|
||||||
.Description("Toggles slow mode. When ON, users will be able to send only 1 message every 5 seconds.")
|
.Description("Toggles slow mode. When ON, users will be able to send only 1 message every 5 seconds.")
|
||||||
.Parameter("minutes", ParameterType.Optional)
|
.Parameter("minutes", ParameterType.Optional)
|
||||||
|
.AddCheck(SimpleCheckers.ManageMessages())
|
||||||
.Do(async e => {
|
.Do(async e => {
|
||||||
//var minutesStr = e.GetArg("minutes");
|
//var minutesStr = e.GetArg("minutes");
|
||||||
//if (string.IsNullOrWhiteSpace(minutesStr)) {
|
//if (string.IsNullOrWhiteSpace(minutesStr)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user