Documentation
¶
Index ¶
- func NewEvent(guildEvent *discordgo.GuildScheduledEvent) *core.Event
- func NewUser(user *discordgo.User) *core.User
- type Discord
- func (discord *Discord) ArchiveChannel(channel *core.Channel) error
- func (discord *Discord) CreateEvent(event *core.Event) error
- func (discord *Discord) DeleteChannel(channel *core.Channel) (bool, error)
- func (discord *Discord) GetVerifiedChannel(channel *core.Channel) *core.Channel
- func (discord *Discord) MoveChannelToCategory(channel *core.Channel, categoryID string) error
- func (discord *Discord) NewChannelFromID(ID string) *core.Channel
- func (discord *Discord) NewChannelFromName(channel_name string) (*core.Channel, error)
- func (discord *Discord) OnEventCreate(handler func(*Discord, *core.Event))
- func (discord *Discord) OnEventDelete(handler func(*Discord, *core.Event))
- func (discord *Discord) OnEventUpdate(handler func(*Discord, *core.Event))
- func (discord *Discord) OnReady(handler func(*Discord))
- func (discord *Discord) Run() error
- func (discord *Discord) SendMessage(channel *core.Channel, message string) error
- func (discord *Discord) SetStatus(status string)
- func (discord *Discord) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Discord ¶
func (*Discord) ArchiveChannel ¶
ArchiveChannel archives a channel
func (*Discord) CreateEvent ¶ added in v0.2.0
func (*Discord) DeleteChannel ¶
DeleteChannel deletes a channel
func (*Discord) GetVerifiedChannel ¶
GetVerifiedChannel looks up channel data and returns a verified objec
func (*Discord) MoveChannelToCategory ¶
MoveChannelToCategory places a channel in a given category
func (*Discord) NewChannelFromID ¶
NewChannelFromID creates a channel from a given ID
func (*Discord) NewChannelFromName ¶
NewChannelFromName creates a channel object with its name
func (*Discord) OnEventCreate ¶
OnEventCreate registers a handler when a guild scheduled event is created
func (*Discord) OnEventDelete ¶
OnEventDelete registers a handler when a guild scheduled event is deleted
func (*Discord) OnEventUpdate ¶
OnEventUpdate registers a handler when a guild scheduled event is updated
func (*Discord) SendMessage ¶
SendMessage sends a message to a given channel
Click to show internal directories.
Click to hide internal directories.