Skip to content

Update gdl#119

Open
biast12 wants to merge 11 commits into
masterfrom
gdl
Open

Update gdl#119
biast12 wants to merge 11 commits into
masterfrom
gdl

Conversation

@biast12
Copy link
Copy Markdown
Contributor

@biast12 biast12 commented Mar 4, 2026

Description

For: TicketsBot-cloud/gdl#12

Type of Change

  • Bug fix
  • New feature
  • Breaking change

Testing

Simply just test everything, does the bot create tickets, etc

biast12 added 2 commits March 5, 2026 00:24
Adjust restwrapper.go imports to use the refactored package paths (objects/guild/soundboard and objects/guild/stage) instead of the previous top-level objects/soundboard and objects/stage. No functional logic changes were made.
@github-actions github-actions Bot added needs:gomod_comment go.mod has uncommented local replace directives type:breaking Breaking Change labels Apr 26, 2026
biast12 added 8 commits April 26, 2026 14:34
Replace channel.PermissionTypeMember/Role with channel.PermissionOverwriteTypeMember/Role when constructing and filtering channel.PermissionOverwrite entries. This updates unclaim handlers and permission builders to use the correct overwrite enum, preventing mismatched overwrite types when modifying channel permissions (files changed: bot/button/handlers/unclaim.go, bot/command/impl/tickets/unclaim.go, bot/logic/discordpermissions.go).
Clean up dead/commented code across interaction and setup handlers. Removed legacy commented blocks in:
- bot/command/context/applicationcommandcontext.go (old edit/followup reply logic)
- bot/command/context/buttoncontext.go and bot/command/context/selectmenucontext.go (old followup/create message logic)
- bot/command/impl/settings/setup/setup.go (large TODO buildFields helper)
- event/errorcontext.go (commented custom_id extraction for components)

These changes remove unused/commented code to improve readability and maintainability without altering runtime behavior.
Delete cmd/exportmessages/main.go which exported translations from the database into ./locale/<lang>.json files. The removed tool connected to dbclient, fetched all translations, mapped them to i18n message IDs, and wrote indented JSON files. This cleans up an unused/obsolete export utility.
Remove unused blank imports and tidy import ordering across the repo: drop the godotenv autoload import from cmd/worker/main.go, move strconv into the consolidated import block in event/caller.go, and remove the unused gdl events blank import from tools/cmd/generatelisteners.go. These are non-functional cleanup changes to fix unused-import warnings and satisfy linters.
Expand listeners package with generated listener slices and HandleEvent cases for many new gateway events (e.g. application command permissions, auto-moderation rules/actions, channel info, guild scheduled events, soundboard/soundboard sounds, stage instances, subscriptions, message poll votes, integrations, various voice channel updates, etc.). Also minor import cleanup and update tools/cmd/generatelisteners.go to stop special-casing EventBus so the generator emits the full set of event types.
Reorganize generator tooling: move generator mains and templates into tools/cmd/cmdcaller and tools/cmd/listeners subdirectories. Update generated file headers and //go:generate directives in bot/listeners/listeners.go and event/caller.go to reference the new paths. Rename generator sources and template files accordingly; no functional changes to generated logic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:gomod_comment go.mod has uncommented local replace directives type:breaking Breaking Change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant