From a39f542cad1b1a616e010a2fa9f79648b62a23d0 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Sun, 3 Jul 2016 00:48:55 +0200 Subject: [PATCH] Added manage messages requirement for >gc --- NadekoBot/Modules/Games/Commands/PlantPick.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NadekoBot/Modules/Games/Commands/PlantPick.cs b/NadekoBot/Modules/Games/Commands/PlantPick.cs index cba74cc7..cbc4b01a 100644 --- a/NadekoBot/Modules/Games/Commands/PlantPick.cs +++ b/NadekoBot/Modules/Games/Commands/PlantPick.cs @@ -1,6 +1,7 @@ using Discord; using Discord.Commands; using NadekoBot.Classes; +using NadekoBot.Modules.Permissions.Classes; using System; using System.Collections.Concurrent; using System.IO; @@ -103,7 +104,8 @@ namespace NadekoBot.Modules.Games.Commands cgb.CreateCommand(Prefix + "gencurrency") .Alias(Prefix + "gc") - .Description($"Toggles currency generation on this channel. Every posted message will have 2% chance to spawn a {NadekoBot.Config.CurrencyName}. | `gc`") + .Description($"Toggles currency generation on this channel. Every posted message will have 2% chance to spawn a {NadekoBot.Config.CurrencyName}. Requires Manage Messages permission. | `>gc`") + .AddCheck(SimpleCheckers.ManageMessages()) .Do(async e => { var config = SpecificConfigurations.Default.Of(e.Server.Id);