Hello, I am trying to remove certain roles and then add other roles to a member once a command is used. The issue is that if you remove some roles and then add different roles, no roles will be removed from a member. This is an issue with asynchronous code. I have tried putting
addRole()
addRole()
into a chained
then()
then()
but that does not solve the issue. The only workaround I could find was using
setTimeout()
setTimeout()
which seems like a very wonky way to handle this. Is there any other workaround I could use?