Conversation
3 tasks
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
For: TicketsBot-cloud/gdl#12
Type of Change
Testing
Simply just test everything, does the bot create tickets, etc