From 5f797a9a6061901b56df1bb93e530379665b6069 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 16 Nov 2016 05:36:38 +0100 Subject: [PATCH] .repeat is now usable only by users with manage messages --- .../Modules/Administration/Commands/MessageRepeater.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs b/src/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs index 77da8304..cdba854e 100644 --- a/src/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs +++ b/src/NadekoBot/Modules/Administration/Commands/MessageRepeater.cs @@ -97,6 +97,7 @@ namespace NadekoBot.Modules.Administration [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] + [RequirePermission(GuildPermission.ManageMessages)] public async Task Repeat(IUserMessage imsg) { var channel = (ITextChannel)imsg.Channel; @@ -117,6 +118,7 @@ namespace NadekoBot.Modules.Administration [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] + [RequirePermission(GuildPermission.ManageMessages)] public async Task Repeat(IUserMessage imsg, int minutes, [Remainder] string message) { var channel = (ITextChannel)imsg.Channel;