From 1aacdc5d13af6d8cc29970197801d8073961ecc2 Mon Sep 17 00:00:00 2001 From: mimu Date: Tue, 11 Oct 2022 01:00:33 +0200 Subject: [PATCH] nil pointer --- commands/pinned.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/pinned.go b/commands/pinned.go index 5a52bbd..d8863b2 100644 --- a/commands/pinned.go +++ b/commands/pinned.go @@ -57,6 +57,8 @@ var Pinned tempest.Command = tempest.Command{ itx.SendLinearReply("no data for this channel", false) } + fmt.Println(channelData) + if channelData.Count == 0 { itx.SendLinearReply("no pinned messages", false) return