Enable discordgo info logs by default
This commit is contained in:
2
user.go
2
user.go
@@ -560,6 +560,8 @@ func (user *User) Connect() error {
|
|||||||
// TODO move to config
|
// TODO move to config
|
||||||
if os.Getenv("DISCORD_DEBUG") == "1" {
|
if os.Getenv("DISCORD_DEBUG") == "1" {
|
||||||
session.LogLevel = discordgo.LogDebug
|
session.LogLevel = discordgo.LogDebug
|
||||||
|
} else {
|
||||||
|
session.LogLevel = discordgo.LogInformational
|
||||||
}
|
}
|
||||||
if !session.IsUser {
|
if !session.IsUser {
|
||||||
session.Identify.Intents = BotIntents
|
session.Identify.Intents = BotIntents
|
||||||
|
|||||||
Reference in New Issue
Block a user