channel.go 657 B

12345678910111213141516171819202122
  1. package discordgo
  2. type Channel struct {
  3. Server_id 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. Last_message_id int `json:"last_message_id,string"`
  9. Type string `json:"type"`
  10. Is_private bool `json:"is_private"`
  11. Permission_overwrites string `json:"-"` // ignored for now
  12. Session *Session
  13. }
  14. /*
  15. func (c *Channel) Messages() (messages []Message) {
  16. }
  17. func (c *Channel) SendMessage() (content string) {
  18. }
  19. */