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

refactor(subcommands): rename stuff like modify/customize to edit for consistency #164

Merged
merged 4 commits into from
Oct 18, 2024

Conversation

dev-737
Copy link
Member

@dev-737 dev-737 commented Oct 18, 2024

The changes update the /connection edit command to allow users to
customize various settings for their hub connections, such as embed
colors, profanity filter, and compact mode.

The key changes are:

  • Rename the customize subcommand to edit to better reflect its
    purpose.
  • Add a list subcommand to display the current block word rules for
    the hub.
  • Update the unpause command to use the new edit_cmd variable instead
    of customize_cmd.
  • Add a new edit.ts file that handles the logic for the edit
    subcommand, including building the necessary embeds and components.

These changes provide users with a more intuitive and comprehensive way
to manage their hub connections within the Discord bot.

…or consistency

The changes update the `/connection edit` command to allow users to
customize various settings for their hub connections, such as embed
colors, profanity filter, and compact mode.

The key changes are:

- Rename the `customize` subcommand to `edit` to better reflect its
  purpose.
- Add a `list` subcommand to display the current block word rules for
  the hub.
- Update the `unpause` command to use the new `edit_cmd` variable instead
  of `customize_cmd`.
- Add a new `edit.ts` file that handles the logic for the `edit`
  subcommand, including building the necessary embeds and components.

These changes provide users with a more intuitive and comprehensive way
to manage their hub connections within the Discord bot.
Adds two new subcommands to the 'hub' slash command:
- 'edit': allows users to edit an existing blocked word rule in their hub
- 'list': allows users to view all blocked word rules for a hub

These changes provide more functionality for managing blocked word rules in a
hub, making it easier for users to maintain and review their settings.
Updates the logic for handling the connection embed color to use
the nullish coalescing operator to set the value to `{ unset: true }`
if no color is provided.

fix(hub): remove unnecessary return statement

Removes the unnecessary `return` statement at the end of the
`BlockWordCommand` class, as the function already returns a reply
to the user.
@dev-737 dev-737 merged commit 5d53323 into main Oct 18, 2024
2 of 3 checks passed
@dev-737 dev-737 deleted the Virtual-branch-2 branch October 18, 2024 14:12
Copy link

sonarcloud bot commented Oct 18, 2024

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.

1 participant