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

Add audit log reason when using the bot #167

Open
1 of 8 tasks
Ajeyakrishna-k opened this issue Dec 4, 2023 · 1 comment
Open
1 of 8 tasks

Add audit log reason when using the bot #167

Ajeyakrishna-k opened this issue Dec 4, 2023 · 1 comment
Assignees

Comments

@Ajeyakrishna-k
Copy link
Contributor

Issue Description

Currently when the bot performs any operations on discord, there is no details of the initiator of the request. These details are found in Audit logs. We need to show the request initiators user id and username.

Expected Behavior

Screenshot 2023-12-04 at 11 12 23 PM

Eg: When a group is created from this page, user name and id of the creator should be logged in discord Audit logs

Similarly all related actions should be logged.

Current Behavior

Screenshot 2023-12-04 at 11 22 37 PM

Severity/Priority

  • Critical
  • High
  • Medium
  • Low

Additional Information

https://discord.com/developers/docs/resources/audit-log

Checklist

  • I have read and followed the project's code of conduct.
  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
  • I am willing to contribute to the resolution of this issue.

Thank you for contributing to our project! We appreciate your help in improving it.

@skv93-coder
Copy link
Contributor

skv93-coder commented Jan 8, 2024

  • As a super user, I should know who created the discord group.
  • As a super user, I should be able to know who initiated the action to join or leave a discord group.
  • As a dev, I should be able to pass the reason for the audit log while calling the bot hosted in Cloudflare worker

Acceptance criteria.

  • As a superuser, if somebody creates a discord group then I should see their ID (the ID of Firestore) in the audit logs
  • As a superuser, if somebody removes or joins a group then I should see their ID (the ID of Firestore) in the audit logs.
  • As a dev, if I pass the reason in the X-Audit-Log-Reason header to the discord bot. The reason should be reflected in the audit logs.

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

3 participants