Emoji improvements
@@ -1309,6 +1309,19 @@ func (s *Session) GuildAuditLog(guildID, userID, beforeID string, actionType, li
return
}
+// GuildEmojis returns all emoji
+// guildID : The ID of a Guild.
+func (s *Session) GuildEmojis(guildID string) (emoji []*Emoji, err error) {
+
+ body, err := s.RequestWithBucketID("GET", EndpointGuildEmojis(guildID), nil, EndpointGuildEmojis(guildID))
+ if err != nil {
+ return
+ }
+ err = unmarshal(body, &emoji)
+}
// GuildEmojiCreate creates a new emoji
// guildID : The ID of a Guild.
// name : The Name of the Emoji.
@@ -330,8 +330,8 @@ type Emoji struct {
Name string `json:"name"`
Roles []string `json:"roles"`
User *User `json:"user"`
- Managed bool `json:"managed"`
RequireColons bool `json:"require_colons"`
+ Managed bool `json:"managed"`
Animated bool `json:"animated"`
Available bool `json:"available"`