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 /help: Cannot read properties of undefined (reading 'find') #406

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

rhaym-tech
Copy link
Contributor

@rhaym-tech rhaym-tech commented Aug 8, 2023

Bug found in: slash help command
When you search a commands with no options/sub commands bot returns an error:
ERROR: interactionRun: modalResponse.reply is not a function because of the unhandled exeption (when there's no opts)
So I made it optional so in case options doesn't exist it skips finding options
btw, all bot's have this issue
image
image

@rhaym-tech rhaym-tech changed the title Cannot read properties of undefined (reading 'find') Fix /help: Cannot read properties of undefined (reading 'find') Aug 8, 2023
@saiteja-madha saiteja-madha changed the base branch from main to 5.5.0 February 5, 2024 06:54
@saiteja-madha
Copy link
Owner

I haven't personally faced this error but anyways these changes won't break the code.
Merging this

@saiteja-madha saiteja-madha merged commit 84eb4a8 into saiteja-madha:5.5.0 Feb 5, 2024
1 check passed
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.

None yet

2 participants