aboutsummaryrefslogtreecommitdiff
path: root/commands/top.go
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2026-01-17 17:06:38 +0100
committerWilliam Hergès <william@herges.fr>2026-01-17 17:06:38 +0100
commit64dfe4ed79022c6a7a00991db7ba679f2dcb3495 (patch)
tree607e3964da55f97247b0962de32985c37a750aa0 /commands/top.go
parentfebb77607e81fbb182dd456733ea5adafda44ed4 (diff)
refactor(member): better distinction between cached and from database
Diffstat (limited to 'commands/top.go')
-rw-r--r--commands/top.go2
1 files changed, 1 insertions, 1 deletions
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"
}