Add domain types

This commit is contained in:
Dustin Pianalto
2021-01-20 17:39:18 -09:00
parent b611dd7c87
commit cfe683c53c
7 changed files with 172 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package geeksbot
type Channel struct {
ID string
Guild Guild
Admin bool
Default bool
NewPatron bool
}
type ChannelService interface {
Channel(id string) (*Channel, error)
CreateChannel(c *Channel) (*Channel, error)
DeleteChannel(c *Channel) error
GuildChannels(g *Guild) ([]*Channel, error)
UpdateChannel(c *Channel) (*Channel, error)
}