diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-08-21 18:51:54 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-08-21 18:51:54 +0200 |
| commit | 236f57fb1525400bd4b7b6304b9d04f44cd021cc (patch) | |
| tree | e9f407ea0b98ce692bfb5f7a593d7ac6ce9783db /main.go | |
| parent | adf1e6008e5166232c24b1de09640f9c9fb6ffba (diff) | |
feat(command): days option for stats
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -85,6 +85,16 @@ func main() { SetHandler(commands.Credits) statsCmd := cmd.New("stats", "Affiche des stats :D"). + AddOption(cmd.NewOption( + discordgo.ApplicationCommandOptionInteger, + "days", + "Nombre de jours à afficher dans le graphique", + )). + AddOption(cmd.NewOption( + discordgo.ApplicationCommandOptionUser, + "user", + "Utilisateur à inspecter", + )). SetHandler(commands.Stats) innovations, err := gokord.LoadInnovationFromJson(updatesData) |
