Skip to content

Commit

Permalink
add URL()
Browse files Browse the repository at this point in the history
  • Loading branch information
sebm253 committed Aug 15, 2024
1 parent 4662bbf commit 2082aa8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions discord/soundboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ type SoundboardSound struct {
User *User `json:"user"`
}

func (s SoundboardSound) URL(opts ...CDNOpt) string {
return formatAssetURL(SoundboardSoundFile, opts, s.SoundID)
}

type SoundboardSoundCreate struct {
Name string `json:"name"`
Sound Sound `json:"sound"`
Expand Down

0 comments on commit 2082aa8

Please sign in to comment.