Skip to content

Commit

Permalink
add SetNonce and SetEnforceNonce to MessageCreateBuilder
Browse files Browse the repository at this point in the history
ton is a moron
  • Loading branch information
mlnrDev committed Feb 9, 2024
1 parent a1d5254 commit ee67aaa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions discord/message_create_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ func (b *MessageCreateBuilder) SetContentf(content string, a ...any) *MessageCre
return b.SetContent(fmt.Sprintf(content, a...))
}

// SetNonce sets the Message nonce
func (b *MessageCreateBuilder) SetNonce(nonce string) *MessageCreateBuilder {
b.Nonce = nonce
return b
}

// SetEnforceNonce sets whether the Message should be checked for uniqueness (use with SetNonce)
func (b *MessageCreateBuilder) SetEnforceNonce(enforce bool) *MessageCreateBuilder {
b.EnforceNonce = enforce
return b
}

// SetTTS sets whether the Message should be text to speech
func (b *MessageCreateBuilder) SetTTS(tts bool) *MessageCreateBuilder {
b.TTS = tts
Expand Down

0 comments on commit ee67aaa

Please sign in to comment.