channel.go 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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_idomitempty"`
  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. Session *Session
  15. }
  16. // A PermissionOverwrite holds permission overwrite data for a Channel
  17. type PermissionOverwrite struct {
  18. ID string `json:"id"`
  19. Type string `json:"type"`
  20. Deny int `json:"deny"`
  21. Allow int `json:"allow"`
  22. }
  23. /*
  24. func (c *Channel) Messages() (messages []Message) {
  25. }
  26. func (c *Channel) SendMessage() (content string) {
  27. }
  28. */