Friday, 16 April 2021

How to work with member role update part of audit log in discord.js

I am currently making a bot to notify people by sending a message when a member role is being updated on the server. I don’t know how to set up the initial part which should be formally client.on part. Here I have shown a bit of my code that I think should be working but unfortunately it is not working.

const Discord = require(‘discord.js’);
const client = Discord.Client();

client.on('guildMemberUpdate', (oldMember, newmember) => {

This is what I’m expecting to do: enter image description here



from How to work with member role update part of audit log in discord.js

No comments:

Post a Comment