package main import ( "log" "github.com/bwmarrin/discordgo" ) func logError(dg *discordgo.Session, a ...interface{}) { dg.UserUpdateStatus(discordgo.StatusDoNotDisturb) dg.UpdateStatus(0, "with error") log.Println(a...) }