Fancy replies using rich embeds on Discord side
This commit is contained in:
41
vendor/github.com/bwmarrin/discordgo/endpoints.go
generated
vendored
41
vendor/github.com/bwmarrin/discordgo/endpoints.go
generated
vendored
@@ -33,6 +33,7 @@ var (
|
||||
EndpointWebhooks = EndpointAPI + "webhooks/"
|
||||
EndpointStickers = EndpointAPI + "stickers/"
|
||||
EndpointStageInstances = EndpointAPI + "stage-instances"
|
||||
EndpointSKUs = EndpointAPI + "skus"
|
||||
|
||||
EndpointCDN = "https://cdn.discordapp.com/"
|
||||
EndpointCDNAttachments = EndpointCDN + "attachments/"
|
||||
@@ -114,6 +115,12 @@ var (
|
||||
EndpointGuildMemberAvatarAnimated = func(gId, uID, aID string) string {
|
||||
return EndpointCDNGuilds + gId + "/users/" + uID + "/avatars/" + aID + ".gif"
|
||||
}
|
||||
EndpointGuildMemberBanner = func(gId, uID, hash string) string {
|
||||
return EndpointCDNGuilds + gId + "/users/" + uID + "/banners/" + hash + ".png"
|
||||
}
|
||||
EndpointGuildMemberBannerAnimated = func(gId, uID, hash string) string {
|
||||
return EndpointCDNGuilds + gId + "/users/" + uID + "/banners/" + hash + ".gif"
|
||||
}
|
||||
|
||||
EndpointRoleIcon = func(rID, hash string) string {
|
||||
return EndpointCDNRoleIcons + rID + "/" + hash + ".png"
|
||||
@@ -162,6 +169,37 @@ var (
|
||||
return EndpointMessageReactions(cID, mID, eID) + "/" + uID
|
||||
}
|
||||
|
||||
EndpointPoll = func(cID, mID string) string {
|
||||
return EndpointChannel(cID) + "/polls/" + mID
|
||||
}
|
||||
EndpointPollAnswerVoters = func(cID, mID string, aID int) string {
|
||||
return EndpointPoll(cID, mID) + "/answers/" + strconv.Itoa(aID)
|
||||
}
|
||||
EndpointPollExpire = func(cID, mID string) string {
|
||||
return EndpointPoll(cID, mID) + "/expire"
|
||||
}
|
||||
|
||||
EndpointApplicationSKUs = func(aID string) string {
|
||||
return EndpointApplication(aID) + "/skus"
|
||||
}
|
||||
|
||||
EndpointEntitlements = func(aID string) string {
|
||||
return EndpointApplication(aID) + "/entitlements"
|
||||
}
|
||||
EndpointEntitlement = func(aID, eID string) string {
|
||||
return EndpointEntitlements(aID) + "/" + eID
|
||||
}
|
||||
EndpointEntitlementConsume = func(aID, eID string) string {
|
||||
return EndpointEntitlement(aID, eID) + "/consume"
|
||||
}
|
||||
|
||||
EndpointSubscriptions = func(skuID string) string {
|
||||
return EndpointSKUs + "/" + skuID + "/subscriptions"
|
||||
}
|
||||
EndpointSubscription = func(skuID, subID string) string {
|
||||
return EndpointSubscriptions(skuID) + "/" + subID
|
||||
}
|
||||
|
||||
EndpointApplicationGlobalCommands = func(aID string) string {
|
||||
return EndpointApplication(aID) + "/commands"
|
||||
}
|
||||
@@ -208,6 +246,9 @@ var (
|
||||
EndpointApplication = func(aID string) string { return EndpointApplications + "/" + aID }
|
||||
EndpointApplicationRoleConnectionMetadata = func(aID string) string { return EndpointApplication(aID) + "/role-connections/metadata" }
|
||||
|
||||
EndpointApplicationEmojis = func(aID string) string { return EndpointApplication(aID) + "/emojis" }
|
||||
EndpointApplicationEmoji = func(aID, eID string) string { return EndpointApplication(aID) + "/emojis/" + eID }
|
||||
|
||||
EndpointOAuth2 = EndpointAPI + "oauth2/"
|
||||
EndpointOAuth2Applications = EndpointOAuth2 + "applications"
|
||||
EndpointOAuth2Application = func(aID string) string { return EndpointOAuth2Applications + "/" + aID }
|
||||
|
||||
Reference in New Issue
Block a user