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

[Bug] Some commands doesn't work #32

Closed
1 task done
barthofu opened this issue Aug 20, 2022 · 0 comments · Fixed by #33
Closed
1 task done

[Bug] Some commands doesn't work #32

barthofu opened this issue Aug 20, 2022 · 0 comments · Fixed by #33
Assignees
Labels
bug Something isn't working

Comments

@barthofu
Copy link
Owner

What happened?

Some commands doesn't seem to have access to localize guardData.

Reproduction

  1. Execute the /prefix or /invite command for example.
  2. The bot "crash"

Relevant log output

error [20/08/2022 - 15:59:21] Unhandled rejection : Cannot read properties of undefined (reading 'COMMANDS')
        > /workspaces/tscord/src/commands/General/stats.ts:70
        > /workspaces/tscord/node_modules/discordx/src/decorators/classes/Method.ts:85
        > /workspaces/tscord/src/guards/extractLocale.ts:28
        > /workspaces/tscord/node_modules/discordx/src/decorators/classes/Method.ts:94
        > /workspaces/tscord/node_modules/discordx/src/decorators/classes/Method.ts:94
        > /workspaces/tscord/src/guards/notBot.ts:16
        > /workspaces/tscord/node_modules/discordx/src/decorators/classes/Method.ts:94

Code of Conduct

  • I agree to follow this project's Code of Conduct
@barthofu barthofu added the bug Something isn't working label Aug 20, 2022
@barthofu barthofu self-assigned this Aug 20, 2022
@barthofu barthofu linked a pull request Aug 20, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant