channel.go 1001 B

123456789101112131415161718192021222324252627282930
  1. package discordgo
  2. type Channel struct {
  3. GuildId int `json:"guild_id,string,omitempty"`
  4. Id int `json:"id,string"`
  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 int `json:"last_message_id,string"`
  12. Recipient User `json:"recipient"`
  13. Session *Session
  14. }
  15. type PermissionOverwrite struct {
  16. Type string `json:"type"`
  17. Id int `json:"id,string"`
  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. */