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

Fix aliases for subcommands #268

Merged
merged 1 commit into from
Aug 7, 2022
Merged

Conversation

mcpenguin
Copy link
Collaborator

Summary of Changes

Fixed aliases for subcommands. This fix is only relevant for regular commands (slash commands don't need aliases.)

Screenshots

image

@mcpenguin mcpenguin linked an issue Aug 7, 2022 that may be closed by this pull request
@mcpenguin mcpenguin requested review from Picowchew and marko-polo-cheno and removed request for Picowchew August 7, 2022 20:46
Copy link
Collaborator

@marko-polo-cheno marko-polo-cheno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a good dev would test other aliases beyond the context of card game
i am not a good dev
and im sure it works anyways lol

}
// If the subcommand is not an alias of another subcommand, use the default
if (!commandDetails) {
if (this.details.subcommandDetails !== {}) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tho this does kinda look weird

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not too sure how I could make this better

@mcpenguin
Copy link
Collaborator Author

a good dev would test other aliases beyond the context of card game i am not a good dev and im sure it works anyways lol

Coin is the only command that has been slashified and has subcommands and so is the only one relevant for this lol

@mcpenguin mcpenguin merged commit 4959330 into master Aug 7, 2022
@mcpenguin mcpenguin deleted the 267-fix-aliases-for-subcommands branch August 7, 2022 21:52
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.

Fix aliases for subcommands
2 participants