fixed reply bug.
This commit is contained in:
parent
f0da4024d5
commit
525127e317
4
other.go
4
other.go
@ -13,7 +13,7 @@ type SendMessage struct {
|
|||||||
DeleteAfter uint `json:"-"`
|
DeleteAfter uint `json:"-"`
|
||||||
Replies []struct {
|
Replies []struct {
|
||||||
Id string `json:"id,omitempty"`
|
Id string `json:"id,omitempty"`
|
||||||
Mention bool `json:"mention,omitempty"`
|
Mention bool `json:"mention"`
|
||||||
} `json:"replies,omitempty"`
|
} `json:"replies,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ func (sms *SendMessage) AddAttachment(attachment string) *SendMessage {
|
|||||||
func (sms *SendMessage) AddReply(id string, mention bool) *SendMessage {
|
func (sms *SendMessage) AddReply(id string, mention bool) *SendMessage {
|
||||||
sms.Replies = append(sms.Replies, struct {
|
sms.Replies = append(sms.Replies, struct {
|
||||||
Id string "json:\"id,omitempty\""
|
Id string "json:\"id,omitempty\""
|
||||||
Mention bool "json:\"mention,omitempty\""
|
Mention bool "json:\"mention\""
|
||||||
}{
|
}{
|
||||||
Id: id,
|
Id: id,
|
||||||
Mention: mention,
|
Mention: mention,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user