Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/boost/update_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ import (
// GetSlashChangeCommand returns the /update slash command with main subcommand groups for farmer and contract
func GetSlashChangeCommand(cmd string) *discordgo.ApplicationCommand {
return &discordgo.ApplicationCommand{
Name: cmd,
Name: cmd,
Contexts: &[]discordgo.InteractionContextType{
discordgo.InteractionContextGuild,
},
IntegrationTypes: &[]discordgo.ApplicationIntegrationType{
discordgo.ApplicationIntegrationGuildInstall,
},
Comment on lines +14 to +20
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This struct literal appears not to be gofmt-formatted (field/value alignment differs from other ApplicationCommand literals in the repo). Running gofmt on this file will standardize formatting and reduce future diff noise.

Copilot uses AI. Check for mistakes.
Description: "Update contract statistics",
Options: []*discordgo.ApplicationCommandOption{
{
Expand Down
8 changes: 7 additions & 1 deletion src/boost/update_farmer.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ func GetSlashUpdateCommand(cmd string) *discordgo.ApplicationCommand {
intMax490 := float64(490)

return &discordgo.ApplicationCommand{
Name: cmd,
Name: cmd,
Contexts: &[]discordgo.InteractionContextType{
discordgo.InteractionContextGuild,
},
IntegrationTypes: &[]discordgo.ApplicationIntegrationType{
discordgo.ApplicationIntegrationGuildInstall,
},
Comment on lines +19 to +25
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This composite literal formatting looks like it hasn't been run through gofmt (e.g., field/value alignment differs from other command definitions). Please run gofmt on this file to keep formatting consistent and avoid noisy diffs later.

Copilot uses AI. Check for mistakes.
Description: "Update farmer statistics",
Options: []*discordgo.ApplicationCommandOption{
{
Expand Down
Loading