From e0c7ffa13a207883c8451abfc5f8b48b82040fdd Mon Sep 17 00:00:00 2001 From: Kwoth Date: Tue, 25 Oct 2016 13:10:05 +0200 Subject: [PATCH] Clarification --- .../Commands/VoicePlusTextCommands.cs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs b/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs index 2779ea6f..f132396d 100644 --- a/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs +++ b/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs @@ -117,9 +117,19 @@ namespace NadekoBot.Modules.Administration var botUser = guild.GetCurrentUser(); if (!botUser.GuildPermissions.ManageRoles || !botUser.GuildPermissions.ManageChannels) { - await channel.SendMessageAsync(":anger: `I require manage roles and manage channels permissions to enable this feature.`"); + await channel.SendMessageAsync(":anger: `I require atleast manage roles and manage channels permissions to enable this feature (preffered Administration permission).`"); return; } + + if (!botUser.GuildPermissions.Administrator) + { + try + { + await channel.SendMessageAsync(":warning: `You are enabling this feature and I do not have ADMINISTRATOR permissions, " + + "this may cause some issues, and you will have to clean up text channels yourself afterwards.`"); + } + catch { ]} + } try { bool isEnabled; @@ -156,9 +166,9 @@ namespace NadekoBot.Modules.Administration { var channel = (ITextChannel)msg.Channel; var guild = channel.Guild; - if (!guild.GetCurrentUser().GuildPermissions.ManageChannels) + if (!guild.GetCurrentUser().GuildPermissions.Administrator) { - await channel.SendMessageAsync("`I have insufficient permission to do that.`").ConfigureAwait(false); + await channel.SendMessageAsync("`I need Administrator permission to do that.`").ConfigureAwait(false); return; }