Rename AddAnswers to AddOptions

This commit is contained in:
unknown 2020-04-06 11:37:56 +03:00
parent 028a85b4f2
commit a8e038940f

View File

@ -40,7 +40,7 @@ func (p *Poll) IsQuiz() bool {
return p.Type == "quiz"
}
func (p *Poll) AddAnswers(text ...string) {
func (p *Poll) AddOptions(text ...string) {
for _, t := range text {
p.Options = append(p.Options, PollOption{Text: t})
}