From d64d5ebf772eb7339ea7c425b32822ae35fe0a95 Mon Sep 17 00:00:00 2001 From: caneleex Date: Fri, 4 Nov 2022 21:53:22 +0100 Subject: [PATCH] fix automod example --- _examples/auto_moderation/example.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_examples/auto_moderation/example.go b/_examples/auto_moderation/example.go index 350fdf63..38fcd6a5 100644 --- a/_examples/auto_moderation/example.go +++ b/_examples/auto_moderation/example.go @@ -82,7 +82,7 @@ func showCaseAutoMod(client bot.Client) { Type: discord.AutoModerationActionTypeBlockMessage, }, }, - Enabled: true, + Enabled: json.NewPtr(true), }) if err != nil { log.Error("error while creating rule: ", err)