Documentation ¶
Overview ¶
Package discord1111resolver contains the main DNS discordgo handler functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResolveHandler ¶
type ResolveHandler struct { // DiscordBotUser contains information about the Discord bot user resolved via: // // var session *discordgo.Session // // assign session // user, err := session.User("@me") // // This allows the handler to correctly react to tags in order to fulfill its function as a DNS resolver. DiscordBotUser *discordgo.User // DNSClient is an instance of the miekg dns client. DNSClient *dns.Client // contains filtered or unexported fields }
ResolveHandler is used to handle DNS query requests by Discord users. Its Handle method should be bound to a discordgo session instance.
func (*ResolveHandler) Handle ¶
func (resolveHandler *ResolveHandler) Handle(session *discordgo.Session, messageCreate *discordgo.MessageCreate)
Handle handles triggered events of created messages.
func (*ResolveHandler) Initialize ¶
func (resolveHandler *ResolveHandler) Initialize()
Initialize sets basic internal values of the ResolveHandler instance and has to be called before binding the Handle function.
Click to show internal directories.
Click to hide internal directories.