structs.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package discordgo
  2. type Server struct {
  3. Afk_timeout int
  4. Joined_at string
  5. // Afk_channel_id int `json:",string"`
  6. Id int `json:",string"`
  7. Icon string
  8. Name string
  9. // Roles []Role
  10. Region string
  11. //Embed_channel_id int `json:",string"`
  12. // Embed_channel_id string
  13. // Embed_enabled bool
  14. Owner_id int `json:",string"`
  15. }
  16. type Role struct {
  17. Permissions int
  18. Id int `json:",string"`
  19. Name string
  20. }
  21. type Channel struct {
  22. Guild_id int `json:",string"`
  23. Id int `json:",string"`
  24. Name string
  25. Last_message_id string
  26. Is_private string
  27. // Permission_overwrites string
  28. // Position int `json:",string"`
  29. // Type string
  30. }
  31. type Message struct {
  32. Attachments []Attachment
  33. Tts bool
  34. Embeds []Embed
  35. Timestamp string
  36. Mention_everyone bool
  37. Id int `json:",string"`
  38. Edited_timestamp string
  39. Author *Author
  40. Content string
  41. Channel_id int `json:",string"`
  42. Mentions []Mention
  43. }
  44. type Mention struct {
  45. }
  46. type Attachment struct {
  47. }
  48. type Embed struct {
  49. }
  50. type Author struct {
  51. Username string
  52. Discriminator int `json:",string"`
  53. Id int `json:",string"`
  54. Avatar string
  55. }
  56. type User struct {
  57. }