feat(command): user option for stats
This commit is contained in:
parent
236f57fb15
commit
26643cd271
2 changed files with 74 additions and 11 deletions
|
@ -4,7 +4,6 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/anhgelus/gokord"
|
||||
"github.com/anhgelus/gokord/logger"
|
||||
)
|
||||
|
||||
type Copaing struct {
|
||||
|
@ -35,15 +34,7 @@ const (
|
|||
func GetCopaing(discordID string, guildID string) *Copaing {
|
||||
c := Copaing{DiscordID: discordID, GuildID: guildID}
|
||||
if err := c.Load(); err != nil {
|
||||
logger.Alert(
|
||||
"user/member.go - Loading user",
|
||||
err.Error(),
|
||||
"discord_id",
|
||||
discordID,
|
||||
"guild_id",
|
||||
guildID,
|
||||
)
|
||||
return nil
|
||||
panic(err)
|
||||
}
|
||||
return &c
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue