forked from pothtonswer/discordmuffin
chore(EndpointRoleIcon): move closer to related endpoints
This commit is contained in:
parent
603114195a
commit
b36e573cd1
1 changed files with 4 additions and 3 deletions
|
@ -43,9 +43,6 @@ var (
|
||||||
EndpointCDNBanners = EndpointCDN + "banners/"
|
EndpointCDNBanners = EndpointCDN + "banners/"
|
||||||
EndpointCDNGuilds = EndpointCDN + "guilds/"
|
EndpointCDNGuilds = EndpointCDN + "guilds/"
|
||||||
EndpointCDNRoleIcons = EndpointCDN + "role-icons/"
|
EndpointCDNRoleIcons = EndpointCDN + "role-icons/"
|
||||||
EndpointRoleIcon = func(rID, cID string) string {
|
|
||||||
return EndpointCDNRoleIcons + rID + "/" + cID + ".png"
|
|
||||||
}
|
|
||||||
|
|
||||||
EndpointVoice = EndpointAPI + "/voice/"
|
EndpointVoice = EndpointAPI + "/voice/"
|
||||||
EndpointVoiceRegions = EndpointVoice + "regions"
|
EndpointVoiceRegions = EndpointVoice + "regions"
|
||||||
|
@ -118,6 +115,10 @@ var (
|
||||||
return EndpointCDNGuilds + gId + "/users/" + uID + "/avatars/" + aID + ".gif"
|
return EndpointCDNGuilds + gId + "/users/" + uID + "/avatars/" + aID + ".gif"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EndpointRoleIcon = func(rID, cID string) string {
|
||||||
|
return EndpointCDNRoleIcons + rID + "/" + cID + ".png"
|
||||||
|
}
|
||||||
|
|
||||||
EndpointChannel = func(cID string) string { return EndpointChannels + cID }
|
EndpointChannel = func(cID string) string { return EndpointChannels + cID }
|
||||||
EndpointChannelThreads = func(cID string) string { return EndpointChannel(cID) + "/threads" }
|
EndpointChannelThreads = func(cID string) string { return EndpointChannel(cID) + "/threads" }
|
||||||
EndpointChannelActiveThreads = func(cID string) string { return EndpointChannelThreads(cID) + "/active" }
|
EndpointChannelActiveThreads = func(cID string) string { return EndpointChannelThreads(cID) + "/active" }
|
||||||
|
|
Loading…
Reference in a new issue