Added commenting

This commit is contained in:
itzaname 2017-01-08 01:45:51 -05:00
parent a98243c194
commit d08c31a4e6

View File

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