From 3f38ae3553439f64545505584c4650b3f9f808b5 Mon Sep 17 00:00:00 2001 From: mimu Date: Sun, 9 Oct 2022 11:06:11 +0200 Subject: [PATCH] add log --- commands/pinned.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/pinned.go b/commands/pinned.go index d89c3f2..028a21b 100644 --- a/commands/pinned.go +++ b/commands/pinned.go @@ -3,6 +3,7 @@ package commands import ( "encoding/json" "fmt" + "log" "math/rand" tempest "github.com/Amatsagu/Tempest" @@ -15,6 +16,7 @@ var Pinned tempest.Command = tempest.Command{ SlashCommandHandler: func(itx tempest.CommandInteraction) { messages, err := getPinnedMessages(itx.Client.Rest, itx.ChannelId.String()) if err != nil { + log.Printf("failed to get messages: %s", err.Error()) itx.SendLinearReply(err.Error(), false) return }