This add-on enables connecting your MemberPress enabled website to your discord server. Now you can add/remove MemberPress members directly to your discord server roles, assign roles according to your member levels, unassign roles when they expire, change role when they change membership.
Have a look, this is helpful to re-assign roles.
https://docs.memberpress.com/article/325-action-hooks-in-memberpress#mepr-event-recurring-transaction-failed