|
@@ -58,42 +58,40 @@ var (
|
|
|
EndpointUserChannels = func(uID string) string { return EndpointUsers + uID + "/channels" }
|
|
|
EndpointUserConnections = func(uID string) string { return EndpointUsers + uID + "/connections" }
|
|
|
|
|
|
- EndpointGuild = func(gID string) string { return EndpointGuilds + gID }
|
|
|
- EndpointGuildPreview = func(gID string) string { return EndpointGuilds + gID + "/preview" }
|
|
|
- EndpointGuildChannels = func(gID string) string { return EndpointGuilds + gID + "/channels" }
|
|
|
- EndpointGuildMembers = func(gID string) string { return EndpointGuilds + gID + "/members" }
|
|
|
- EndpointGuildMember = func(gID, uID string) string { return EndpointGuilds + gID + "/members/" + uID }
|
|
|
- EndpointGuildMemberRole = func(gID, uID, rID string) string { return EndpointGuilds + gID + "/members/" + uID + "/roles/" + rID }
|
|
|
- EndpointGuildBans = func(gID string) string { return EndpointGuilds + gID + "/bans" }
|
|
|
- EndpointGuildBan = func(gID, uID string) string { return EndpointGuilds + gID + "/bans/" + uID }
|
|
|
- EndpointGuildIntegrations = func(gID string) string { return EndpointGuilds + gID + "/integrations" }
|
|
|
- EndpointGuildIntegration = func(gID, iID string) string { return EndpointGuilds + gID + "/integrations/" + iID }
|
|
|
- EndpointGuildIntegrationSync = func(gID, iID string) string { return EndpointGuilds + gID + "/integrations/" + iID + "/sync" }
|
|
|
- EndpointGuildRoles = func(gID string) string { return EndpointGuilds + gID + "/roles" }
|
|
|
- EndpointGuildRole = func(gID, rID string) string { return EndpointGuilds + gID + "/roles/" + rID }
|
|
|
- EndpointGuildInvites = func(gID string) string { return EndpointGuilds + gID + "/invites" }
|
|
|
- EndpointGuildWidget = func(gID string) string { return EndpointGuilds + gID + "/widget" }
|
|
|
- EndpointGuildEmbed = EndpointGuildWidget
|
|
|
- EndpointGuildPrune = func(gID string) string { return EndpointGuilds + gID + "/prune" }
|
|
|
- EndpointGuildIcon = func(gID, hash string) string { return EndpointCDNIcons + gID + "/" + hash + ".png" }
|
|
|
- EndpointGuildIconAnimated = func(gID, hash string) string { return EndpointCDNIcons + gID + "/" + hash + ".gif" }
|
|
|
- EndpointGuildSplash = func(gID, hash string) string { return EndpointCDNSplashes + gID + "/" + hash + ".png" }
|
|
|
- EndpointGuildWebhooks = func(gID string) string { return EndpointGuilds + gID + "/webhooks" }
|
|
|
- EndpointGuildAuditLogs = func(gID string) string { return EndpointGuilds + gID + "/audit-logs" }
|
|
|
- EndpointGuildEmojis = func(gID string) string { return EndpointGuilds + gID + "/emojis" }
|
|
|
- EndpointGuildEmoji = func(gID, eID string) string { return EndpointGuilds + gID + "/emojis/" + eID }
|
|
|
- EndpointGuildBanner = func(gID, hash string) string { return EndpointCDNBanners + gID + "/" + hash + ".png" }
|
|
|
- EndpointGuildStickers = func(gID string) string { return EndpointGuilds + gID + "/stickers" }
|
|
|
- EndpointGuildSticker = func(gID, sID string) string { return EndpointGuilds + gID + "/stickers/" + sID }
|
|
|
+ EndpointGuild = func(gID string) string { return EndpointGuilds + gID }
|
|
|
+ EndpointGuildPreview = func(gID string) string { return EndpointGuilds + gID + "/preview" }
|
|
|
+ EndpointGuildChannels = func(gID string) string { return EndpointGuilds + gID + "/channels" }
|
|
|
+ EndpointGuildMembers = func(gID string) string { return EndpointGuilds + gID + "/members" }
|
|
|
+ EndpointGuildMember = func(gID, uID string) string { return EndpointGuilds + gID + "/members/" + uID }
|
|
|
+ EndpointGuildMemberRole = func(gID, uID, rID string) string { return EndpointGuilds + gID + "/members/" + uID + "/roles/" + rID }
|
|
|
+ EndpointGuildBans = func(gID string) string { return EndpointGuilds + gID + "/bans" }
|
|
|
+ EndpointGuildBan = func(gID, uID string) string { return EndpointGuilds + gID + "/bans/" + uID }
|
|
|
+ EndpointGuildIntegrations = func(gID string) string { return EndpointGuilds + gID + "/integrations" }
|
|
|
+ EndpointGuildIntegration = func(gID, iID string) string { return EndpointGuilds + gID + "/integrations/" + iID }
|
|
|
+ EndpointGuildRoles = func(gID string) string { return EndpointGuilds + gID + "/roles" }
|
|
|
+ EndpointGuildRole = func(gID, rID string) string { return EndpointGuilds + gID + "/roles/" + rID }
|
|
|
+ EndpointGuildInvites = func(gID string) string { return EndpointGuilds + gID + "/invites" }
|
|
|
+ EndpointGuildWidget = func(gID string) string { return EndpointGuilds + gID + "/widget" }
|
|
|
+ EndpointGuildEmbed = EndpointGuildWidget
|
|
|
+ EndpointGuildPrune = func(gID string) string { return EndpointGuilds + gID + "/prune" }
|
|
|
+ EndpointGuildIcon = func(gID, hash string) string { return EndpointCDNIcons + gID + "/" + hash + ".png" }
|
|
|
+ EndpointGuildIconAnimated = func(gID, hash string) string { return EndpointCDNIcons + gID + "/" + hash + ".gif" }
|
|
|
+ EndpointGuildSplash = func(gID, hash string) string { return EndpointCDNSplashes + gID + "/" + hash + ".png" }
|
|
|
+ EndpointGuildWebhooks = func(gID string) string { return EndpointGuilds + gID + "/webhooks" }
|
|
|
+ EndpointGuildAuditLogs = func(gID string) string { return EndpointGuilds + gID + "/audit-logs" }
|
|
|
+ EndpointGuildEmojis = func(gID string) string { return EndpointGuilds + gID + "/emojis" }
|
|
|
+ EndpointGuildEmoji = func(gID, eID string) string { return EndpointGuilds + gID + "/emojis/" + eID }
|
|
|
+ EndpointGuildBanner = func(gID, hash string) string { return EndpointCDNBanners + gID + "/" + hash + ".png" }
|
|
|
+ EndpointGuildStickers = func(gID string) string { return EndpointGuilds + gID + "/stickers" }
|
|
|
+ EndpointGuildSticker = func(gID, sID string) string { return EndpointGuilds + gID + "/stickers/" + sID }
|
|
|
|
|
|
EndpointChannel = func(cID string) string { return EndpointChannels + cID }
|
|
|
EndpointChannelPermissions = func(cID string) string { return EndpointChannels + cID + "/permissions" }
|
|
|
- EndpointChannelPermission = func(cID, tID string) string { return EndpointChannels + cID + "/permissions/" + tID }
|
|
|
+ EndpointChannelPermission = func(cID, tID string) string { return EndpointChannelPermissions(cID) + "/" + tID }
|
|
|
EndpointChannelInvites = func(cID string) string { return EndpointChannels + cID + "/invites" }
|
|
|
EndpointChannelTyping = func(cID string) string { return EndpointChannels + cID + "/typing" }
|
|
|
EndpointChannelMessages = func(cID string) string { return EndpointChannels + cID + "/messages" }
|
|
|
EndpointChannelMessage = func(cID, mID string) string { return EndpointChannels + cID + "/messages/" + mID }
|
|
|
- EndpointChannelMessageAck = func(cID, mID string) string { return EndpointChannels + cID + "/messages/" + mID + "/ack" }
|
|
|
EndpointChannelMessagesBulkDelete = func(cID string) string { return EndpointChannel(cID) + "/messages/bulk-delete" }
|
|
|
EndpointChannelMessagesPins = func(cID string) string { return EndpointChannel(cID) + "/pins" }
|
|
|
EndpointChannelMessagePin = func(cID, mID string) string { return EndpointChannel(cID) + "/pins/" + mID }
|
|
@@ -155,8 +153,6 @@ var (
|
|
|
|
|
|
EndpointInvite = func(iID string) string { return EndpointAPI + "invites/" + iID }
|
|
|
|
|
|
- EndpointIntegrationsJoin = func(iID string) string { return EndpointAPI + "integrations/" + iID + "/join" }
|
|
|
-
|
|
|
EndpointEmoji = func(eID string) string { return EndpointCDN + "emojis/" + eID + ".png" }
|
|
|
EndpointEmojiAnimated = func(eID string) string { return EndpointCDN + "emojis/" + eID + ".gif" }
|
|
|
|