Skip to content

Commit

Permalink
Rename some PollCreateBuilder funcs for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mlnrDev committed Apr 23, 2024
1 parent a587875 commit 3ff4973
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions discord/poll_create_builder.go
Expand Up @@ -13,14 +13,14 @@ func (b *PollCreateBuilder) SetQuestion(text string) *PollCreateBuilder {
return b
}

// SetPollAnswers sets the answers of the Poll
func (b *PollCreateBuilder) SetPollAnswers(answers ...PollMedia) *PollCreateBuilder {
// SetAnswers sets the answers of the Poll
func (b *PollCreateBuilder) SetAnswers(answers ...PollMedia) *PollCreateBuilder {
b.Answers = answers
return b
}

// AddPollAnswer adds an answer to the Poll
func (b *PollCreateBuilder) AddPollAnswer(text string, emoji *PartialEmoji) *PollCreateBuilder {
// AddAnswer adds an answer to the Poll
func (b *PollCreateBuilder) AddAnswer(text string, emoji *PartialEmoji) *PollCreateBuilder {
b.Answers = append(b.Answers, PollMedia{
Text: &text,
Emoji: emoji,
Expand Down

0 comments on commit 3ff4973

Please sign in to comment.