Documentation
¶
Overview ¶
A package for DiscordGo for awaiting Certain Events to happen In Certain Channels
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageDeleteAwaiter ¶
type MessageDeleteAwaiter struct { //The *discordgo.Session this awaiter belongs to Entries []MessageDeleteEntry // contains filtered or unexported fields }
An Awaiter for awaiting messages to be sent in a said channel
func NewMessageDeleteAwaiter ¶
func NewMessageDeleteAwaiter(s *discordgo.Session) *MessageDeleteAwaiter
Initializes a new MessageDeleteAwaiter ready for use
func (*MessageDeleteAwaiter) Await ¶
func (m *MessageDeleteAwaiter) Await(entry MessageDeleteEntry)
Adds a Entry to the MessageDeleteAwaiter and has to be manually handled.
func (*MessageDeleteAwaiter) AwaitDeletedMessage ¶
func (m *MessageDeleteAwaiter) AwaitDeletedMessage(channelId string, IncludeBots bool) *discordgo.Message
Adds a Entry to the MessageDeleteAwaiter and returns the message when it is received.
func (*MessageDeleteAwaiter) GetSession ¶
func (m *MessageDeleteAwaiter) GetSession() *discordgo.Session
Returns the *discordgo.Session that the Awaiter has been added to.
func (*MessageDeleteAwaiter) RemoveEntry ¶
func (m *MessageDeleteAwaiter) RemoveEntry(k int)
Removes a Entry from a MessageDeleteAwaiter
type MessageDeleteEntry ¶
type MessageDeleteEntry struct {
// contains filtered or unexported fields
}
A Entry for the MessageSendAwaiter
func (*MessageDeleteEntry) GetChannel ¶
func (m *MessageDeleteEntry) GetChannel() chan *discordgo.Message
Returns the channel that will be returned too
func (*MessageDeleteEntry) GetChannelId ¶
func (m *MessageDeleteEntry) GetChannelId() string
inherited from Entry and returns the ChannelId used in the Entry
func (*MessageDeleteEntry) IncludeBots ¶
func (m *MessageDeleteEntry) IncludeBots() bool
type MessageEntry ¶ added in v1.0.2
type MessageReactionAddAwaiter ¶ added in v1.0.2
type MessageReactionAddAwaiter struct { //A slice of Entries belonging to this Awaiter Entries []MessageReactionAddEntry // contains filtered or unexported fields }
func (*MessageReactionAddAwaiter) GetSession ¶ added in v1.0.2
func (m *MessageReactionAddAwaiter) GetSession() *discordgo.Session
func (*MessageReactionAddAwaiter) RemoveEntry ¶ added in v1.0.2
func (m *MessageReactionAddAwaiter) RemoveEntry(k int)
type MessageReactionAddEntry ¶ added in v1.0.2
type MessageReactionAddEntry struct {
// contains filtered or unexported fields
}
func (MessageReactionAddEntry) GetChannel ¶ added in v1.0.2
func (m MessageReactionAddEntry) GetChannel() chan *discordgo.MessageReactionAdd
func (MessageReactionAddEntry) GetMessageId ¶ added in v1.0.2
func (m MessageReactionAddEntry) GetMessageId() string
func (MessageReactionAddEntry) IncludeBots ¶ added in v1.0.2
func (m MessageReactionAddEntry) IncludeBots() bool
type MessageSendAwaiter ¶
type MessageSendAwaiter struct { //A slice of Entries belonging to this Awaiter Entries []MessageSendEntry // contains filtered or unexported fields }
An Awaiter for awaiting messages to be sent in a said channel
func NewMessageSendAwaiter ¶
func NewMessageSendAwaiter(s *discordgo.Session) *MessageSendAwaiter
Initializes a new MessageSendAwaiter ready for use
func (*MessageSendAwaiter) Await ¶
func (m *MessageSendAwaiter) Await(entry MessageSendEntry)
Adds a Entry to the MessageSendAwaiter and has to be manually handled.
func (*MessageSendAwaiter) AwaitMessage ¶
func (m *MessageSendAwaiter) AwaitMessage(channelId string, IncludeBots bool) *discordgo.MessageCreate
Adds a Entry to the MessageSendAwaiter and returns the message when it is received.
func (*MessageSendAwaiter) GetSession ¶
func (m *MessageSendAwaiter) GetSession() *discordgo.Session
Returns the *discordgo.Session that the Awaiter has been added to.
func (*MessageSendAwaiter) RemoveEntry ¶
func (m *MessageSendAwaiter) RemoveEntry(k int)
Removes a Entry from a MessageSendAwaiter
type MessageSendEntry ¶
type MessageSendEntry struct {
// contains filtered or unexported fields
}
A Entry for the MessageSendAwaiter
func (MessageSendEntry) GetChannel ¶
func (m MessageSendEntry) GetChannel() chan *discordgo.MessageCreate
Returns the channel that will be returned too
func (MessageSendEntry) GetChannelId ¶
func (m MessageSendEntry) GetChannelId() string
inherited from Entry and returns the ChannelId used in the Entry
func (MessageSendEntry) IncludeBots ¶
func (m MessageSendEntry) IncludeBots() bool
Returns wether to include bots in the await