channel.go 972 B

123456789101112131415161718192021222324252627282930
  1. package discordgo
  2. type Channel struct {
  3. Id string `json:"id"`
  4. GuildId string `json:"guild_idomitempty"`
  5. Name string `json:"name"`
  6. Topic string `json:"topic"`
  7. Position int `json:"position"`
  8. Type string `json:"type"`
  9. PermissionOverwrites []PermissionOverwrite `json:"permission_overwrites"`
  10. IsPrivate bool `json:"is_private"`
  11. LastMessageId string `json:"last_message_id"`
  12. Recipient User `json:"recipient"`
  13. Session *Session
  14. }
  15. type PermissionOverwrite struct {
  16. Id string `json:"id"`
  17. Type string `json:"type"`
  18. Deny int `json:"deny"`
  19. Allow int `json:"allow"`
  20. }
  21. /*
  22. func (c *Channel) Messages() (messages []Message) {
  23. }
  24. func (c *Channel) SendMessage() (content string) {
  25. }
  26. */