diff options
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/stats.go | 2 | ||||
| -rw-r--r-- | commands/top.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/commands/stats.go b/commands/stats.go index 28c0bcc..c9562dc 100644 --- a/commands/stats.go +++ b/commands/stats.go @@ -237,7 +237,7 @@ func generatePlot(ctx context.Context, dg bot.Session, i *interaction.Applicatio cnt := 0 for in, c := range copaings { - m, err := guild.GetMember(i.GuildID, c.DiscordID).Do(ctx) + m, err := guild.GetMember(i.GuildID, c.ID).Do(ctx) if err != nil { bot.Logger(ctx).Error("fetching guild member", "error", err) return nil, err diff --git a/commands/top.go b/commands/top.go index 82183a1..db44dbd 100644 --- a/commands/top.go +++ b/commands/top.go @@ -59,7 +59,7 @@ func Top(ctx context.Context, dg bot.Session, i *interaction.ApplicationCommand) func genTopsMessage(tops []user.CopaingCached) string { msg := "" for i, c := range tops { - msg += fmt.Sprintf("%d. **<@%d>** - niveau %d", i+1, c.DiscordID, exp.Level(c.XP)) + msg += fmt.Sprintf("%d. **<@%d>** - niveau %d", i+1, c.ID, exp.Level(c.XP)) if i != len(tops)-1 { msg += "\n" } |
