mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
24 lines
712 B
C#
24 lines
712 B
C#
#nullable disable
|
|
using NadekoBot.Modules.Utility.Services;
|
|
|
|
namespace NadekoBot.Modules.Utility;
|
|
|
|
public partial class Utility
|
|
{
|
|
[Group]
|
|
public partial class VerboseErrorCommands : NadekoModule<VerboseErrorsService>
|
|
{
|
|
[Cmd]
|
|
[RequireContext(ContextType.Guild)]
|
|
[UserPerm(GuildPerm.ManageMessages)]
|
|
public async partial Task VerboseError(bool? newstate = null)
|
|
{
|
|
var state = _service.ToggleVerboseErrors(ctx.Guild.Id, newstate);
|
|
|
|
if (state)
|
|
await ReplyConfirmLocalizedAsync(strs.verbose_errors_enabled);
|
|
else
|
|
await ReplyConfirmLocalizedAsync(strs.verbose_errors_disabled);
|
|
}
|
|
}
|
|
} |