Skip to content

Commit 71cd4c8

Browse files
committed
Remove "Get" prefix in funcs in Icon
1 parent 03e9ee0 commit 71cd4c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discord/icon.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ const (
1818
IconTypeUnknown = IconTypeJPEG
1919
)
2020

21-
func (t IconType) GetMIME() string {
21+
func (t IconType) MIME() string {
2222
return string(t)
2323
}
2424

25-
func (t IconType) GetHeader() string {
25+
func (t IconType) Header() string {
2626
return "data:" + string(t) + ";base64"
2727
}
2828

@@ -56,5 +56,5 @@ func (i Icon) String() string {
5656
if len(i.Data) == 0 {
5757
return ""
5858
}
59-
return i.Type.GetHeader() + "," + string(i.Data)
59+
return i.Type.Header() + "," + string(i.Data)
6060
}

0 commit comments

Comments
 (0)