You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
243 B
12 lines
243 B
|
4 years ago
|
package api
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
|
||
|
|
"github.com/RasmusLindroth/go-mastodon"
|
||
|
|
)
|
||
|
|
|
||
|
|
func (ac *AccountClient) Vote(poll *mastodon.Poll, choices ...int) (*mastodon.Poll, error) {
|
||
|
|
return ac.Client.PollVote(context.Background(), poll.ID, choices...)
|
||
|
|
}
|