Removed module projects because it can't work like that atm. Commented out package commands.
This commit is contained in:
27
NadekoBot.Core/Modules/Utility/VerboseErrorCommands.cs
Normal file
27
NadekoBot.Core/Modules/Utility/VerboseErrorCommands.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using Discord.Commands;
|
||||
using System.Threading.Tasks;
|
||||
using NadekoBot.Common.Attributes;
|
||||
using NadekoBot.Modules.Utility.Services;
|
||||
|
||||
namespace NadekoBot.Modules.Utility
|
||||
{
|
||||
public partial class Utility
|
||||
{
|
||||
[Group]
|
||||
public class VerboseErrorCommands : NadekoSubmodule<VerboseErrorsService>
|
||||
{
|
||||
[NadekoCommand, Usage, Description, Aliases]
|
||||
[RequireContext(ContextType.Guild)]
|
||||
[RequireUserPermission(Discord.GuildPermission.ManageMessages)]
|
||||
public async Task VerboseError()
|
||||
{
|
||||
var state = _service.ToggleVerboseErrors(Context.Guild.Id);
|
||||
|
||||
if (state)
|
||||
await ReplyConfirmLocalized("verbose_errors_enabled").ConfigureAwait(false);
|
||||
else
|
||||
await ReplyConfirmLocalized("verbose_errors_disabled").ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user