aboutsummaryrefslogtreecommitdiff
path: root/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'api.go')
-rw-r--r--api.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api.go b/api.go
index 1591398..7078665 100644
--- a/api.go
+++ b/api.go
@@ -55,7 +55,7 @@ func (a *Api) bytesToProperUpdate(b []byte) UpdateInterface {
case TypeMessageCreated:
upd := new(MessageCreatedUpdate)
_ = json.Unmarshal(b, upd)
- for _, att := range upd.Message.Body.rawAttachments {
+ for _, att := range upd.Message.Body.RawAttachments {
upd.Message.Body.Attachments = append(upd.Message.Body.Attachments, a.bytesToProperAttachment(att))
}
return upd
@@ -66,7 +66,7 @@ func (a *Api) bytesToProperUpdate(b []byte) UpdateInterface {
case TypeMessageEdited:
upd := new(MessageEditedUpdate)
_ = json.Unmarshal(b, upd)
- for _, att := range upd.Message.Body.rawAttachments {
+ for _, att := range upd.Message.Body.RawAttachments {
upd.Message.Body.Attachments = append(upd.Message.Body.Attachments, a.bytesToProperAttachment(att))
}
return upd