- Introduced a new `buildCommandBody` function to prevent duplicate command definitions during registration. - Implemented `clearGuildCommandLeftovers` to remove unused guild-scoped commands, ensuring a clean command picker in Discord. - Updated command registration logic to clear global commands when using guild-specific commands, improving command visibility and user experience. - Enhanced logging to provide clearer insights into command registration and cleanup processes.
1.5 KiB
1.5 KiB