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

Can't access audit-log functionality. #152

Open
EpicnessTwo opened this issue Feb 15, 2021 · 1 comment
Open

Can't access audit-log functionality. #152

EpicnessTwo opened this issue Feb 15, 2021 · 1 comment

Comments

@EpicnessTwo
Copy link

As the audit log functions within Restcord are under the class of audit-log, trying to access them returns the following error.

PHP Fatal error:  Uncaught Exception: No category with the name: audit in /path/to/code/vendor/restcord/restcord/src/DiscordClient.php:127

I was able to hotfix this in the local files by changing 2 of the references in service_description-v6.json from audit-log to auditlog. Not too sure if this is the best fix for this but it works in the examples that I'm attempting to use.

@LeigerGaming
Copy link

I have fixed this in #174, if that gets merged you would access it as follows:

$client->auditLog

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

No branches or pull requests

2 participants