structs.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 Role struct {
  11. Id int `json:"id,string"`
  12. Name string `json:"name"`
  13. Managed bool `json:"managed"`
  14. Color int `json:"color"`
  15. Hoist bool `json:"hoist"`
  16. Position int `json:"position"`
  17. Permissions int `json:"permissions"`
  18. }
  19. type Message struct {
  20. Attachments []Attachment
  21. Tts bool
  22. Embeds []Embed
  23. Timestamp string
  24. Mention_everyone bool
  25. Id int `json:",string"`
  26. Edited_timestamp string
  27. Author *Author
  28. Content string
  29. Channel_id int `json:",string"`
  30. Mentions []Mention
  31. }
  32. type Mention struct {
  33. }
  34. type Attachment struct {
  35. }
  36. type Embed struct {
  37. }
  38. type Author struct {
  39. Username string
  40. Discriminator int `json:",string"`
  41. Id int `json:",string"`
  42. Avatar string
  43. }