structs.go 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package discordgo
  2. type User struct {
  3. Id int `json:"id,string"`
  4. Email string `json:"email"`
  5. Username string `json:"username"`
  6. Avatar string `json:"Avatar"`
  7. Verified bool `json:"verified"`
  8. Discriminator string `json:"discriminator"`
  9. }
  10. type Member struct {
  11. JoinedAt string `json:"joined_at"`
  12. Deaf bool `json:"deaf"`
  13. mute bool `json:"mute"`
  14. User User `json:"user"`
  15. Roles []Role `json:"roles"`
  16. }
  17. type Role struct {
  18. Id int `json:"id,string"`
  19. Name string `json:"name"`
  20. Managed bool `json:"managed"`
  21. Color int `json:"color"`
  22. Hoist bool `json:"hoist"`
  23. Position int `json:"position"`
  24. Permissions int `json:"permissions"`
  25. }
  26. type Message struct {
  27. Id int `json:"id,string"`
  28. Author User `json:"author"`
  29. Content string `json:"content"`
  30. Attachments []Attachment `json:"attachments"`
  31. Tts bool `json:"tts"`
  32. Embeds []Embed `json:"embeds"`
  33. Timestamp string `json:"timestamp"`
  34. MentionEveryone bool `json:"mention_everyone"`
  35. EditedTimestamp string `json:"edited_timestamp"`
  36. Mentions []User `json:"mentions"`
  37. ChannelId int `json:"channel_id,string"`
  38. }
  39. type Attachment struct {
  40. }
  41. type Embed struct {
  42. }