From d08c31a4e67f3e258eca017816c29ff3ab04c6ff Mon Sep 17 00:00:00 2001 From: itzaname Date: Sun, 8 Jan 2017 01:45:51 -0500 Subject: [PATCH] Added commenting --- message.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/message.go b/message.go index 56b02a2..cb15c63 100644 --- a/message.go +++ b/message.go @@ -109,6 +109,8 @@ func (s *Session) ArchiveMessages(ids []string) error { return fmt.Errorf("ID list was empty") } + // We do this because when we turn it to json it will look like [1,2,3] + // and not ["1","2","3"] var newList []int for i := 0; i < len(ids); i++ { idString, err := strconv.Atoi(ids[i])