Skip to content

Feat /strike remove manual user#110

Open
CartucheraSB wants to merge 2 commits into
Balatro-Multiplayer:mainfrom
CartucheraSB:feat/strike-remove-manual-user
Open

Feat /strike remove manual user#110
CartucheraSB wants to merge 2 commits into
Balatro-Multiplayer:mainfrom
CartucheraSB:feat/strike-remove-manual-user

Conversation

@CartucheraSB
Copy link
Copy Markdown

Feat: Add /strike remove-manual-user subcommand

The existing /strike remove command uses autocomplete to fetch all users with active strikes and then fetches each user's username individually. As it stands the command causes the autocomplete to fail, my suspicion is these fetches exceed Discord's 3 second autocomplete timeout.
Added a new remove-manual-user subcommand that takes a plain mention or ID instead of autocomplete for the user field allowing for a focused query on the user as it's usually used.
The subcommand maintains the existing logic by reusing the removeStrike handler.

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