From 64dfe4ed79022c6a7a00991db7ba679f2dcb3495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sat, 17 Jan 2026 17:06:38 +0100 Subject: refactor(member): better distinction between cached and from database --- commands/top.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/top.go') diff --git a/commands/top.go b/commands/top.go index bb08144..bd92a28 100644 --- a/commands/top.go +++ b/commands/top.go @@ -68,7 +68,7 @@ func Top(s bot.Session, i *event.InteractionCreate, _ cmd.OptionMap, resp *cmd.R func genTopsMessage(tops []user.CopaingAccess) string { msg := "" for i, c := range tops { - msg += fmt.Sprintf("%d. **<@%s>** - niveau %d", i+1, c.ToCopaing().DiscordID, exp.Level(c.GetXP())) + msg += fmt.Sprintf("%d. **<@%s>** - niveau %d", i+1, c.Copaing().DiscordID, exp.Level(c.GetXP())) if i != len(tops)-1 { msg += "\n" } -- cgit v1.2.3