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:"-"`
|
||||
Replies []struct {
|
||||
Id string `json:"id,omitempty"`
|
||||
Mention bool `json:"mention,omitempty"`
|
||||
Mention bool `json:"mention"`
|
||||
} `json:"replies,omitempty"`
|
||||
}
|
||||
|
||||
@ -45,7 +45,7 @@ func (sms *SendMessage) AddAttachment(attachment string) *SendMessage {
|
||||
func (sms *SendMessage) AddReply(id string, mention bool) *SendMessage {
|
||||
sms.Replies = append(sms.Replies, struct {
|
||||
Id string "json:\"id,omitempty\""
|
||||
Mention bool "json:\"mention,omitempty\""
|
||||
Mention bool "json:\"mention\""
|
||||
}{
|
||||
Id: id,
|
||||
Mention: mention,
|
||||
|
Loading…
x
Reference in New Issue
Block a user