Skip to content

Commit

Permalink
remove rate limit id in REST func comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andersfylling committed Oct 20, 2019
1 parent 8786411 commit 84fe0ce
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 93 deletions.
1 change: 0 additions & 1 deletion auditlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ func auditLogFactory() interface{} {
// Note that this request will _always_ send a REST request, regardless of you calling IgnoreCache or not.
// Method GET
// Endpoint /guilds/{guild.id}/audit-logs
// Rate limiter [MAJOR] /guilds/{guild.id}/audit-logs
// Discord documentation https://discordapp.com/developers/docs/resources/audit-log#get-guild-audit-log
// Reviewed 2018-06-05
// Comment -
Expand Down
9 changes: 0 additions & 9 deletions channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ func ratelimitChannelWebhooks(id Snowflake) string {
// GetChannel [REST] Get a channel by Snowflake. Returns a channel object.
// Method GET
// Endpoint /channels/{channel.id}
// Rate limiter [MAJOR] /channels/{channel.id}
// Discord documentation https://discordapp.com/developers/docs/resources/channel#get-channel
// Reviewed 2018-06-07
// Comment -
Expand Down Expand Up @@ -365,7 +364,6 @@ func (c *Client) GetChannel(channelID Snowflake, flags ...Flag) (ret *Channel, e
// For the PATCH method, all the JSON Params are optional.
// Method PUT/PATCH
// Endpoint /channels/{channel.id}
// Rate limiter [MAJOR] /channels/{channel.id}
// Discord documentation https://discordapp.com/developers/docs/resources/channel#modify-channel
// Reviewed 2018-06-07
// Comment andersfylling: only implemented the patch method, as its parameters are optional.
Expand Down Expand Up @@ -393,7 +391,6 @@ func (c *Client) UpdateChannel(channelID Snowflake, flags ...Flag) (builder *upd
// Fires a Channel Delete Gateway event.
// Method Delete
// Endpoint /channels/{channel.id}
// Rate limiter [MAJOR] /channels/{channel.id}
// Discord documentation https://discordapp.com/developers/docs/resources/channel#deleteclose-channel
// Reviewed 2018-10-09
// Comment Deleting a guild channel cannot be undone. Use this with caution, as it
Expand Down Expand Up @@ -435,7 +432,6 @@ type UpdateChannelPermissionsParams struct {
// For more information about permissions, see permissions.
// Method PUT
// Endpoint /channels/{channel.id}/permissions/{overwrite.id}
// Rate limiter [MAJOR] /channels/{channel.id}/permissions
// Discord documentation https://discordapp.com/developers/docs/resources/channel#edit-channel-permissions
// Reviewed 2018-06-07
// Comment -
Expand Down Expand Up @@ -467,7 +463,6 @@ func (c *Client) UpdateChannelPermissions(channelID, overwriteID Snowflake, para
// guild channels. Requires the 'MANAGE_CHANNELS' permission.
// Method GET
// Endpoint /channels/{channel.id}/invites
// Rate limiter [MAJOR] /channels/{channel.id}/invites
// Discord documentation https://discordapp.com/developers/docs/resources/channel#get-channel-invites
// Reviewed 2018-06-07
// Comment -
Expand Down Expand Up @@ -502,7 +497,6 @@ type CreateChannelInvitesParams struct {
// not. If you are not sending any fields, you still have to send an empty JSON object ({}). Returns an invite object.
// Method POST
// Endpoint /channels/{channel.id}/invites
// Rate limiter [MAJOR] /channels/{channel.id}/invites
// Discord documentation https://discordapp.com/developers/docs/resources/channel#create-channel-invite
// Reviewed 2018-06-07
// Comment -
Expand Down Expand Up @@ -533,7 +527,6 @@ func (c *Client) CreateChannelInvites(channelID Snowflake, params *CreateChannel
// information about permissions, see permissions: https://discordapp.com/developers/docs/topics/permissions#permissions
// Method DELETE
// Endpoint /channels/{channel.id}/permissions/{overwrite.id}
// Rate limiter [MAJOR] /channels/{channel.id}/permissions
// Discord documentation https://discordapp.com/developers/docs/resources/channel#delete-channel-permission
// Reviewed 2018-06-07
// Comment -
Expand Down Expand Up @@ -584,7 +577,6 @@ func (g *GroupDMParticipant) FindErrors() error {
// on success.
// Method PUT
// Endpoint /channels/{channel.id}/recipients/{user.id}
// Rate limiter [MAJOR] /channels/{channel.id}/recipients
// Discord documentation https://discordapp.com/developers/docs/resources/channel#group-dm-add-recipient
// Reviewed 2018-06-10
// Comment -
Expand Down Expand Up @@ -614,7 +606,6 @@ func (c *Client) AddDMParticipant(channelID Snowflake, participant *GroupDMParti
// KickParticipant [REST] Removes a recipient from a Group DM. Returns a 204 empty response on success.
// Method DELETE
// Endpoint /channels/{channel.id}/recipients/{user.id}
// Rate limiter [MAJOR] /channels/{channel.id}/recipients
// Discord documentation https://discordapp.com/developers/docs/resources/channel#group-dm-remove-recipient
// Reviewed 2018-06-10
// Comment -
Expand Down
5 changes: 0 additions & 5 deletions emoji.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ func cacheEmoji_SetAll(cache Cacher, guildID Snowflake, emojis []*Emoji) error {
// GetGuildEmoji [REST] Returns an emoji object for the given guild and emoji IDs.
// Method GET
// Endpoint /guilds/{guild.id}/emojis/{emoji.id}
// Rate limiter [MAJOR] /guilds/{guild.id}/emojis
// Discord documentation https://discordapp.com/developers/docs/resources/emoji#get-guild-emoji
// Reviewed 2019-02-20
// Comment -
Expand All @@ -205,7 +204,6 @@ func (c *Client) GetGuildEmoji(guildID, emojiID Snowflake, flags ...Flag) (*Emoj
// GetGuildEmojis [REST] Returns a list of emoji objects for the given guild.
// Method GET
// Endpoint /guilds/{guild.id}/emojis
// Rate limiter [MAJOR] /guilds/{guild.id}/emojis
// Discord documentation https://discordapp.com/developers/docs/resources/emoji#list-guild-emojis
// Reviewed 2018-06-10
// Comment -
Expand Down Expand Up @@ -254,7 +252,6 @@ type CreateGuildEmojiParams struct {
// Returns the new emoji object on success. Fires a Guild Emojis Update Gateway event.
// Method POST
// Endpoint /guilds/{guild.id}/emojis
// Rate limiter [MAJOR] /guilds/{guild.id}/emojis
// Discord documentation https://discordapp.com/developers/docs/resources/emoji#create-guild-emoji
// Reviewed 2019-02-20
// Comment Emojis and animated emojis have a maximum file size of 256kb. Attempting to upload
Expand Down Expand Up @@ -294,7 +291,6 @@ func (c *Client) CreateGuildEmoji(guildID Snowflake, params *CreateGuildEmojiPar
// Returns the updated emoji object on success. Fires a Guild Emojis Update Gateway event.
// Method PATCH
// Endpoint /guilds/{guild.id}/emojis/{emoji.id}
// Rate limiter [MAJOR] /guilds/{guild.id}/emojis
// Discord documentation https://discordapp.com/developers/docs/resources/emoji#modify-guild-emoji
// Reviewed 2019-02-20
// Comment -
Expand Down Expand Up @@ -322,7 +318,6 @@ func (c *Client) UpdateGuildEmoji(guildID, emojiID Snowflake, flags ...Flag) (bu
// success. Fires a Guild Emojis Update Gateway event.
// Method DELETE
// Endpoint /guilds/{guild.id}/emojis/{emoji.id}
// Rate limiter [MAJOR] /guilds/{guild.id}/emojis
// Discord documentation https://discordapp.com/developers/docs/resources/emoji#delete-guild-emoji
// Reviewed 2018-06-10
// Comment -
Expand Down
2 changes: 1 addition & 1 deletion events.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ type Ready struct {
SessionID string `json:"session_id"`

// private_channels will be an empty array. As bots receive private messages,
// they will be notified via Channel Add events.
// they will be notified via Channel Create events.
//PrivateChannels []*channel.Channel `json:"private_channels"`

// bot can't have presences
Expand Down
Loading

0 comments on commit 84fe0ce

Please sign in to comment.