Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Toπ <[email protected]>
  • Loading branch information
sebm253 and topi314 authored Sep 21, 2024
1 parent 71d6d64 commit 39a71ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discord/sound.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ const (
SoundTypeUnknown = SoundTypeMP3
)

func (t SoundType) GetMIME() string {
func (t SoundType) MIME() string {
return string(t)
}

func (t SoundType) GetHeader() string {
func (t SoundType) Header() string {
return "data:" + string(t) + ";base64"
}

Expand Down Expand Up @@ -55,5 +55,5 @@ func (s Sound) String() string {
if len(s.Data) == 0 {
return ""
}
return s.Type.GetHeader() + "," + string(s.Data)
return s.Type.Header() + "," + string(s.Data)
}

0 comments on commit 39a71ec

Please sign in to comment.