guild.go 516 B

123456789101112131415161718192021
  1. package discordgo
  2. /*
  3. TODO: How to name these? If we make a variable to store
  4. channels from READY packet, etc. We can't have a Channel
  5. func? And which is better. Channels func gets live up
  6. to date data on each call.. so, there is some benefit there.
  7. Maybe it should have both, but make the Channels check and
  8. pull new data based on a cache time?
  9. func (s *Server) Channels() (c []Channel, err error) {
  10. c, err = Channels(s.Session, s.Id)
  11. return
  12. }
  13. */
  14. /*
  15. func (s *Server) Members() (m []Users, err error) {
  16. }
  17. */