fixing pkg site docs
This commit is contained in:
10
option.go
10
option.go
@@ -4,7 +4,7 @@ import (
|
||||
dg "github.com/bwmarrin/discordgo"
|
||||
)
|
||||
|
||||
type Option func(b *bolt)
|
||||
type Option func(b *Bolt)
|
||||
type LogLevel int
|
||||
|
||||
const (
|
||||
@@ -16,7 +16,7 @@ const (
|
||||
// WithIntents provides an option to use custom intents for the bot. Bolt comes preconfigured with the basic
|
||||
// intents needed to run a bot but those are completely overwritten by any supplied here
|
||||
func WithIntents(intents ...dg.Intent) Option {
|
||||
return func(b *bolt) {
|
||||
return func(b *Bolt) {
|
||||
var full dg.Intent
|
||||
for _, i := range intents {
|
||||
full |= i
|
||||
@@ -29,7 +29,7 @@ func WithIntents(intents ...dg.Intent) Option {
|
||||
// WithMaxGoroutines limits the amount of handler routines the bot is able to spawn at the same time. A lower value
|
||||
// may cause higher latency but may reduce resources needed to run bolt
|
||||
func WithMaxGoroutines(max int) Option {
|
||||
return func(b *bolt) {
|
||||
return func(b *Bolt) {
|
||||
b.maxRoutines = max
|
||||
}
|
||||
}
|
||||
@@ -37,14 +37,14 @@ func WithMaxGoroutines(max int) Option {
|
||||
// WithIndicator sets the substring that must be present at the beginning of a message to trigger a
|
||||
// command, for example "." or "!"
|
||||
func WithIndicator(i string) Option {
|
||||
return func(b *bolt) {
|
||||
return func(b *Bolt) {
|
||||
b.indicator = i
|
||||
}
|
||||
}
|
||||
|
||||
// WithLogLevel adjusts bolt logging verbosity
|
||||
func WithLogLevel(lvl LogLevel) Option {
|
||||
return func(b *bolt) {
|
||||
return func(b *Bolt) {
|
||||
b.logLvl = lvl
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user