structs.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package discordgo
  2. // TODO: Eventually everything here gets moved to a better place.
  3. type Message struct {
  4. Id int `json:"id,string"`
  5. Author User `json:"author"`
  6. Content string `json:"content"`
  7. Attachments []Attachment `json:"attachments"`
  8. Tts bool `json:"tts"`
  9. Embeds []Embed `json:"embeds"`
  10. Timestamp string `json:"timestamp"`
  11. MentionEveryone bool `json:"mention_everyone"`
  12. EditedTimestamp string `json:"edited_timestamp"`
  13. Mentions []User `json:"mentions"`
  14. ChannelId int `json:"channel_id,string"`
  15. }
  16. type Attachment struct { //TODO figure this out
  17. }
  18. type Embed struct { // TODO figure this out
  19. }
  20. type VoiceRegion struct {
  21. Id string `json:"id"`
  22. Name string `json:"name"`
  23. SampleHostname string `json:"sample_hostname"`
  24. SamplePort int `json:"sample_port"`
  25. }
  26. type VoiceIce struct {
  27. Ttl int `json:"ttl,string"`
  28. Servers []IceServer `json:"servers"`
  29. }
  30. type IceServer struct {
  31. Url string `json:"url"`
  32. Username string `json:"username"`
  33. Credential string `json:"credential"`
  34. }