fixes comments

This commit is contained in:
Sebastian Winkler 2018-05-20 14:40:55 +02:00
parent 8f686efd24
commit 1bf986726a
No known key found for this signature in database
GPG key ID: 6E5F12DD21107C1D

View file

@ -1287,8 +1287,9 @@ func (s *Session) GuildAuditLog(guildID, userID, beforeID string, actionType, li
// GuildEmojiCreate creates a new emoji // GuildEmojiCreate creates a new emoji
// guildID : The ID of a Guild. // guildID : The ID of a Guild.
// image : the base64 encoded emoji image, has to be smaller than 256KB // name : The Name of the Emoji.
// roles : roles for which this emoji will be whitelisted, can be nil // image : The base64 encoded emoji image, has to be smaller than 256KB.
// roles : The roles for which this emoji will be whitelisted, can be nil.
func (s *Session) GuildEmojiCreate(guildID, name, image string, roles []string) (emoji *Emoji, err error) { func (s *Session) GuildEmojiCreate(guildID, name, image string, roles []string) (emoji *Emoji, err error) {
data := struct { data := struct {
@ -1308,8 +1309,9 @@ func (s *Session) GuildEmojiCreate(guildID, name, image string, roles []string)
// GuildEmojiEdit modifies an emoji // GuildEmojiEdit modifies an emoji
// guildID : The ID of a Guild. // guildID : The ID of a Guild.
// image : the base64 encoded emoji image, has to be smaller than 256KB // emojiID : The ID of an Emoji.
// roles : roles for which this emoji will be whitelisted, can be nil // name : The Name of the Emoji.
// roles : The roles for which this emoji will be whitelisted, can be nil.
func (s *Session) GuildEmojiEdit(guildID, emojiID, name string, roles []string) (emoji *Emoji, err error) { func (s *Session) GuildEmojiEdit(guildID, emojiID, name string, roles []string) (emoji *Emoji, err error) {
data := struct { data := struct {
@ -1328,7 +1330,7 @@ func (s *Session) GuildEmojiEdit(guildID, emojiID, name string, roles []string)
// GuildEmojiDelete deletes an Emoji. // GuildEmojiDelete deletes an Emoji.
// guildID : The ID of a Guild. // guildID : The ID of a Guild.
// emojiID : The ID of the Emoji. // emojiID : The ID of an Emoji.
func (s *Session) GuildEmojiDelete(guildID, emojiID string) (err error) { func (s *Session) GuildEmojiDelete(guildID, emojiID string) (err error) {
_, err = s.RequestWithBucketID("DELETE", EndpointGuildEmoji(guildID, emojiID), nil, EndpointGuildEmojis(guildID)) _, err = s.RequestWithBucketID("DELETE", EndpointGuildEmoji(guildID, emojiID), nil, EndpointGuildEmojis(guildID))