12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- package discordgo
- var (
- EndpointStatus = "https://status.discordapp.com/api/v2/"
- EndpointSm = EndpointStatus + "scheduled-maintenances/"
- EndpointSmActive = EndpointSm + "active.json"
- EndpointSmUpcoming = EndpointSm + "upcoming.json"
- EndpointDiscord = "https://discordapp.com/"
- EndpointAPI = EndpointDiscord + "api/"
- EndpointGuilds = EndpointAPI + "guilds/"
- EndpointChannels = EndpointAPI + "channels/"
- EndpointUsers = EndpointAPI + "users/"
- EndpointGateway = EndpointAPI + "gateway"
- EndpointAuth = EndpointAPI + "auth/"
- EndpointLogin = EndpointAuth + "login"
- EndpointLogout = EndpointAuth + "logout"
- EndpointVerify = EndpointAuth + "verify"
- EndpointVerifyResend = EndpointAuth + "verify/resend"
- EndpointForgotPassword = EndpointAuth + "forgot"
- EndpointResetPassword = EndpointAuth + "reset"
- EndpointRegister = EndpointAuth + "register"
- EndpointVoice = EndpointAPI + "/voice/"
- EndpointVoiceRegions = EndpointVoice + "regions"
- EndpointVoiceIce = EndpointVoice + "ice"
- EndpointTutorial = EndpointAPI + "tutorial/"
- EndpointTutorialIndicators = EndpointTutorial + "indicators"
- EndpointTrack = EndpointAPI + "track"
- EndpointSso = EndpointAPI + "sso"
- EndpointReport = EndpointAPI + "report"
- EndpointIntegrations = EndpointAPI + "integrations"
- EndpointUser = func(uID string) string { return EndpointUsers + uID }
- EndpointUserAvatar = func(uID, aID string) string { return EndpointUsers + uID + "/avatars/" + aID + ".jpg" }
- EndpointUserSettings = func(uID string) string { return EndpointUsers + uID + "/settings" }
- EndpointUserGuilds = func(uID string) string { return EndpointUsers + uID + "/guilds" }
- EndpointUserGuild = func(uID, gID string) string { return EndpointUsers + uID + "/guilds/" + gID }
- EndpointUserGuildSettings = func(uID, gID string) string { return EndpointUsers + uID + "/guilds/" + gID + "/settings" }
- EndpointUserChannels = func(uID string) string { return EndpointUsers + uID + "/channels" }
- EndpointUserDevices = func(uID string) string { return EndpointUsers + uID + "/devices" }
- EndpointUserConnections = func(uID string) string { return EndpointUsers + uID + "/connections" }
- EndpointGuild = func(gID string) string { return EndpointGuilds + gID }
- EndpointGuildInivtes = func(gID string) string { return EndpointGuilds + gID + "/invites" }
- 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 }
- 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" }
- EndpointGuildEmbed = func(gID string) string { return EndpointGuilds + gID + "/embed" }
- EndpointGuildPrune = func(gID string) string { return EndpointGuilds + gID + "/prune" }
- EndpointGuildIcon = func(gID, hash string) string { return EndpointGuilds + gID + "/icons/" + hash + ".jpg" }
- EndpointGuildSplash = func(gID, hash string) string { return EndpointGuilds + gID + "/splashes/" + hash + ".jpg" }
- 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 }
- 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" }
- EndpointInvite = func(iID string) string { return EndpointAPI + "invite/" + iID }
- EndpointIntegrationsJoin = func(iID string) string { return EndpointAPI + "integrations/" + iID + "/join" }
- EndpointEmoji = func(eID string) string { return EndpointAPI + "emojis/" + eID + ".png" }
- EndpointOauth2 = EndpointAPI + "oauth2/"
- EndpointApplications = EndpointOauth2 + "applications"
- EndpointApplication = func(aID string) string { return EndpointApplications + "/" + aID }
- EndpointApplicationsBot = func(aID string) string { return EndpointApplications + "/" + aID + "/bot" }
- )
|