channel.go 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. package discordgo
  2. // A Channel holds all data related to an individual Discord channel.
  3. type Channel struct {
  4. ID string `json:"id"`
  5. GuildID string `json:"guild_id"`
  6. Name string `json:"name"`
  7. Topic string `json:"topic"`
  8. Position int `json:"position"`
  9. Type string `json:"type"`
  10. PermissionOverwrites []PermissionOverwrite `json:"permission_overwrites"`
  11. IsPrivate bool `json:"is_private"`
  12. LastMessageID string `json:"last_message_id"`
  13. Recipient User `json:"recipient"`
  14. }
  15. // A PermissionOverwrite holds permission overwrite data for a Channel
  16. type PermissionOverwrite struct {
  17. ID string `json:"id"`
  18. Type string `json:"type"`
  19. Deny int `json:"deny"`
  20. Allow int `json:"allow"`
  21. }
  22. /*
  23. func (c *Channel) Messages() (messages []Message) {
  24. }
  25. func (c *Channel) SendMessage() (content string) {
  26. }
  27. */