This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
PermissionGacha/modules/log/error.go

19 lines
335 B
Go

package log
import (
llog "log"
"github.com/bwmarrin/discordgo"
)
func Error(s *discordgo.Session, a ...interface{}) {
s.UpdateStatusComplex(discordgo.UpdateStatusData{
Game: &discordgo.Game{
Name: "with error",
Type: discordgo.GameTypeGame,
},
Status: string(discordgo.StatusDoNotDisturb),
})
llog.Println(a...)
}