Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set command integration types #59

Merged
merged 4 commits into from
Mar 4, 2025
Merged

Conversation

tomosfps
Copy link
Owner

@tomosfps tomosfps commented Mar 4, 2025

This pull request includes several changes to the packages/api and packages/handler modules, focusing on improving the flexibility of the media update process and enhancing the user interaction commands. The most important changes include making fields optional in the UpdateMediaMutation and related structs, adding hidden input options to various commands, and introducing new interaction commands.

Changes to packages/api:

  • Made fields in UpdateMediaMutation and MutationMediaRequest optional to allow partial updates. (packages/api/src/entities/update_entry.rs) [1] [2]
  • Modified the format method in UpdateMediaMutation to handle optional fields and provide default values. (packages/api/src/entities/update_entry.rs)
  • Updated the query method to include only provided fields in the request variables. (packages/api/src/entities/update_entry.rs)

Changes to packages/handler:

  • Added a new infoAdd button interaction for providing invite and support links. (packages/handler/src/interactions/buttons/infoAdd.ts)
  • Introduced new invite command to generate bot invite links. (packages/handler/src/interactions/commands/invite.ts)
  • Added optional hidden input options to various commands (e.g., anime, character, manga, recommend, staff, studio) to allow ephemeral responses. (packages/handler/src/interactions/commands/anime.ts, packages/handler/src/interactions/commands/character.ts, packages/handler/src/interactions/commands/manga.ts, packages/handler/src/interactions/commands/recommend.ts, packages/handler/src/interactions/commands/staff.ts, packages/handler/src/interactions/commands/studio.ts) [1] [2] [3] [4] [5] [6]
  • Updated the info command to include new buttons for inviting the bot and joining the support server. (packages/handler/src/interactions/commands/info.ts) [1] [2]

@tomosfps tomosfps merged commit 1fb9be7 into main Mar 4, 2025
@tomosfps tomosfps deleted the set-command-integration-types branch March 4, 2025 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants