🔧 Configure Discord slash command contexts and integration types#2182
🔧 Configure Discord slash command contexts and integration types#2182
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Boost Bot Discord slash command definitions to explicitly declare supported interaction contexts and integration install types, aligning /update-related commands with the rest of the command set.
Changes:
- Added
Contextsto restrict the commands to guild interactions. - Added
IntegrationTypesto restrict the commands to guild installs.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/boost/update_farmer.go | Adds guild-only interaction contexts and guild-install integration type to the update farmer slash command. |
| src/boost/update_change.go | Adds guild-only interaction contexts and guild-install integration type to the update contract/change slash command. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Name: cmd, | ||
| Contexts: &[]discordgo.InteractionContextType{ | ||
| discordgo.InteractionContextGuild, | ||
| }, | ||
| IntegrationTypes: &[]discordgo.ApplicationIntegrationType{ | ||
| discordgo.ApplicationIntegrationGuildInstall, | ||
| }, |
There was a problem hiding this comment.
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.
| Name: cmd, | ||
| Contexts: &[]discordgo.InteractionContextType{ | ||
| discordgo.InteractionContextGuild, | ||
| }, | ||
| IntegrationTypes: &[]discordgo.ApplicationIntegrationType{ | ||
| discordgo.ApplicationIntegrationGuildInstall, | ||
| }, |
There was a problem hiding this comment.
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.
No description provided.