Documentation ¶
Index ¶
- type Endpoint
- func AddGuildMember(guildID, userID string) *Endpoint
- func AddGuildMemberRole(guildID, userID, roleID string) *Endpoint
- func AddPinnedChannelMessage(chID, msgID string) *Endpoint
- func BeginGuildPrune(guildID, query string) *Endpoint
- func BulkDeleteMessage(chID string) *Endpoint
- func CreateChannelInvite(chID string) *Endpoint
- func CreateDM() *Endpoint
- func CreateGuild() *Endpoint
- func CreateGuildBan(guildID, userID, query string) *Endpoint
- func CreateGuildChannel(guildID string) *Endpoint
- func CreateGuildEmoji(guildID string) *Endpoint
- func CreateGuildIntegration(guildID string) *Endpoint
- func CreateGuildRole(guildID string) *Endpoint
- func CreateMessage(chID string) *Endpoint
- func CreateReaction(chID, msgID, emoji string) *Endpoint
- func CreateWebhook(chID string) *Endpoint
- func DeleteAllReactions(chID, msgID string) *Endpoint
- func DeleteChannel(chID string) *Endpoint
- func DeleteChannelPermission(chID, targetID string) *Endpoint
- func DeleteGuild(guildID string) *Endpoint
- func DeleteGuildEmoji(guildID, emojiID string) *Endpoint
- func DeleteGuildIntegration(guildID, integrationID string) *Endpoint
- func DeleteGuildRole(guildID, roleID string) *Endpoint
- func DeleteInvite(code string) *Endpoint
- func DeleteMessage(chID, msgID string) *Endpoint
- func DeleteOwnReaction(chID, msgID, emoji string) *Endpoint
- func DeletePinnedChannelMessage(chID, msgID string) *Endpoint
- func DeleteUserReaction(chID, msgID, userID, emoji string) *Endpoint
- func DeleteWebhook(whID string) *Endpoint
- func DeleteWebhookWithToken(whID, token string) *Endpoint
- func EditChannelPermissions(chID, targetID string) *Endpoint
- func EditMessage(chID, msgID string) *Endpoint
- func ExecuteWebhook(whID, token, query string) *Endpoint
- func Gateway() *Endpoint
- func GatewayBot() *Endpoint
- func GetApplicationInfo() *Endpoint
- func GetAuditLog(guildID, query string) *Endpoint
- func GetChannel(chID string) *Endpoint
- func GetChannelInvites(chID string) *Endpoint
- func GetChannelMessage(chID, msgID string) *Endpoint
- func GetChannelMessages(chID, query string) *Endpoint
- func GetChannelWebhooks(chID string) *Endpoint
- func GetCurrentUserGuilds() *Endpoint
- func GetGuild(guildID string) *Endpoint
- func GetGuildBans(guildID string) *Endpoint
- func GetGuildChannels(guildID string) *Endpoint
- func GetGuildEmbed(guildID string) *Endpoint
- func GetGuildEmoji(guildID, emojiID string) *Endpoint
- func GetGuildIntegrations(guildID string) *Endpoint
- func GetGuildInvites(guildID string) *Endpoint
- func GetGuildMember(guildID, userID string) *Endpoint
- func GetGuildPruneCount(guildID, query string) *Endpoint
- func GetGuildRoles(guildID string) *Endpoint
- func GetGuildVanityURL(guildID string) *Endpoint
- func GetGuildVoiceRegions(guildID string) *Endpoint
- func GetGuildWebhooks(guildID string) *Endpoint
- func GetInvite(code, query string) *Endpoint
- func GetPinnedMessages(chID string) *Endpoint
- func GetReactions(chID, msgID, emoji, query string) *Endpoint
- func GetUser(userID string) *Endpoint
- func GetUserConnections() *Endpoint
- func GetUserDMs() *Endpoint
- func GetVoiceRegions() *Endpoint
- func GetWebhook(whID string) *Endpoint
- func GetWebhookWithToken(whID, token string) *Endpoint
- func GroupDMAddRecipient(chID, recipientID string) *Endpoint
- func GroupDMRemoveRecipient(chID, recipientID string) *Endpoint
- func LeaveGuild(guildID string) *Endpoint
- func ListGuildEmojis(guildID string) *Endpoint
- func ListGuildMembers(guildID, query string) *Endpoint
- func ModifyChannel(chID string) *Endpoint
- func ModifyChannelPositions(guildID string) *Endpoint
- func ModifyCurrentUser() *Endpoint
- func ModifyCurrentUserNick(guildID string) *Endpoint
- func ModifyGuild(guildID string) *Endpoint
- func ModifyGuildEmbed(guildID string) *Endpoint
- func ModifyGuildEmoji(guildID, emojiID string) *Endpoint
- func ModifyGuildIntegration(guildID, integrationID string) *Endpoint
- func ModifyGuildMember(guildID, userID string) *Endpoint
- func ModifyGuildRole(guildID, roleID string) *Endpoint
- func ModifyGuildRolePositions(guildID string) *Endpoint
- func ModifyWebhook(whID string) *Endpoint
- func ModifyWebhookWithToken(whID, token string) *Endpoint
- func RemoveGuildBan(guildID, userID string) *Endpoint
- func RemoveGuildMember(guildID, userID string) *Endpoint
- func RemoveGuildMemberRole(guildID, userID, roleID string) *Endpoint
- func SyncGuildIntegration(guildID, integrationID string) *Endpoint
- func TriggerTypingIndicator(chID string) *Endpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
Endpoint represent a single REST endpoint exposed by Discord's API. It consists of an HTTP method, a URL as well as a key, used for rate limiting.
func AddGuildMember ¶
func AddGuildMemberRole ¶
func AddPinnedChannelMessage ¶
func BeginGuildPrune ¶
func BulkDeleteMessage ¶
func CreateChannelInvite ¶
func CreateGuild ¶
func CreateGuild() *Endpoint
func CreateGuildBan ¶
func CreateGuildChannel ¶
func CreateGuildEmoji ¶
func CreateGuildIntegration ¶ added in v0.10.0
func CreateGuildRole ¶
func CreateMessage ¶
func CreateReaction ¶
func CreateWebhook ¶
func DeleteAllReactions ¶
func DeleteChannel ¶
func DeleteChannelPermission ¶
func DeleteGuild ¶
func DeleteGuildEmoji ¶
func DeleteGuildIntegration ¶
func DeleteGuildRole ¶
func DeleteInvite ¶
func DeleteMessage ¶
func DeleteOwnReaction ¶
func DeleteUserReaction ¶
func DeleteWebhook ¶
func DeleteWebhookWithToken ¶
func EditChannelPermissions ¶
func EditMessage ¶
func ExecuteWebhook ¶
func GatewayBot ¶
func GatewayBot() *Endpoint
func GetApplicationInfo ¶ added in v0.14.0
func GetApplicationInfo() *Endpoint
func GetAuditLog ¶ added in v0.11.0
func GetChannel ¶
func GetChannelInvites ¶
func GetChannelMessage ¶
func GetChannelMessages ¶
func GetChannelWebhooks ¶
func GetCurrentUserGuilds ¶
func GetCurrentUserGuilds() *Endpoint
func GetGuildBans ¶
func GetGuildChannels ¶
func GetGuildEmbed ¶
func GetGuildEmoji ¶
func GetGuildIntegrations ¶
func GetGuildInvites ¶
func GetGuildMember ¶
func GetGuildPruneCount ¶
func GetGuildRoles ¶
func GetGuildVanityURL ¶
func GetGuildVoiceRegions ¶
func GetGuildWebhooks ¶
func GetPinnedMessages ¶
func GetReactions ¶
func GetUserConnections ¶
func GetUserConnections() *Endpoint
func GetUserDMs ¶
func GetUserDMs() *Endpoint
func GetVoiceRegions ¶
func GetVoiceRegions() *Endpoint
func GetWebhook ¶
func GetWebhookWithToken ¶
func GroupDMAddRecipient ¶
func GroupDMRemoveRecipient ¶
func LeaveGuild ¶
func ListGuildEmojis ¶
func ListGuildMembers ¶
func ModifyChannel ¶
func ModifyChannelPositions ¶
func ModifyCurrentUser ¶
func ModifyCurrentUser() *Endpoint
func ModifyCurrentUserNick ¶
func ModifyGuild ¶
func ModifyGuildEmbed ¶
func ModifyGuildEmoji ¶
func ModifyGuildIntegration ¶
func ModifyGuildMember ¶
func ModifyGuildRole ¶
func ModifyWebhook ¶
func ModifyWebhookWithToken ¶
func RemoveGuildBan ¶
func RemoveGuildMember ¶
func RemoveGuildMemberRole ¶
func SyncGuildIntegration ¶
func TriggerTypingIndicator ¶
Click to show internal directories.
Click to hide internal directories.