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])