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(GuildMemberRoleManager): audit-log member role update dont created #10546

Closed
wants to merge 1 commit into from

Conversation

roni0028
Copy link

This pull request updates the GuildMemberRoleManager class to use the edit method to handle audit log sending

Role management updates:

  • packages/discord.js/src/managers/GuildMemberRoleManager.js: Replaced the put method with the member.edit method to trigger audit logging. ([packages/discord.js/src/managers/GuildMemberRoleManager.jsL131-R131](https://github.com/discordjs/discord.js/pull/10546/files#diff-a11dedf8688081af4fca40ff9ba77984570a5d81b98646c5da980d7b5b6a2a4aL131-R131)) packages/discord.js/src/managers/GuildMemberRoleManager.js](diffhunk://#diff-a11dedf8688081af4fca40ff9ba77984570a5d81b98646c5da980d7b5b6a2a4aL168-R168): Replaced the delete method with the Method member.edit to trigger audit logging. ([packages/discord.js/src/managers/GuildMemberRoleManager.jsL168-R168](https://github.com/discordjs/discord.js/pull/10546/files#diff-a11dedf8688081af4fca40ff9ba77984570a5d81b98646c5da980d7b5b6a2a4aL168-R168))

@roni0028 roni0028 requested a review from a team as a code owner October 10, 2024 03:10
Copy link

vercel bot commented Oct 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
discord-js ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2024 3:10am
discord-js-guide ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2024 3:10am

@roni0028 roni0028 changed the title fix audit log member role update fix(GuildMemberRoleManager): audit-log member role update dont created Oct 10, 2024
@roni0028 roni0028 closed this Oct 10, 2024
@roni0028 roni0028 reopened this Oct 10, 2024
@GoldenAngel2
Copy link
Contributor

Audit log entries not being added is a Discord bug and has been reported to them: discord/discord-api-docs#7197

So wait for them to provide an update / fix the issue on their end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Denied
Development

Successfully merging this pull request may close these issues.

3 participants