update
This commit is contained in:
+2
-2
@@ -140,10 +140,10 @@ func (sender *Sender) Reply(msgs ...interface{}) error {
|
|||||||
for _, item := range msgs {
|
for _, item := range msgs {
|
||||||
switch item.(type) {
|
switch item.(type) {
|
||||||
case core.Edit:
|
case core.Edit:
|
||||||
v := msgs[2].(core.Edit)
|
v := item.(core.Edit)
|
||||||
edit = &v
|
edit = &v
|
||||||
case time.Duration:
|
case time.Duration:
|
||||||
du := msgs[1].(time.Duration)
|
du := item.(time.Duration)
|
||||||
sender.Duration = &du
|
sender.Duration = &du
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user