Geeksbot/channel.go
Dustin Pianalto e19f987c4e
Some checks are pending
CI / build (push) Waiting to run
add request command
2021-01-24 22:57:55 -09:00

19 lines
423 B
Go

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)
GetOrCreateChannel(id string, guild_id string) (Channel, error)
}