Skip to content

Commit

Permalink
Remove "Get" prefix in funcs in Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
sebm253 committed Sep 21, 2024
1 parent 03e9ee0 commit 71cd4c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discord/icon.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ const (
IconTypeUnknown = IconTypeJPEG
)

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

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

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

0 comments on commit 71cd4c8

Please sign in to comment.