discord py on_member_update was given the roles removed or added code example Example: discord py get user by id user = bot.get_user(user_id)